|
|
|
@ -36,25 +36,11 @@ SlotLogAction::SlotLogAction(KSystemLog* p) :
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#if defined(TDE_MAKE_VERSION) && (TDE_VERSION >= TDE_MAKE_VERSION(3,4,0))
|
|
|
|
|
void SlotLogAction::slotLogAction(TDEAction::ActivationReason reason, TQt::ButtonState state) {
|
|
|
|
|
const TQObject* sender=TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(TQObject::sender()));
|
|
|
|
|
const TQObject* sender=TQT_TQOBJECT(TQObject::sender());
|
|
|
|
|
|
|
|
|
|
//We can call the correct method from KSystemLog, which manage the two parameters
|
|
|
|
|
parent->logActionClicked(sender, reason, state);
|
|
|
|
|
}
|
|
|
|
|
#else
|
|
|
|
|
void SlotLogAction::slotLogAction() {
|
|
|
|
|
const TQObject* sender=TQObject::sender();
|
|
|
|
|
|
|
|
|
|
//In the other case, We can only call the method from KSystemLog, which keeps compatibility
|
|
|
|
|
parent->logActionClicked(sender);
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
//Include the right MOC file, depending of the version of KDE
|
|
|
|
|
#if defined(TDE_MAKE_VERSION) && (TDE_VERSION >= TDE_MAKE_VERSION(3,4,0))
|
|
|
|
|
#include "slotLogAction.moc"
|
|
|
|
|
#else
|
|
|
|
|
#include "slotLogActionCompatibility.moc"
|
|
|
|
|
#endif
|
|
|
|
|
#include "slotLogAction.moc"
|
|
|
|
|