diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-12 11:17:33 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-15 11:09:32 +0900 |
commit | 7f03918f8df7479b0e1a88288066201a301e87bf (patch) | |
tree | ef42e0c7ecbd6d292ca5aa7f3aeca141dd65cdb1 /tdeutils/ksettings | |
parent | ccaaecf59c0e607be633c45ad3b7bb1ef29e981f (diff) | |
download | tdelibs-7f03918f8df7479b0e1a88288066201a301e87bf.tar.gz tdelibs-7f03918f8df7479b0e1a88288066201a301e87bf.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7)
Diffstat (limited to 'tdeutils/ksettings')
-rw-r--r-- | tdeutils/ksettings/README.dox | 2 | ||||
-rw-r--r-- | tdeutils/ksettings/componentsdialog.cpp | 16 | ||||
-rw-r--r-- | tdeutils/ksettings/dialog.cpp | 28 | ||||
-rw-r--r-- | tdeutils/ksettings/dialog.h | 2 | ||||
-rw-r--r-- | tdeutils/ksettings/dispatcher.cpp | 2 | ||||
-rw-r--r-- | tdeutils/ksettings/dispatcher.h | 4 | ||||
-rw-r--r-- | tdeutils/ksettings/pluginpage.cpp | 8 |
7 files changed, 31 insertions, 31 deletions
diff --git a/tdeutils/ksettings/README.dox b/tdeutils/ksettings/README.dox index faedcd2d3..83a71767e 100644 --- a/tdeutils/ksettings/README.dox +++ b/tdeutils/ksettings/README.dox @@ -15,7 +15,7 @@ the following: create the 'Configure MyApp' StdAction like this: \code -KStdAction::preferences( this, SLOT( showConfigDialog() ), actionCollection ); +KStdAction::preferences( this, TQ_SLOT( showConfigDialog() ), actionCollection ); \endcode and the slot looks like this: diff --git a/tdeutils/ksettings/componentsdialog.cpp b/tdeutils/ksettings/componentsdialog.cpp index ad3fa81cc..164ea19a5 100644 --- a/tdeutils/ksettings/componentsdialog.cpp +++ b/tdeutils/ksettings/componentsdialog.cpp @@ -71,14 +71,14 @@ ComponentsDialog::ComponentsDialog( TQWidget * parent, const char * name ) d->listview->setSelectionModeExt( TDEListView::Single ); d->listview->setAllColumnsShowFocus( true ); - connect( d->listview, TQT_SIGNAL( pressed( TQListViewItem * ) ), this, - TQT_SLOT( executed( TQListViewItem * ) ) ); - connect( d->listview, TQT_SIGNAL( spacePressed( TQListViewItem * ) ), this, - TQT_SLOT( executed( TQListViewItem * ) ) ); - connect( d->listview, TQT_SIGNAL( returnPressed( TQListViewItem * ) ), this, - TQT_SLOT( executed( TQListViewItem * ) ) ); - connect( d->listview, TQT_SIGNAL( selectionChanged( TQListViewItem * ) ), this, - TQT_SLOT( executed( TQListViewItem * ) ) ); + connect( d->listview, TQ_SIGNAL( pressed( TQListViewItem * ) ), this, + TQ_SLOT( executed( TQListViewItem * ) ) ); + connect( d->listview, TQ_SIGNAL( spacePressed( TQListViewItem * ) ), this, + TQ_SLOT( executed( TQListViewItem * ) ) ); + connect( d->listview, TQ_SIGNAL( returnPressed( TQListViewItem * ) ), this, + TQ_SLOT( executed( TQListViewItem * ) ) ); + connect( d->listview, TQ_SIGNAL( selectionChanged( TQListViewItem * ) ), this, + TQ_SLOT( executed( TQListViewItem * ) ) ); } ComponentsDialog::~ComponentsDialog() diff --git a/tdeutils/ksettings/dialog.cpp b/tdeutils/ksettings/dialog.cpp index 83af48fcb..609d8cb16 100644 --- a/tdeutils/ksettings/dialog.cpp +++ b/tdeutils/ksettings/dialog.cpp @@ -588,14 +588,14 @@ void Dialog::createDialogFromServices() if( ! d->staticlistview ) d->dlg->addButtonBelowList( i18n( "Select Components..." ), this, - TQT_SLOT( configureTree() ) ); + TQ_SLOT( configureTree() ) ); - connect( d->dlg, TQT_SIGNAL( okClicked() ), Dispatcher::self(), - TQT_SLOT( syncConfiguration() ) ); - connect( d->dlg, TQT_SIGNAL( applyClicked() ), Dispatcher::self(), - TQT_SLOT( syncConfiguration() ) ); - connect( d->dlg, TQT_SIGNAL( configCommitted( const TQCString & ) ), - Dispatcher::self(), TQT_SLOT( reparseConfiguration( const TQCString & ) ) ); + connect( d->dlg, TQ_SIGNAL( okClicked() ), Dispatcher::self(), + TQ_SLOT( syncConfiguration() ) ); + connect( d->dlg, TQ_SIGNAL( applyClicked() ), Dispatcher::self(), + TQ_SLOT( syncConfiguration() ) ); + connect( d->dlg, TQ_SIGNAL( configCommitted( const TQCString & ) ), + Dispatcher::self(), TQ_SLOT( reparseConfiguration( const TQCString & ) ) ); d->pagetree.addToDialog( d->dlg ); @@ -609,13 +609,13 @@ void Dialog::configureTree() ComponentsDialog * subdlg = new ComponentsDialog( d->dlg ); subdlg->setPluginInfos( d->plugininfomap ); subdlg->show(); - connect( subdlg, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( updateTreeList() ) ); - connect( subdlg, TQT_SIGNAL( applyClicked() ), this, TQT_SLOT( updateTreeList() ) ); - connect( subdlg, TQT_SIGNAL( okClicked() ), this, - TQT_SIGNAL( pluginSelectionChanged() ) ); - connect( subdlg, TQT_SIGNAL( applyClicked() ), this, - TQT_SIGNAL( pluginSelectionChanged() ) ); - connect( subdlg, TQT_SIGNAL( finished() ), subdlg, TQT_SLOT( delayedDestruct() ) ); + connect( subdlg, TQ_SIGNAL( okClicked() ), this, TQ_SLOT( updateTreeList() ) ); + connect( subdlg, TQ_SIGNAL( applyClicked() ), this, TQ_SLOT( updateTreeList() ) ); + connect( subdlg, TQ_SIGNAL( okClicked() ), this, + TQ_SIGNAL( pluginSelectionChanged() ) ); + connect( subdlg, TQ_SIGNAL( applyClicked() ), this, + TQ_SIGNAL( pluginSelectionChanged() ) ); + connect( subdlg, TQ_SIGNAL( finished() ), subdlg, TQ_SLOT( delayedDestruct() ) ); } void Dialog::updateTreeList() diff --git a/tdeutils/ksettings/dialog.h b/tdeutils/ksettings/dialog.h index 7f87b861b..619c05749 100644 --- a/tdeutils/ksettings/dialog.h +++ b/tdeutils/ksettings/dialog.h @@ -59,7 +59,7 @@ namespace KSettings * \endcode * and the action for the config dialog is connected to the show slot: * \code - * KStdAction::preferences( m_cfgdlg, TQT_SLOT( show() ), actionCollection() ); + * KStdAction::preferences( m_cfgdlg, TQ_SLOT( show() ), actionCollection() ); * \endcode * * If you need to be informed when the config was changed and applied in the diff --git a/tdeutils/ksettings/dispatcher.cpp b/tdeutils/ksettings/dispatcher.cpp index 6d87e4cde..5cd5a4208 100644 --- a/tdeutils/ksettings/dispatcher.cpp +++ b/tdeutils/ksettings/dispatcher.cpp @@ -80,7 +80,7 @@ void Dispatcher::registerInstance( TDEInstance * instance, TQObject * recv, cons sig->connect( recv, slot ); ++m_instanceInfo[ instanceName ].count; - connect( recv, TQT_SIGNAL( destroyed( TQObject * ) ), this, TQT_SLOT( unregisterInstance( TQObject * ) ) ); + connect( recv, TQ_SIGNAL( destroyed( TQObject * ) ), this, TQ_SLOT( unregisterInstance( TQObject * ) ) ); } TDEConfig * Dispatcher::configForInstanceName( const TQCString & instanceName ) diff --git a/tdeutils/ksettings/dispatcher.h b/tdeutils/ksettings/dispatcher.h index aa3b50c41..2cb0cdc2a 100644 --- a/tdeutils/ksettings/dispatcher.h +++ b/tdeutils/ksettings/dispatcher.h @@ -42,7 +42,7 @@ namespace KSettings * into the TDEConfigureDialog you need a way to get notified. This is what you * do: * \code - * Dispatcher::self()->registerInstance( instance(), this, TQT_SLOT( loadSettings() ) ); + * Dispatcher::self()->registerInstance( instance(), this, TQ_SLOT( loadSettings() ) ); * \endcode * * @author Matthias Kretz <kretz@kde.org> @@ -69,7 +69,7 @@ class TDEUTILS_EXPORT Dispatcher : public TQObject * * @param instance The TDEInstance object * @param recv The object that should receive the signal - * @param slot The slot to be called: TQT_SLOT( slotName() ) + * @param slot The slot to be called: TQ_SLOT( slotName() ) */ void registerInstance( TDEInstance * instance, TQObject * recv, const char * slot ); diff --git a/tdeutils/ksettings/pluginpage.cpp b/tdeutils/ksettings/pluginpage.cpp index ddb58fb03..39af821e7 100644 --- a/tdeutils/ksettings/pluginpage.cpp +++ b/tdeutils/ksettings/pluginpage.cpp @@ -43,7 +43,7 @@ class PluginPage::PluginPagePrivate { ( new TQVBoxLayout( this, 0, KDialog::spacingHint() ) )->setAutoAdd( true ); d->selwid = new KPluginSelector( this ); - connect( d->selwid, TQT_SIGNAL( changed( bool ) ), this, TQT_SIGNAL( changed( bool ) ) ); + connect( d->selwid, TQ_SIGNAL( changed( bool ) ), this, TQ_SIGNAL( changed( bool ) ) ); } PluginPage::PluginPage( TDEInstance * instance, TQWidget * parent, const TQStringList & args ) @@ -52,9 +52,9 @@ class PluginPage::PluginPagePrivate { ( new TQVBoxLayout( this, 0, KDialog::spacingHint() ) )->setAutoAdd( true ); d->selwid = new KPluginSelector( this ); - connect( d->selwid, TQT_SIGNAL( changed( bool ) ), this, TQT_SIGNAL( changed( bool ) ) ); - connect( d->selwid, TQT_SIGNAL( configCommitted( const TQCString & ) ), - Dispatcher::self(), TQT_SLOT( reparseConfiguration( const TQCString & ) ) ); + connect( d->selwid, TQ_SIGNAL( changed( bool ) ), this, TQ_SIGNAL( changed( bool ) ) ); + connect( d->selwid, TQ_SIGNAL( configCommitted( const TQCString & ) ), + Dispatcher::self(), TQ_SLOT( reparseConfiguration( const TQCString & ) ) ); } PluginPage::~PluginPage() |