diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-14 12:33:20 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-14 12:43:48 +0900 |
commit | 3b3f9ec8f31978030c17309fae48335bea5c1587 (patch) | |
tree | 0b493383a1501860371aacd792ec6fc08d595824 /kmail/kmfilterdlg.cpp | |
parent | 99e6e1d1f43610c3573e9824a2a8a38f69930cd0 (diff) | |
download | tdepim-3b3f9ec8f31978030c17309fae48335bea5c1587.tar.gz tdepim-3b3f9ec8f31978030c17309fae48335bea5c1587.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmail/kmfilterdlg.cpp')
-rw-r--r-- | kmail/kmfilterdlg.cpp | 150 |
1 files changed, 75 insertions, 75 deletions
diff --git a/kmail/kmfilterdlg.cpp b/kmail/kmfilterdlg.cpp index 32eb1492b..e6d1668f1 100644 --- a/kmail/kmfilterdlg.cpp +++ b/kmail/kmfilterdlg.cpp @@ -138,10 +138,10 @@ KMFilterDlg::KMFilterDlg(TQWidget* parent, const char* name, bool popFilter, boo setHelp( (bPopFilter)? KMPopFilterDlgHelpAnchor: KMFilterDlgHelpAnchor ); setButtonText( User1, i18n("Import") ); setButtonText( User2, i18n("Export") ); - connect( this, TQT_SIGNAL(user1Clicked()), - this, TQT_SLOT( slotImportFilters()) ); - connect( this, TQT_SIGNAL(user2Clicked()), - this, TQT_SLOT( slotExportFilters()) ); + connect( this, TQ_SIGNAL(user1Clicked()), + this, TQ_SLOT( slotImportFilters()) ); + connect( this, TQ_SIGNAL(user2Clicked()), + this, TQ_SLOT( slotExportFilters()) ); TQWidget *w = new TQWidget( this ); setMainWidget( w ); @@ -262,81 +262,81 @@ KMFilterDlg::KMFilterDlg(TQWidget* parent, const char* name, bool popFilter, boo vbl->addStretch( 1 ); // load the filter parts into the edit widgets - connect( mFilterList, TQT_SIGNAL(filterSelected(KMFilter*)), - this, TQT_SLOT(slotFilterSelected(KMFilter*)) ); + connect( mFilterList, TQ_SIGNAL(filterSelected(KMFilter*)), + this, TQ_SLOT(slotFilterSelected(KMFilter*)) ); if (bPopFilter){ // set the state of the global setting 'show later msgs' - connect( mShowLaterBtn, TQT_SIGNAL(toggled(bool)), - mFilterList, TQT_SLOT(slotShowLaterToggled(bool))); + connect( mShowLaterBtn, TQ_SIGNAL(toggled(bool)), + mFilterList, TQ_SLOT(slotShowLaterToggled(bool))); // set the action in the filter when changed - connect( mActionGroup, TQT_SIGNAL(actionChanged(const KMPopFilterAction)), - this, TQT_SLOT(slotActionChanged(const KMPopFilterAction)) ); + connect( mActionGroup, TQ_SIGNAL(actionChanged(const KMPopFilterAction)), + this, TQ_SLOT(slotActionChanged(const KMPopFilterAction)) ); } else { // transfer changes from the 'Apply this filter on...' // combo box to the filter - connect( mApplyOnIn, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotApplicabilityChanged()) ); - connect( mApplyOnForAll, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotApplicabilityChanged()) ); - connect( mApplyOnForTraditional, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotApplicabilityChanged()) ); - connect( mApplyOnForChecked, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotApplicabilityChanged()) ); - connect( mApplyOnOut, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotApplicabilityChanged()) ); - connect( mApplyOnCtrlJ, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotApplicabilityChanged()) ); - connect( mAccountList, TQT_SIGNAL(clicked(TQListViewItem*)), - this, TQT_SLOT(slotApplicableAccountsChanged()) ); - connect( mAccountList, TQT_SIGNAL(spacePressed(TQListViewItem*)), - this, TQT_SLOT(slotApplicableAccountsChanged()) ); + connect( mApplyOnIn, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotApplicabilityChanged()) ); + connect( mApplyOnForAll, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotApplicabilityChanged()) ); + connect( mApplyOnForTraditional, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotApplicabilityChanged()) ); + connect( mApplyOnForChecked, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotApplicabilityChanged()) ); + connect( mApplyOnOut, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotApplicabilityChanged()) ); + connect( mApplyOnCtrlJ, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotApplicabilityChanged()) ); + connect( mAccountList, TQ_SIGNAL(clicked(TQListViewItem*)), + this, TQ_SLOT(slotApplicableAccountsChanged()) ); + connect( mAccountList, TQ_SIGNAL(spacePressed(TQListViewItem*)), + this, TQ_SLOT(slotApplicableAccountsChanged()) ); // transfer changes from the 'stop processing here' // check box to the filter - connect( mStopProcessingHere, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotStopProcessingButtonToggled(bool)) ); + connect( mStopProcessingHere, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotStopProcessingButtonToggled(bool)) ); - connect( mConfigureShortcut, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotConfigureShortcutButtonToggled(bool)) ); + connect( mConfigureShortcut, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotConfigureShortcutButtonToggled(bool)) ); - connect( mKeyButton, TQT_SIGNAL( capturedShortcut( const TDEShortcut& ) ), - this, TQT_SLOT( slotCapturedShortcutChanged( const TDEShortcut& ) ) ); + connect( mKeyButton, TQ_SIGNAL( capturedShortcut( const TDEShortcut& ) ), + this, TQ_SLOT( slotCapturedShortcutChanged( const TDEShortcut& ) ) ); - connect( mConfigureToolbar, TQT_SIGNAL(toggled(bool)), - this, TQT_SLOT(slotConfigureToolbarButtonToggled(bool)) ); + connect( mConfigureToolbar, TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(slotConfigureToolbarButtonToggled(bool)) ); - connect( mFilterActionIconButton, TQT_SIGNAL( iconChanged( TQString ) ), - this, TQT_SLOT( slotFilterActionIconChanged( TQString ) ) ); + connect( mFilterActionIconButton, TQ_SIGNAL( iconChanged( TQString ) ), + this, TQ_SLOT( slotFilterActionIconChanged( TQString ) ) ); } // reset all widgets here - connect( mFilterList, TQT_SIGNAL(resetWidgets()), - this, TQT_SLOT(slotReset()) ); + connect( mFilterList, TQ_SIGNAL(resetWidgets()), + this, TQ_SLOT(slotReset()) ); - connect( mFilterList, TQT_SIGNAL( applyWidgets() ), - this, TQT_SLOT( slotUpdateFilter() ) ); + connect( mFilterList, TQ_SIGNAL( applyWidgets() ), + this, TQ_SLOT( slotUpdateFilter() ) ); // support auto-naming the filter - connect( mPatternEdit, TQT_SIGNAL(maybeNameChanged()), - mFilterList, TQT_SLOT(slotUpdateFilterName()) ); + connect( mPatternEdit, TQ_SIGNAL(maybeNameChanged()), + mFilterList, TQ_SLOT(slotUpdateFilterName()) ); // apply changes on 'Apply' - connect( this, TQT_SIGNAL(applyClicked()), - mFilterList, TQT_SLOT(slotApplyFilterChanges()) ); + connect( this, TQ_SIGNAL(applyClicked()), + mFilterList, TQ_SLOT(slotApplyFilterChanges()) ); // apply changes on 'OK' - connect( this, TQT_SIGNAL(okClicked()), - mFilterList, TQT_SLOT(slotApplyFilterChanges()) ); + connect( this, TQ_SIGNAL(okClicked()), + mFilterList, TQ_SLOT(slotApplyFilterChanges()) ); // save dialog size on 'OK' - connect( this, TQT_SIGNAL(okClicked()), - this, TQT_SLOT(slotSaveSize()) ); + connect( this, TQ_SIGNAL(okClicked()), + this, TQ_SLOT(slotSaveSize()) ); // destruct the dialog on OK, close and Cancel - connect( this, TQT_SIGNAL(finished()), - this, TQT_SLOT(slotFinished()) ); + connect( this, TQ_SIGNAL(finished()), + this, TQ_SLOT(slotFinished()) ); TDEConfigGroup geometry( KMKernel::config(), "Geometry"); const char * configKey @@ -642,31 +642,31 @@ KMFilterListBox::KMFilterListBox( const TQString & title, TQWidget *parent, cons hb = new TQHBox( this ); hb->setSpacing( 4 ); TQPushButton *btn = new TQPushButton( i18n("Select Source Folders"), hb ); - connect( btn, TQT_SIGNAL(clicked()), TQT_SLOT(slotSelectSourceFolders()) ); + connect( btn, TQ_SIGNAL(clicked()), TQ_SLOT(slotSelectSourceFolders()) ); } //----------- now connect everything - connect( mListBox, TQT_SIGNAL(highlighted(int)), - this, TQT_SLOT(slotSelected(int)) ); - connect( mListBox, TQT_SIGNAL( doubleClicked ( TQListBoxItem * )), - this, TQT_SLOT( slotRename()) ); - connect( mBtnTop, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotTop()) ); - connect( mBtnUp, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotUp()) ); - connect( mBtnDown, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotDown()) ); - connect( mBtnBot, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotBottom()) ); - connect( mBtnNew, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotNew()) ); - connect( mBtnCopy, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotCopy()) ); - connect( mBtnDelete, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotDelete()) ); - connect( mBtnRename, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slotRename()) ); + connect( mListBox, TQ_SIGNAL(highlighted(int)), + this, TQ_SLOT(slotSelected(int)) ); + connect( mListBox, TQ_SIGNAL( doubleClicked ( TQListBoxItem * )), + this, TQ_SLOT( slotRename()) ); + connect( mBtnTop, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotTop()) ); + connect( mBtnUp, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotUp()) ); + connect( mBtnDown, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotDown()) ); + connect( mBtnBot, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotBottom()) ); + connect( mBtnNew, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotNew()) ); + connect( mBtnCopy, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotCopy()) ); + connect( mBtnDelete, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotDelete()) ); + connect( mBtnRename, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slotRename()) ); // the dialog should call loadFilterList() // when all signals are connected. @@ -1152,8 +1152,8 @@ KMFilterActionWidget::KMFilterActionWidget( TQWidget *parent, const char* name ) setFocusProxy( mComboBox ); // now connect the combo box and the widget stack - connect( mComboBox, TQT_SIGNAL(activated(int)), - mWidgetStack, TQT_SLOT(raiseWidget(int)) ); + connect( mComboBox, TQ_SIGNAL(activated(int)), + mWidgetStack, TQ_SLOT(raiseWidget(int)) ); } void KMFilterActionWidget::setAction( const KMFilterAction* aAction ) @@ -1306,8 +1306,8 @@ KMPopFilterActionWidget::KMPopFilterActionWidget( const TQString& title, TQWidge mIdMap[id(mActionMap[Down])] = Down; mIdMap[id(mActionMap[Delete])] = Delete; - connect( this, TQT_SIGNAL(clicked(int)), - this, TQT_SLOT( slotActionClicked(int)) ); + connect( this, TQ_SIGNAL(clicked(int)), + this, TQ_SLOT( slotActionClicked(int)) ); } void KMPopFilterActionWidget::setAction( KMPopFilterAction aAction ) |