|
|
@ -937,12 +937,7 @@ TDEToggleAction* KSystemLog::getLogAction(const char* name) {
|
|
|
|
return( static_cast<TDEToggleAction*> (actionCollection()->action(name)) );
|
|
|
|
return( static_cast<TDEToggleAction*> (actionCollection()->action(name)) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
|
|
|
|
|
|
|
|
void KSystemLog::logActionClicked(const TQObject* sender, TDEAction::ActivationReason reason, TQt::ButtonState state) {
|
|
|
|
void KSystemLog::logActionClicked(const TQObject* sender, TDEAction::ActivationReason reason, TQt::ButtonState state) {
|
|
|
|
#else
|
|
|
|
|
|
|
|
void KSystemLog::logActionClicked(const TQObject* sender) {
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TDEToggleAction* action=getLogAction(sender->name());
|
|
|
|
TDEToggleAction* action=getLogAction(sender->name());
|
|
|
|
|
|
|
|
|
|
|
|
LogMode* mode=mapActionLogModes[action];
|
|
|
|
LogMode* mode=mapActionLogModes[action];
|
|
|
@ -954,10 +949,8 @@ void KSystemLog::logActionClicked(const TQObject* sender) {
|
|
|
|
|
|
|
|
|
|
|
|
//TODO Be sure that the + is the right symbol to combine TQt Constants
|
|
|
|
//TODO Be sure that the + is the right symbol to combine TQt Constants
|
|
|
|
//If the user uses the middle button OR left button + shift OR left button + control : = it opens the log in a new tab
|
|
|
|
//If the user uses the middle button OR left button + shift OR left button + control : = it opens the log in a new tab
|
|
|
|
#if defined(TDE_MAKE_VERSION) && TDE_VERSION >= TDE_MAKE_VERSION(3,4,0)
|
|
|
|
|
|
|
|
if (state==Qt::MidButton || (state==TQt::ControlButton+Qt::LeftButton) || (state==TQt::ShiftButton+Qt::LeftButton))
|
|
|
|
if (state==Qt::MidButton || (state==TQt::ControlButton+Qt::LeftButton) || (state==TQt::ShiftButton+Qt::LeftButton))
|
|
|
|
newTab();
|
|
|
|
newTab();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this->load(mode, activeLogManager());
|
|
|
|
this->load(mode, activeLogManager());
|
|
|
|
|
|
|
|
|
|
|
|