diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-05 10:34:19 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-07 20:52:12 +0900 |
commit | 73e92cf0198487e7762f26a939b6429e955ea896 (patch) | |
tree | 603282f81691ab144cf087ecbb4151fae8267c06 | |
parent | bed7853363bb060cdac0dcb810609e5591732114 (diff) | |
download | knemo-73e92cf0198487e7762f26a939b6429e955ea896.tar.gz knemo-73e92cf0198487e7762f26a939b6429e955ea896.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 89135300a977ebccbb5928797afabfdd8a4222fb)
-rw-r--r-- | src/kcm/configdialog.cpp | 180 | ||||
-rw-r--r-- | src/knemod/backends/nettoolsbackend.cpp | 32 | ||||
-rw-r--r-- | src/knemod/interface.cpp | 88 | ||||
-rw-r--r-- | src/knemod/interfaceicon.cpp | 22 | ||||
-rw-r--r-- | src/knemod/interfacestatistics.cpp | 2 | ||||
-rw-r--r-- | src/knemod/interfacestatisticsdialog.cpp | 6 | ||||
-rw-r--r-- | src/knemod/interfacestatusdialog.cpp | 2 | ||||
-rw-r--r-- | src/knemod/interfacetray.cpp | 8 | ||||
-rw-r--r-- | src/knemod/knemodaemon.cpp | 2 |
9 files changed, 171 insertions, 171 deletions
diff --git a/src/kcm/configdialog.cpp b/src/kcm/configdialog.cpp index 589c65e..e497dda 100644 --- a/src/kcm/configdialog.cpp +++ b/src/kcm/configdialog.cpp @@ -111,94 +111,94 @@ ConfigDialog::ConfigDialog( TQWidget *parent, const char *name, const TQStringLi mSettingsDict.setAutoDelete( true ); setButtons( TDECModule::Default | TDECModule::Apply | TDECModule::Help ); - connect( mDlg->pushButtonNew, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( buttonNewSelected() ) ); - connect( mDlg->pushButtonDelete, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( buttonDeleteSelected() ) ); - connect( mDlg->pushButtonAddCommand, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( buttonAddCommandSelected() ) ); - connect( mDlg->pushButtonRemoveCommand, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( buttonRemoveCommandSelected() ) ); - connect( mDlg->pushButtonUp, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( buttonCommandUpSelected() ) ); - connect( mDlg->pushButtonDown, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( buttonCommandDownSelected() ) ); - connect( mDlg->pushButtonAddToolTip, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( buttonAddToolTipSelected() ) ); - connect( mDlg->pushButtonRemoveToolTip, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( buttonRemoveToolTipSelected() ) ); - connect( mDlg->pushButtonNotifications, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( buttonNotificationsSelected() ) ); - connect( mDlg->pushButtonStatisticsDir, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( buttonStatisticsDirSelected() ) ); - connect( mDlg->lineEditAlias, TQT_SIGNAL( textChanged( const TQString& ) ), - this, TQT_SLOT( aliasChanged( const TQString& ) ) ); - connect( mDlg->comboBoxIconSet, TQT_SIGNAL( activated( int ) ), - this, TQT_SLOT( iconSetChanged( int ) ) ); - connect( mDlg->comboBoxBackends, TQT_SIGNAL( activated( int ) ), - this, TQT_SLOT( backendChanged( int ) ) ); - connect( mDlg->checkBoxNotConnected, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( checkBoxNotConnectedToggled ( bool ) ) ); - connect( mDlg->checkBoxNotExisting, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( checkBoxNotExistingToggled ( bool ) ) ); - connect( mDlg->checkBoxStatistics, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( checkBoxStatisticsToggled ( bool ) ) ); - connect( mDlg->checkBoxStartKNemo, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( checkBoxStartKNemoToggled( bool ) ) ); - connect( mDlg->spinBoxTrafficThreshold, TQT_SIGNAL( valueChanged( int ) ), - this, TQT_SLOT( spinBoxTrafficValueChanged ( int ) ) ); - connect( mDlg->checkBoxCustom, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( checkBoxCustomToggled ( bool ) ) ); - connect( mDlg->listBoxInterfaces, TQT_SIGNAL( highlighted( const TQString& ) ), - this, TQT_SLOT( interfaceSelected( const TQString& ) ) ); - connect( mDlg->listViewCommands, TQT_SIGNAL( selectionChanged() ), - this, TQT_SLOT( listViewCommandsSelectionChanged() ) ); - connect( mDlg->listViewCommands, TQT_SIGNAL( itemRenamed( TQListViewItem*, int, const TQString& ) ), - this, TQT_SLOT( listViewCommandsRenamed( TQListViewItem*, int, const TQString& ) ) ); + connect( mDlg->pushButtonNew, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( buttonNewSelected() ) ); + connect( mDlg->pushButtonDelete, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( buttonDeleteSelected() ) ); + connect( mDlg->pushButtonAddCommand, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( buttonAddCommandSelected() ) ); + connect( mDlg->pushButtonRemoveCommand, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( buttonRemoveCommandSelected() ) ); + connect( mDlg->pushButtonUp, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( buttonCommandUpSelected() ) ); + connect( mDlg->pushButtonDown, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( buttonCommandDownSelected() ) ); + connect( mDlg->pushButtonAddToolTip, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( buttonAddToolTipSelected() ) ); + connect( mDlg->pushButtonRemoveToolTip, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( buttonRemoveToolTipSelected() ) ); + connect( mDlg->pushButtonNotifications, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( buttonNotificationsSelected() ) ); + connect( mDlg->pushButtonStatisticsDir, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( buttonStatisticsDirSelected() ) ); + connect( mDlg->lineEditAlias, TQ_SIGNAL( textChanged( const TQString& ) ), + this, TQ_SLOT( aliasChanged( const TQString& ) ) ); + connect( mDlg->comboBoxIconSet, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( iconSetChanged( int ) ) ); + connect( mDlg->comboBoxBackends, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( backendChanged( int ) ) ); + connect( mDlg->checkBoxNotConnected, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( checkBoxNotConnectedToggled ( bool ) ) ); + connect( mDlg->checkBoxNotExisting, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( checkBoxNotExistingToggled ( bool ) ) ); + connect( mDlg->checkBoxStatistics, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( checkBoxStatisticsToggled ( bool ) ) ); + connect( mDlg->checkBoxStartKNemo, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( checkBoxStartKNemoToggled( bool ) ) ); + connect( mDlg->spinBoxTrafficThreshold, TQ_SIGNAL( valueChanged( int ) ), + this, TQ_SLOT( spinBoxTrafficValueChanged ( int ) ) ); + connect( mDlg->checkBoxCustom, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( checkBoxCustomToggled ( bool ) ) ); + connect( mDlg->listBoxInterfaces, TQ_SIGNAL( highlighted( const TQString& ) ), + this, TQ_SLOT( interfaceSelected( const TQString& ) ) ); + connect( mDlg->listViewCommands, TQ_SIGNAL( selectionChanged() ), + this, TQ_SLOT( listViewCommandsSelectionChanged() ) ); + connect( mDlg->listViewCommands, TQ_SIGNAL( itemRenamed( TQListViewItem*, int, const TQString& ) ), + this, TQ_SLOT( listViewCommandsRenamed( TQListViewItem*, int, const TQString& ) ) ); // connect the plotter widgets - connect( mDlg->checkBoxTopBar, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( checkBoxToggled( bool ) ) ); - connect( mDlg->checkBoxLabels, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( checkBoxToggled( bool ) ) ); - connect( mDlg->checkBoxVLines, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( checkBoxToggled( bool ) ) ); - connect( mDlg->checkBoxHLines, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( checkBoxToggled( bool ) ) ); - connect( mDlg->checkBoxIncoming, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( checkBoxToggled( bool ) ) ); - connect( mDlg->checkBoxOutgoing, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( checkBoxToggled( bool ) ) ); - connect( mDlg->checkBoxVLinesScroll, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( checkBoxToggled( bool ) ) ); - connect( mDlg->checkBoxAutoDetection, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( checkBoxToggled( bool ) ) ); - connect( mDlg->spinBoxCount, TQT_SIGNAL( valueChanged( int ) ), - this, TQT_SLOT( spinBoxValueChanged( int ) ) ); - connect( mDlg->spinBoxPixel, TQT_SIGNAL( valueChanged( int ) ), - this, TQT_SLOT( spinBoxValueChanged( int ) ) ); - connect( mDlg->spinBoxDistance, TQT_SIGNAL( valueChanged( int ) ), - this, TQT_SLOT( spinBoxValueChanged( int ) ) ); - connect( mDlg->spinBoxFontSize, TQT_SIGNAL( valueChanged( int ) ), - this, TQT_SLOT( spinBoxValueChanged( int ) ) ); - connect( mDlg->spinBoxMinValue, TQT_SIGNAL( valueChanged( int ) ), - this, TQT_SLOT( spinBoxValueChanged( int ) ) ); - connect( mDlg->spinBoxMaxValue, TQT_SIGNAL( valueChanged( int ) ), - this, TQT_SLOT( spinBoxValueChanged( int ) ) ); - connect( mDlg->numInputPollInterval, TQT_SIGNAL( valueChanged( int ) ), - this, TQT_SLOT( spinBoxValueChanged( int ) ) ); - connect( mDlg->numInputSaveInterval, TQT_SIGNAL( valueChanged( int ) ), - this, TQT_SLOT( spinBoxValueChanged( int ) ) ); - connect( mDlg->kColorButtonVLines, TQT_SIGNAL( changed( const TQColor& ) ), - this, TQT_SLOT( kColorButtonChanged( const TQColor& ) ) ); - connect( mDlg->kColorButtonHLines, TQT_SIGNAL( changed( const TQColor& ) ), - this, TQT_SLOT( kColorButtonChanged( const TQColor& ) ) ); - connect( mDlg->kColorButtonIncoming, TQT_SIGNAL( changed( const TQColor& ) ), - this, TQT_SLOT( kColorButtonChanged( const TQColor& ) ) ); - connect( mDlg->kColorButtonOutgoing, TQT_SIGNAL( changed( const TQColor& ) ), - this, TQT_SLOT( kColorButtonChanged( const TQColor& ) ) ); - connect( mDlg->kColorButtonBackground, TQT_SIGNAL( changed( const TQColor& ) ), - this, TQT_SLOT( kColorButtonChanged( const TQColor& ) ) ); + connect( mDlg->checkBoxTopBar, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( checkBoxToggled( bool ) ) ); + connect( mDlg->checkBoxLabels, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( checkBoxToggled( bool ) ) ); + connect( mDlg->checkBoxVLines, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( checkBoxToggled( bool ) ) ); + connect( mDlg->checkBoxHLines, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( checkBoxToggled( bool ) ) ); + connect( mDlg->checkBoxIncoming, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( checkBoxToggled( bool ) ) ); + connect( mDlg->checkBoxOutgoing, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( checkBoxToggled( bool ) ) ); + connect( mDlg->checkBoxVLinesScroll, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( checkBoxToggled( bool ) ) ); + connect( mDlg->checkBoxAutoDetection, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( checkBoxToggled( bool ) ) ); + connect( mDlg->spinBoxCount, TQ_SIGNAL( valueChanged( int ) ), + this, TQ_SLOT( spinBoxValueChanged( int ) ) ); + connect( mDlg->spinBoxPixel, TQ_SIGNAL( valueChanged( int ) ), + this, TQ_SLOT( spinBoxValueChanged( int ) ) ); + connect( mDlg->spinBoxDistance, TQ_SIGNAL( valueChanged( int ) ), + this, TQ_SLOT( spinBoxValueChanged( int ) ) ); + connect( mDlg->spinBoxFontSize, TQ_SIGNAL( valueChanged( int ) ), + this, TQ_SLOT( spinBoxValueChanged( int ) ) ); + connect( mDlg->spinBoxMinValue, TQ_SIGNAL( valueChanged( int ) ), + this, TQ_SLOT( spinBoxValueChanged( int ) ) ); + connect( mDlg->spinBoxMaxValue, TQ_SIGNAL( valueChanged( int ) ), + this, TQ_SLOT( spinBoxValueChanged( int ) ) ); + connect( mDlg->numInputPollInterval, TQ_SIGNAL( valueChanged( int ) ), + this, TQ_SLOT( spinBoxValueChanged( int ) ) ); + connect( mDlg->numInputSaveInterval, TQ_SIGNAL( valueChanged( int ) ), + this, TQ_SLOT( spinBoxValueChanged( int ) ) ); + connect( mDlg->kColorButtonVLines, TQ_SIGNAL( changed( const TQColor& ) ), + this, TQ_SLOT( kColorButtonChanged( const TQColor& ) ) ); + connect( mDlg->kColorButtonHLines, TQ_SIGNAL( changed( const TQColor& ) ), + this, TQ_SLOT( kColorButtonChanged( const TQColor& ) ) ); + connect( mDlg->kColorButtonIncoming, TQ_SIGNAL( changed( const TQColor& ) ), + this, TQ_SLOT( kColorButtonChanged( const TQColor& ) ) ); + connect( mDlg->kColorButtonOutgoing, TQ_SIGNAL( changed( const TQColor& ) ), + this, TQ_SLOT( kColorButtonChanged( const TQColor& ) ) ); + connect( mDlg->kColorButtonBackground, TQ_SIGNAL( changed( const TQColor& ) ), + this, TQ_SLOT( kColorButtonChanged( const TQColor& ) ) ); // No dcop call if KNemo is not activated by the user. Otherwise // load-on-demand will start KNemo. @@ -583,8 +583,8 @@ void ConfigDialog::buttonAddCommandSelected() KNemoCheckListItem* item = new KNemoCheckListItem( mDlg->listViewCommands ); item->setRenameEnabled( 1, true ); item->setRenameEnabled( 2, true ); - connect( item, TQT_SIGNAL( stateChanged( KNemoCheckListItem*, bool ) ), - this, TQT_SLOT( listViewCommandsCheckListItemChanged( KNemoCheckListItem*, bool ) ) ); + connect( item, TQ_SIGNAL( stateChanged( KNemoCheckListItem*, bool ) ), + this, TQ_SLOT( listViewCommandsCheckListItemChanged( KNemoCheckListItem*, bool ) ) ); InterfaceSettings* settings = mSettingsDict[selected->text()]; TQValueVector<InterfaceCommand> cmds; @@ -877,8 +877,8 @@ void ConfigDialog::interfaceSelected( const TQString& interface ) item->setRenameEnabled( 1, true ); item->setText( 2, settings->commands[i].command ); item->setRenameEnabled( 2, true ); - connect( item, TQT_SIGNAL( stateChanged( KNemoCheckListItem*, bool ) ), - this, TQT_SLOT( listViewCommandsCheckListItemChanged( KNemoCheckListItem*, bool ) ) ); + connect( item, TQ_SIGNAL( stateChanged( KNemoCheckListItem*, bool ) ), + this, TQ_SLOT( listViewCommandsCheckListItemChanged( KNemoCheckListItem*, bool ) ) ); } iconSetChanged( settings->iconSet ); // to update iconset preview diff --git a/src/knemod/backends/nettoolsbackend.cpp b/src/knemod/backends/nettoolsbackend.cpp index 1437e47..20bca58 100644 --- a/src/knemod/backends/nettoolsbackend.cpp +++ b/src/knemod/backends/nettoolsbackend.cpp @@ -71,10 +71,10 @@ void NetToolsBackend::update() mIfconfigProcess->setEnvironment( "LANG", "C" ); mIfconfigProcess->setEnvironment( "LC_ALL", "C" ); *mIfconfigProcess << PATH_IFCONFIG << "-a"; - connect( mIfconfigProcess, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), - this, TQT_SLOT( ifconfigProcessStdout( TDEProcess*, char*, int ) ) ); - connect( mIfconfigProcess, TQT_SIGNAL( processExited( TDEProcess* ) ), - this, TQT_SLOT( ifconfigProcessExited( TDEProcess* ) ) ); + connect( mIfconfigProcess, TQ_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), + this, TQ_SLOT( ifconfigProcessStdout( TDEProcess*, char*, int ) ) ); + connect( mIfconfigProcess, TQ_SIGNAL( processExited( TDEProcess* ) ), + this, TQ_SLOT( ifconfigProcessExited( TDEProcess* ) ) ); if ( !mIfconfigProcess->start( TDEProcess::NotifyOnExit, TDEProcess::Stdout ) ) { @@ -91,12 +91,12 @@ void NetToolsBackend::update() mIwconfigProcess->setEnvironment( "LANG", "C" ); mIwconfigProcess->setEnvironment( "LC_ALL", "C" ); *mIwconfigProcess << PATH_IWCONFIG; - connect( mIwconfigProcess, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), - this, TQT_SLOT( iwconfigProcessStdout( TDEProcess*, char*, int ) ) ); - connect( mIwconfigProcess, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), - this, TQT_SLOT( iwconfigProcessStdout( TDEProcess*, char*, int ) ) ); - connect( mIwconfigProcess, TQT_SIGNAL( processExited( TDEProcess* ) ), - this, TQT_SLOT( iwconfigProcessExited( TDEProcess* ) ) ); + connect( mIwconfigProcess, TQ_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), + this, TQ_SLOT( iwconfigProcessStdout( TDEProcess*, char*, int ) ) ); + connect( mIwconfigProcess, TQ_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), + this, TQ_SLOT( iwconfigProcessStdout( TDEProcess*, char*, int ) ) ); + connect( mIwconfigProcess, TQ_SIGNAL( processExited( TDEProcess* ) ), + this, TQ_SLOT( iwconfigProcessExited( TDEProcess* ) ) ); if ( !mIwconfigProcess->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) ) { @@ -114,12 +114,12 @@ void NetToolsBackend::update() mRouteProcess->setEnvironment( "LANG", "C" ); mRouteProcess->setEnvironment( "LC_ALL", "C" ); *mRouteProcess << PATH_ROUTE << "-n"; - connect( mRouteProcess, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), - this, TQT_SLOT( routeProcessStdout( TDEProcess*, char*, int ) ) ); - connect( mRouteProcess, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), - this, TQT_SLOT( routeProcessStdout( TDEProcess*, char*, int ) ) ); - connect( mRouteProcess, TQT_SIGNAL( processExited( TDEProcess* ) ), - this, TQT_SLOT( routeProcessExited( TDEProcess* ) ) ); + connect( mRouteProcess, TQ_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), + this, TQ_SLOT( routeProcessStdout( TDEProcess*, char*, int ) ) ); + connect( mRouteProcess, TQ_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), + this, TQ_SLOT( routeProcessStdout( TDEProcess*, char*, int ) ) ); + connect( mRouteProcess, TQ_SIGNAL( processExited( TDEProcess* ) ), + this, TQ_SLOT( routeProcessExited( TDEProcess* ) ) ); if ( !mRouteProcess->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) ) { diff --git a/src/knemod/interface.cpp b/src/knemod/interface.cpp index ed672a4..c2c09ee 100644 --- a/src/knemod/interface.cpp +++ b/src/knemod/interface.cpp @@ -51,20 +51,20 @@ Interface::Interface( TQString ifname, mGeneralData( generalData ), mPlotterSettings( plotterSettings ) { - connect( &mMonitor, TQT_SIGNAL( statusChanged( int ) ), - &mIcon, TQT_SLOT( updateStatus( int ) ) ); - connect( &mMonitor, TQT_SIGNAL( available( int ) ), - &mIcon, TQT_SLOT( updateTrayStatus( int ) ) ); - connect( &mMonitor, TQT_SIGNAL( notAvailable( int ) ), - &mIcon, TQT_SLOT( updateTrayStatus( int ) ) ); - connect( &mMonitor, TQT_SIGNAL( notExisting( int ) ), - &mIcon, TQT_SLOT( updateTrayStatus( int ) ) ); - connect( &mMonitor, TQT_SIGNAL( available( int ) ), - this, TQT_SLOT( setStartTime( int ) ) ); - connect( &mMonitor, TQT_SIGNAL( statusChanged( int ) ), - this, TQT_SLOT( resetData( int ) ) ); - connect( &mIcon, TQT_SIGNAL( statisticsSelected() ), - this, TQT_SLOT( showStatisticsDialog() ) ); + connect( &mMonitor, TQ_SIGNAL( statusChanged( int ) ), + &mIcon, TQ_SLOT( updateStatus( int ) ) ); + connect( &mMonitor, TQ_SIGNAL( available( int ) ), + &mIcon, TQ_SLOT( updateTrayStatus( int ) ) ); + connect( &mMonitor, TQ_SIGNAL( notAvailable( int ) ), + &mIcon, TQ_SLOT( updateTrayStatus( int ) ) ); + connect( &mMonitor, TQ_SIGNAL( notExisting( int ) ), + &mIcon, TQ_SLOT( updateTrayStatus( int ) ) ); + connect( &mMonitor, TQ_SIGNAL( available( int ) ), + this, TQ_SLOT( setStartTime( int ) ) ); + connect( &mMonitor, TQ_SIGNAL( statusChanged( int ) ), + this, TQ_SLOT( resetData( int ) ) ); + connect( &mIcon, TQ_SIGNAL( statisticsSelected() ), + this, TQ_SLOT( showStatisticsDialog() ) ); } Interface::~Interface() @@ -143,16 +143,16 @@ void Interface::showStatusDialog() if ( mStatusDialog == 0L ) { mStatusDialog = new InterfaceStatusDialog( this ); - connect( &mMonitor, TQT_SIGNAL( available( int ) ), - mStatusDialog, TQT_SLOT( enableNetworkGroups( int ) ) ); - connect( &mMonitor, TQT_SIGNAL( notAvailable( int ) ), - mStatusDialog, TQT_SLOT( disableNetworkGroups( int ) ) ); - connect( &mMonitor, TQT_SIGNAL( notExisting( int ) ), - mStatusDialog, TQT_SLOT( disableNetworkGroups( int ) ) ); + connect( &mMonitor, TQ_SIGNAL( available( int ) ), + mStatusDialog, TQ_SLOT( enableNetworkGroups( int ) ) ); + connect( &mMonitor, TQ_SIGNAL( notAvailable( int ) ), + mStatusDialog, TQ_SLOT( disableNetworkGroups( int ) ) ); + connect( &mMonitor, TQ_SIGNAL( notExisting( int ) ), + mStatusDialog, TQ_SLOT( disableNetworkGroups( int ) ) ); if ( mStatistics != 0 ) { - connect( mStatistics, TQT_SIGNAL( currentEntryChanged() ), - mStatusDialog, TQT_SLOT( statisticsChanged() ) ); + connect( mStatistics, TQ_SIGNAL( currentEntryChanged() ), + mStatusDialog, TQ_SLOT( statisticsChanged() ) ); mStatusDialog->statisticsChanged(); } activateOrHide( mStatusDialog, true ); @@ -177,8 +177,8 @@ void Interface::showSignalPlotter( bool wasMiddleButton ) activateOrHide( mPlotter, true ); mPlotterTimer = new TQTimer(); - connect( mPlotterTimer, TQT_SIGNAL( timeout() ), - this, TQT_SLOT( updatePlotter() ) ); + connect( mPlotterTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( updatePlotter() ) ); mPlotterTimer->start( 1000 ); } else @@ -206,20 +206,20 @@ void Interface::showStatisticsDialog() // should never happen but you never know... startStatistics(); } - connect( mStatistics, TQT_SIGNAL( dayStatisticsChanged() ), - mStatisticsDialog, TQT_SLOT( updateDays() ) ); - connect( mStatistics, TQT_SIGNAL( monthStatisticsChanged() ), - mStatisticsDialog, TQT_SLOT( updateMonths() ) ); - connect( mStatistics, TQT_SIGNAL( yearStatisticsChanged() ), - mStatisticsDialog, TQT_SLOT( updateYears() ) ); - connect( mStatistics, TQT_SIGNAL( currentEntryChanged() ), - mStatisticsDialog, TQT_SLOT( updateCurrentEntry() ) ); - connect( mStatisticsDialog, TQT_SIGNAL( clearDailyStatisticsClicked() ), - mStatistics, TQT_SLOT( clearDayStatistics() ) ); - connect( mStatisticsDialog, TQT_SIGNAL( clearMonthlyStatisticsClicked() ), - mStatistics, TQT_SLOT( clearMonthStatistics() ) ); - connect( mStatisticsDialog, TQT_SIGNAL( clearYearlyStatisticsClicked() ), - mStatistics, TQT_SLOT( clearYearStatistics() ) ); + connect( mStatistics, TQ_SIGNAL( dayStatisticsChanged() ), + mStatisticsDialog, TQ_SLOT( updateDays() ) ); + connect( mStatistics, TQ_SIGNAL( monthStatisticsChanged() ), + mStatisticsDialog, TQ_SLOT( updateMonths() ) ); + connect( mStatistics, TQ_SIGNAL( yearStatisticsChanged() ), + mStatisticsDialog, TQ_SLOT( updateYears() ) ); + connect( mStatistics, TQ_SIGNAL( currentEntryChanged() ), + mStatisticsDialog, TQ_SLOT( updateCurrentEntry() ) ); + connect( mStatisticsDialog, TQ_SIGNAL( clearDailyStatisticsClicked() ), + mStatistics, TQ_SLOT( clearDayStatistics() ) ); + connect( mStatisticsDialog, TQ_SIGNAL( clearMonthlyStatisticsClicked() ), + mStatistics, TQ_SLOT( clearMonthStatistics() ) ); + connect( mStatisticsDialog, TQ_SIGNAL( clearYearlyStatisticsClicked() ), + mStatistics, TQ_SLOT( clearYearStatistics() ) ); mStatisticsDialog->updateDays(); mStatisticsDialog->updateMonths(); @@ -404,14 +404,14 @@ void Interface::configurePlotter() void Interface::startStatistics() { mStatistics = new InterfaceStatistics( this ); - connect( &mMonitor, TQT_SIGNAL( incomingData( unsigned long ) ), - mStatistics, TQT_SLOT( addIncomingData( unsigned long ) ) ); - connect( &mMonitor, TQT_SIGNAL( outgoingData( unsigned long ) ), - mStatistics, TQT_SLOT( addOutgoingData( unsigned long ) ) ); + connect( &mMonitor, TQ_SIGNAL( incomingData( unsigned long ) ), + mStatistics, TQ_SLOT( addIncomingData( unsigned long ) ) ); + connect( &mMonitor, TQ_SIGNAL( outgoingData( unsigned long ) ), + mStatistics, TQ_SLOT( addOutgoingData( unsigned long ) ) ); if ( mStatusDialog != 0 ) { - connect( mStatistics, TQT_SIGNAL( currentEntryChanged() ), - mStatusDialog, TQT_SLOT( statisticsChanged() ) ); + connect( mStatistics, TQ_SIGNAL( currentEntryChanged() ), + mStatusDialog, TQ_SLOT( statisticsChanged() ) ); mStatusDialog->statisticsChanged(); } diff --git a/src/knemod/interfaceicon.cpp b/src/knemod/interfaceicon.cpp index cebcbc2..2508bcd 100644 --- a/src/knemod/interfaceicon.cpp +++ b/src/knemod/interfaceicon.cpp @@ -137,7 +137,7 @@ void InterfaceIcon::updateMenu() if ( settings.activateStatistics ) { menu->insertItem( i18n( "Open &Statistics" ), this, - TQT_SIGNAL( statisticsSelected() ) ); + TQ_SIGNAL( statisticsSelected() ) ); } // If the user wants custom commands, add them. @@ -233,16 +233,16 @@ void InterfaceIcon::updateTrayStatus( int previousState, bool notify ) mTray = new InterfaceTray( mInterface->getName() ); TQToolTip::add( mTray, mInterface->getName() ); TDEPopupMenu* menu = mTray->contextMenu(); - connect( menu, TQT_SIGNAL( activated( int ) ), - this, TQT_SLOT( menuActivated( int ) ) ); - connect( mTray, TQT_SIGNAL( leftClicked() ), - mInterface, TQT_SLOT( showStatusDialog() ) ); - connect( mTray, TQT_SIGNAL( graphSelected( bool ) ), - mInterface, TQT_SLOT( showSignalPlotter( bool ) ) ); - connect( mTray, TQT_SIGNAL( configSelected() ), - this, TQT_SLOT( showConfigDialog() ) ); - connect( mTray, TQT_SIGNAL( iconResized() ), - this, TQT_SLOT( resizeIcon() ) ); + connect( menu, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( menuActivated( int ) ) ); + connect( mTray, TQ_SIGNAL( leftClicked() ), + mInterface, TQ_SLOT( showStatusDialog() ) ); + connect( mTray, TQ_SIGNAL( graphSelected( bool ) ), + mInterface, TQ_SLOT( showSignalPlotter( bool ) ) ); + connect( mTray, TQ_SIGNAL( configSelected() ), + this, TQ_SLOT( showConfigDialog() ) ); + connect( mTray, TQ_SIGNAL( iconResized() ), + this, TQ_SLOT( resizeIcon() ) ); updateStatus( mInterface->getState() ); updateToolTip(); diff --git a/src/knemod/interfacestatistics.cpp b/src/knemod/interfacestatistics.cpp index 11212f3..4dcf915 100644 --- a/src/knemod/interfacestatistics.cpp +++ b/src/knemod/interfacestatistics.cpp @@ -38,7 +38,7 @@ InterfaceStatistics::InterfaceStatistics( Interface* interface ) initStatistics(); mSaveTimer = new TQTimer(); - connect( mSaveTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( saveStatistics() ) ); + connect( mSaveTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( saveStatistics() ) ); mSaveTimer->start( mInterface->getGeneralData().saveInterval * 1000 ); } diff --git a/src/knemod/interfacestatisticsdialog.cpp b/src/knemod/interfacestatisticsdialog.cpp index 5fe9634..3da5d32 100644 --- a/src/knemod/interfacestatisticsdialog.cpp +++ b/src/knemod/interfacestatisticsdialog.cpp @@ -43,9 +43,9 @@ InterfaceStatisticsDialog::InterfaceStatisticsDialog( Interface* interface, TQWi setIcon( SmallIcon( "knemo" ) ); setCaption( interface->getName() + " " + i18n( "Statistics" ) ); - connect( buttonClearDaily, TQT_SIGNAL( clicked() ), TQT_SIGNAL( clearDailyStatisticsClicked() ) ); - connect( buttonClearMonthly, TQT_SIGNAL( clicked() ), TQT_SIGNAL( clearMonthlyStatisticsClicked() ) ); - connect( buttonClearYearly, TQT_SIGNAL( clicked() ), TQT_SIGNAL( clearYearlyStatisticsClicked() ) ); + connect( buttonClearDaily, TQ_SIGNAL( clicked() ), TQ_SIGNAL( clearDailyStatisticsClicked() ) ); + connect( buttonClearMonthly, TQ_SIGNAL( clicked() ), TQ_SIGNAL( clearMonthlyStatisticsClicked() ) ); + connect( buttonClearYearly, TQ_SIGNAL( clicked() ), TQ_SIGNAL( clearYearlyStatisticsClicked() ) ); } InterfaceStatisticsDialog::~InterfaceStatisticsDialog() diff --git a/src/knemod/interfacestatusdialog.cpp b/src/knemod/interfacestatusdialog.cpp index 12bc469..2ba911b 100644 --- a/src/knemod/interfacestatusdialog.cpp +++ b/src/knemod/interfacestatusdialog.cpp @@ -85,7 +85,7 @@ InterfaceStatusDialog::InterfaceStatusDialog( Interface* interface, TQWidget* pa statisticsChanged(); mTimer = new TQTimer(); - connect( mTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( updateDialog() ) ); + connect( mTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( updateDialog() ) ); mTimer->start( 1000 ); } diff --git a/src/knemod/interfacetray.cpp b/src/knemod/interfacetray.cpp index 17f4b7e..cd1daf5 100644 --- a/src/knemod/interfacetray.cpp +++ b/src/knemod/interfacetray.cpp @@ -49,16 +49,16 @@ InterfaceTray::InterfaceTray( const TQString& ifname, "KNemo - " + ifname ); popup->insertItem( SmallIcon( "knemo" ), i18n( "&About KNemo" ), this, - TQT_SLOT( showAboutDialog() ) ); + TQ_SLOT( showAboutDialog() ) ); popup->insertItem( i18n( "&Report Bug..." ), this, - TQT_SLOT( showReportBugDialog() ) ); + TQ_SLOT( showReportBugDialog() ) ); popup->insertSeparator(); popup->insertItem( SmallIcon( "configure" ), i18n( "&Configure KNemo..." ), this, - TQT_SIGNAL( configSelected() ) ); + TQ_SIGNAL( configSelected() ) ); popup->insertItem( SmallIcon( "ksysguard" ), i18n( "&Open Traffic Plotter" ), this, - TQT_SLOT( showGraph() ) ); + TQ_SLOT( showGraph() ) ); } InterfaceTray::~InterfaceTray() diff --git a/src/knemod/knemodaemon.cpp b/src/knemod/knemodaemon.cpp index 0ad399e..91ae99b 100644 --- a/src/knemod/knemodaemon.cpp +++ b/src/knemod/knemodaemon.cpp @@ -81,7 +81,7 @@ KNemoDaemon::KNemoDaemon( const TQCString& name ) mInterfaceDict.setAutoDelete( true ); mPollTimer = new TQTimer(); - connect( mPollTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( updateInterfaces() ) ); + connect( mPollTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( updateInterfaces() ) ); mPollTimer->start( mGeneralData.pollInterval * 1000 ); } |