@ -323,7 +323,7 @@ void KSystemLog::setupActions() {
//TODO Find a solution to display at the right place this action (see Akregator interface)
//TODO Find a solution to display at the right place this action (see Akregator interface)
filterBarAction = new KToggleAction ( i18n ( " Show &Filter Bar " ) , TQString ( ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotToggleFilterBar ( ) ) , actionCollection ( ) , " toggle_filter_bar " ) ;
filterBarAction = new KToggleAction ( i18n ( " Show &Filter Bar " ) , TQString ( ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotToggleFilterBar ( ) ) , actionCollection ( ) , " toggle_filter_bar " ) ;
# if defined( KDE_MAKE_VERSION) && TDE_VERSION >= K DE_MAKE_VERSION(3,3,0)
# if defined( TDE_MAKE_VERSION) && TDE_VERSION >= T DE_MAKE_VERSION(3,3,0)
filterBarAction - > setEnabled ( true ) ;
filterBarAction - > setEnabled ( true ) ;
# else
# else
filterBarAction - > setEnabled ( false ) ;
filterBarAction - > setEnabled ( false ) ;
@ -393,7 +393,7 @@ void KSystemLog::setupActions() {
void KSystemLog : : setupLogActions ( ) {
void KSystemLog : : setupLogActions ( ) {
//Define a macro allowing the connection of the signal from log action to the slotLogAction object
//Define a macro allowing the connection of the signal from log action to the slotLogAction object
# if defined( KDE_MAKE_VERSION) && TDE_VERSION >= K DE_MAKE_VERSION(3,4,0)
# if defined( TDE_MAKE_VERSION) && TDE_VERSION >= T DE_MAKE_VERSION(3,4,0)
# define CONNECTED_SLOT(action) connect(action, TQT_SIGNAL(activated(KAction::ActivationReason, TQt::ButtonState)), slotLogAction, TQT_SLOT(slotLogAction(KAction::ActivationReason, TQt::ButtonState)));
# define CONNECTED_SLOT(action) connect(action, TQT_SIGNAL(activated(KAction::ActivationReason, TQt::ButtonState)), slotLogAction, TQT_SLOT(slotLogAction(KAction::ActivationReason, TQt::ButtonState)));
# else
# else
# define CONNECTED_SLOT(action) connect(action, TQT_SIGNAL(activated()), slotLogAction, TQT_SLOT(slotLogAction()));
# define CONNECTED_SLOT(action) connect(action, TQT_SIGNAL(activated()), slotLogAction, TQT_SLOT(slotLogAction()));
@ -678,7 +678,7 @@ LogManager* KSystemLog::newTab() {
tabs - > insertTab ( manager - > getView ( ) , SmallIcon ( NO_MODE_ICON ) , i18n ( " No Log " ) ) ;
tabs - > insertTab ( manager - > getView ( ) , SmallIcon ( NO_MODE_ICON ) , i18n ( " No Log " ) ) ;
# if defined( KDE_MAKE_VERSION) && TDE_VERSION >= K DE_MAKE_VERSION(3,4,0)
# if defined( TDE_MAKE_VERSION) && TDE_VERSION >= T DE_MAKE_VERSION(3,4,0)
if ( tabs - > count ( ) > 1 ) {
if ( tabs - > count ( ) > 1 ) {
tabs - > setTabBarHidden ( false ) ;
tabs - > setTabBarHidden ( false ) ;
}
}
@ -776,7 +776,7 @@ void KSystemLog::closeTab() {
}
}
*/
*/
# if defined( KDE_MAKE_VERSION) && TDE_VERSION >= K DE_MAKE_VERSION(3,4,0)
# if defined( TDE_MAKE_VERSION) && TDE_VERSION >= T DE_MAKE_VERSION(3,4,0)
if ( tabs - > count ( ) = = 1 ) {
if ( tabs - > count ( ) = = 1 ) {
tabs - > setTabBarHidden ( true ) ;
tabs - > setTabBarHidden ( true ) ;
}
}
@ -937,7 +937,7 @@ KToggleAction* KSystemLog::getLogAction(const char* name) {
return ( static_cast < KToggleAction * > ( actionCollection ( ) - > action ( name ) ) ) ;
return ( static_cast < KToggleAction * > ( actionCollection ( ) - > action ( name ) ) ) ;
}
}
# if defined( KDE_MAKE_VERSION) && TDE_VERSION >= K DE_MAKE_VERSION(3,4,0)
# if defined( TDE_MAKE_VERSION) && TDE_VERSION >= T DE_MAKE_VERSION(3,4,0)
void KSystemLog : : logActionClicked ( const TQObject * sender , KAction : : ActivationReason reason , TQt : : ButtonState state ) {
void KSystemLog : : logActionClicked ( const TQObject * sender , KAction : : ActivationReason reason , TQt : : ButtonState state ) {
# else
# else
void KSystemLog : : logActionClicked ( const TQObject * sender ) {
void KSystemLog : : logActionClicked ( const TQObject * sender ) {
@ -954,7 +954,7 @@ 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( KDE_MAKE_VERSION) && TDE_VERSION >= K DE_MAKE_VERSION(3,4,0)
# if defined( TDE_MAKE_VERSION) && TDE_VERSION >= T DE_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
# endif