diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-28 21:15:09 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-01 17:43:59 +0900 |
commit | 2a173c586953cbca4c6fbb598d2644a911ac0f3d (patch) | |
tree | 532016217a18b4ca78ffae6f6c3dfcbdcd35dc09 /src/commonwidget.cpp | |
parent | 76067f79800c1d8e4417dbd74b27d860c84fef26 (diff) | |
download | knmap-2a173c586953cbca4c6fbb598d2644a911ac0f3d.tar.gz knmap-2a173c586953cbca4c6fbb598d2644a911ac0f3d.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8c94fd2f9bea6e051ac0903362fceb7cd92fde41)
Diffstat (limited to 'src/commonwidget.cpp')
-rw-r--r-- | src/commonwidget.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/src/commonwidget.cpp b/src/commonwidget.cpp index 1287f73..6170907 100644 --- a/src/commonwidget.cpp +++ b/src/commonwidget.cpp @@ -228,33 +228,33 @@ void CommonWidget::enablePortRangeWidgets( ) void CommonWidget::finaliseInitialisation( ) { WhatsThis* whatsThis = new WhatsThis( this ); - connect( m_hostButton, SIGNAL( clicked( )), SLOT( slotHostButtonClicked( ))); - connect( m_hostComboBox, SIGNAL( activated( int )), SLOT( slotHostActivated( int ))); - connect( m_hostComboBox, SIGNAL( textChanged( const TQString& )), SLOT( slotHostTextChanged( const TQString& ))); - connect( m_portRangeAddButton, SIGNAL( clicked( )), SLOT( slotPortRangeAddClicked( ))); - connect( m_portRangeButton, SIGNAL( clicked( )), SLOT( slotPortRangeButtonClicked( ))); - connect( m_portRangeDeleteButton, SIGNAL( clicked( )), SLOT( slotPortRangeDeleteClicked( ))); - connect( m_portRangeComboBox, SIGNAL( activated( int )), SLOT( slotPortRangeActivated( int ))); - connect( m_portRangeLineEdit, SIGNAL( textChanged( const TQString& )), SLOT( slotPortRangeTextChanged( const TQString& ))); - connect( m_portRangeListBox, SIGNAL( doubleClicked( TQListBoxItem* )), SLOT( slotPortRangeDoubleClicked( TQListBoxItem* ))); - connect( m_portRangeListBox, SIGNAL( highlighted( int )), SLOT( slotPortRangeHighlighted( ))); - connect( m_portRangesCheckBox, SIGNAL( clicked( )), SLOT( slotPortRangesClicked( ))); - connect( whatsThis, SIGNAL( clicked( )), SLOT( slotWhatsThisClicked( ))); - - connect( m_hostButton, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); - connect( m_hostComboBox, SIGNAL( activated ( int )), SIGNAL( optionsDirty( ))); - connect( m_hostComboBox, SIGNAL( textChanged( const TQString& )), SIGNAL( optionsDirty( ))); - connect( m_portRangeAddButton, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); - connect( m_portRangeButton, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); - connect( m_portRangeComboBox, SIGNAL( activated( int )), SIGNAL( optionsDirty( ))); - connect( m_portRangeDeleteButton, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); - connect( m_portRangeLineEdit, SIGNAL( textChanged( const TQString& )), SIGNAL( optionsDirty( ))); - connect( m_portRangeListBox, SIGNAL( doubleClicked( TQListBoxItem* )), SIGNAL( optionsDirty( ))); - connect( m_portRangeListBox, SIGNAL( highlighted ( int )), SIGNAL( optionsDirty( ))); - connect( m_portRangesCheckBox, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); - connect( m_resovleAlwaysRadio, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); - connect( m_resovleDefaultRadio, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); - connect( m_resovleNeverRadio, SIGNAL( clicked( )), SIGNAL( optionsDirty( ))); + connect( m_hostButton, TQ_SIGNAL( clicked( )), TQ_SLOT( slotHostButtonClicked( ))); + connect( m_hostComboBox, TQ_SIGNAL( activated( int )), TQ_SLOT( slotHostActivated( int ))); + connect( m_hostComboBox, TQ_SIGNAL( textChanged( const TQString& )), TQ_SLOT( slotHostTextChanged( const TQString& ))); + connect( m_portRangeAddButton, TQ_SIGNAL( clicked( )), TQ_SLOT( slotPortRangeAddClicked( ))); + connect( m_portRangeButton, TQ_SIGNAL( clicked( )), TQ_SLOT( slotPortRangeButtonClicked( ))); + connect( m_portRangeDeleteButton, TQ_SIGNAL( clicked( )), TQ_SLOT( slotPortRangeDeleteClicked( ))); + connect( m_portRangeComboBox, TQ_SIGNAL( activated( int )), TQ_SLOT( slotPortRangeActivated( int ))); + connect( m_portRangeLineEdit, TQ_SIGNAL( textChanged( const TQString& )), TQ_SLOT( slotPortRangeTextChanged( const TQString& ))); + connect( m_portRangeListBox, TQ_SIGNAL( doubleClicked( TQListBoxItem* )), TQ_SLOT( slotPortRangeDoubleClicked( TQListBoxItem* ))); + connect( m_portRangeListBox, TQ_SIGNAL( highlighted( int )), TQ_SLOT( slotPortRangeHighlighted( ))); + connect( m_portRangesCheckBox, TQ_SIGNAL( clicked( )), TQ_SLOT( slotPortRangesClicked( ))); + connect( whatsThis, TQ_SIGNAL( clicked( )), TQ_SLOT( slotWhatsThisClicked( ))); + + connect( m_hostButton, TQ_SIGNAL( clicked( )), TQ_SIGNAL( optionsDirty( ))); + connect( m_hostComboBox, TQ_SIGNAL( activated ( int )), TQ_SIGNAL( optionsDirty( ))); + connect( m_hostComboBox, TQ_SIGNAL( textChanged( const TQString& )), TQ_SIGNAL( optionsDirty( ))); + connect( m_portRangeAddButton, TQ_SIGNAL( clicked( )), TQ_SIGNAL( optionsDirty( ))); + connect( m_portRangeButton, TQ_SIGNAL( clicked( )), TQ_SIGNAL( optionsDirty( ))); + connect( m_portRangeComboBox, TQ_SIGNAL( activated( int )), TQ_SIGNAL( optionsDirty( ))); + connect( m_portRangeDeleteButton, TQ_SIGNAL( clicked( )), TQ_SIGNAL( optionsDirty( ))); + connect( m_portRangeLineEdit, TQ_SIGNAL( textChanged( const TQString& )), TQ_SIGNAL( optionsDirty( ))); + connect( m_portRangeListBox, TQ_SIGNAL( doubleClicked( TQListBoxItem* )), TQ_SIGNAL( optionsDirty( ))); + connect( m_portRangeListBox, TQ_SIGNAL( highlighted ( int )), TQ_SIGNAL( optionsDirty( ))); + connect( m_portRangesCheckBox, TQ_SIGNAL( clicked( )), TQ_SIGNAL( optionsDirty( ))); + connect( m_resovleAlwaysRadio, TQ_SIGNAL( clicked( )), TQ_SIGNAL( optionsDirty( ))); + connect( m_resovleDefaultRadio, TQ_SIGNAL( clicked( )), TQ_SIGNAL( optionsDirty( ))); + connect( m_resovleNeverRadio, TQ_SIGNAL( clicked( )), TQ_SIGNAL( optionsDirty( ))); emit( targetChanged( m_hostComboBox->currentText( ))); } @@ -300,11 +300,11 @@ bool CommonWidget::getOptions( ) m_portRanges = new TQStringList( portRanges ); getHosts( m_hosts ); - disconnect( m_hostComboBox, SIGNAL( activated( int )), this, SLOT( slotHostActivated( int ))); - disconnect( m_hostComboBox, SIGNAL( textChanged( const TQString& )), this, SLOT( slotHostTextChanged( const TQString& ))); + disconnect( m_hostComboBox, TQ_SIGNAL( activated( int )), this, TQ_SLOT( slotHostActivated( int ))); + disconnect( m_hostComboBox, TQ_SIGNAL( textChanged( const TQString& )), this, TQ_SLOT( slotHostTextChanged( const TQString& ))); - disconnect( m_hostComboBox, SIGNAL( activated ( int )), this, SIGNAL( optionsDirty( ))); - disconnect( m_hostComboBox, SIGNAL( textChanged( const TQString& )), this, SIGNAL( optionsDirty( ))); + disconnect( m_hostComboBox, TQ_SIGNAL( activated ( int )), this, TQ_SIGNAL( optionsDirty( ))); + disconnect( m_hostComboBox, TQ_SIGNAL( textChanged( const TQString& )), this, TQ_SIGNAL( optionsDirty( ))); byte i; TQStringList::Iterator it; @@ -327,11 +327,11 @@ bool CommonWidget::getOptions( ) m_hostComboBox->setCurrentItem( 0 ); m_hosts->prepend( m_host ); - connect( m_hostComboBox, SIGNAL( activated( int )), SLOT( slotHostActivated( int ))); - connect( m_hostComboBox, SIGNAL( textChanged( const TQString& )), SLOT( slotHostTextChanged( const TQString& ))); + connect( m_hostComboBox, TQ_SIGNAL( activated( int )), TQ_SLOT( slotHostActivated( int ))); + connect( m_hostComboBox, TQ_SIGNAL( textChanged( const TQString& )), TQ_SLOT( slotHostTextChanged( const TQString& ))); - connect( m_hostComboBox, SIGNAL( activated ( int )), SIGNAL( optionsDirty( ))); - connect( m_hostComboBox, SIGNAL( textChanged( const TQString& )), SIGNAL( optionsDirty( ))); + connect( m_hostComboBox, TQ_SIGNAL( activated ( int )), TQ_SIGNAL( optionsDirty( ))); + connect( m_hostComboBox, TQ_SIGNAL( textChanged( const TQString& )), TQ_SIGNAL( optionsDirty( ))); return true; } |