diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-11 10:35:25 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 20:23:16 +0900 |
commit | e234565531cd8c11949cc6aecf16179e75312458 (patch) | |
tree | 90b0cb6c9f6c2a04712bbfb73b531275d4f63976 /kate/tabbarextension | |
parent | be3456c5d953fb877340a51b2ef699be6b3c7c02 (diff) | |
download | tdeaddons-e234565531cd8c11949cc6aecf16179e75312458.tar.gz tdeaddons-e234565531cd8c11949cc6aecf16179e75312458.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7e9d8ea45280ad6657796da9536ccf6218111f22)
Diffstat (limited to 'kate/tabbarextension')
-rw-r--r-- | kate/tabbarextension/plugin_katetabbarextension.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kate/tabbarextension/plugin_katetabbarextension.cpp b/kate/tabbarextension/plugin_katetabbarextension.cpp index e26524c..2951d1f 100644 --- a/kate/tabbarextension/plugin_katetabbarextension.cpp +++ b/kate/tabbarextension/plugin_katetabbarextension.cpp @@ -112,8 +112,8 @@ void KatePluginTabBarExtension::addView(Kate::MainWindow *win) TDEToolBar* toolbar = dynamic_cast<TDEToolBar*> (win->guiFactory()->container("tabbarExtensionToolBar", view)); if (toolbar) { - connect(toolbar, TQT_SIGNAL(orientationChanged(TQt::Orientation)), - view->tabbar, TQT_SLOT(slotMoved(TQt::Orientation))); + connect(toolbar, TQ_SIGNAL(orientationChanged(TQt::Orientation)), + view->tabbar, TQ_SLOT(slotMoved(TQt::Orientation))); } } @@ -147,8 +147,8 @@ Kate::PluginConfigPage* KatePluginTabBarExtension::configPage( { KateTabBarExtensionConfigPage* p = new KateTabBarExtensionConfigPage(this, w); initConfigPage( p ); - connect( p, TQT_SIGNAL(configPageApplyRequest(KateTabBarExtensionConfigPage*)), - TQT_SLOT(applyConfig(KateTabBarExtensionConfigPage*)) ); + connect( p, TQ_SIGNAL(configPageApplyRequest(KateTabBarExtensionConfigPage*)), + TQ_SLOT(applyConfig(KateTabBarExtensionConfigPage*)) ); return (Kate::PluginConfigPage*)p; } @@ -181,7 +181,7 @@ KateTabBarButton::KateTabBarButton(Kate::ViewManager* pViewManager, setText(pDoc->docName()); - connect(this, TQT_SIGNAL(toggled(bool)), TQT_SLOT(setOn(bool))); + connect(this, TQ_SIGNAL(toggled(bool)), TQ_SLOT(setOn(bool))); } void KateTabBarButton::setDirty(bool d) @@ -246,7 +246,7 @@ void KateTabBarButton::triggerModified() void KateTabBarButton::setOn(bool on) { - disconnect( TQT_SIGNAL(toggled(bool))); + disconnect( TQ_SIGNAL(toggled(bool))); // kdDebug() << "setOn: " << (int)on << endl; if ((!on) && viewManager->activeView()->document()->documentNumber() == documentNumber()) { @@ -257,7 +257,7 @@ void KateTabBarButton::setOn(bool on) if (on) emit myToggled(this); } - connect(this, TQT_SIGNAL(toggled(bool)), TQT_SLOT(setOn(bool))); + connect(this, TQ_SIGNAL(toggled(bool)), TQ_SLOT(setOn(bool))); } // END KateTabBarButton @@ -282,13 +282,13 @@ KateTabBarExtension::KateTabBarExtension(Kate::DocumentManager *pDocManager, slotDocumentCreated (pDocManager->document(i)); } - connect(m_win->viewManager(), TQT_SIGNAL(viewChanged()), TQT_SLOT(slotViewChanged())); + connect(m_win->viewManager(), TQ_SIGNAL(viewChanged()), TQ_SLOT(slotViewChanged())); connect(pDocManager, - TQT_SIGNAL(documentCreated(Kate::Document *)), - TQT_SLOT(slotDocumentCreated(Kate::Document *))); + TQ_SIGNAL(documentCreated(Kate::Document *)), + TQ_SLOT(slotDocumentCreated(Kate::Document *))); connect(pDocManager, - TQT_SIGNAL(documentDeleted(uint)), - TQT_SLOT(slotDocumentDeleted(uint))); + TQ_SIGNAL(documentDeleted(uint)), + TQ_SLOT(slotDocumentDeleted(uint))); setSortByName(bSort); setCloseOnMiddleClick(bCloseOnMiddleClick); @@ -346,17 +346,17 @@ void KateTabBarExtension::slotDocumentCreated (Kate::Document *doc) if (!doc) return; KateTabBarButton* tab = new KateTabBarButton(m_win->viewManager(), doc, this); - connect(tab, TQT_SIGNAL(myToggled(KateTabBarButton*)), - TQT_SLOT(slotActivateView(KateTabBarButton*))); - connect(tab, TQT_SIGNAL(middleButtonPressed(KateTabBarButton*)), - TQT_SLOT(slotRequestDocClose(KateTabBarButton*))); - connect(doc, TQT_SIGNAL(nameChanged(Kate::Document *)), - TQT_SLOT(slotNameChanged(Kate::Document *))); - connect(doc, TQT_SIGNAL(modStateChanged(Kate::Document *)), - TQT_SLOT(slotModChanged(Kate::Document *))); + connect(tab, TQ_SIGNAL(myToggled(KateTabBarButton*)), + TQ_SLOT(slotActivateView(KateTabBarButton*))); + connect(tab, TQ_SIGNAL(middleButtonPressed(KateTabBarButton*)), + TQ_SLOT(slotRequestDocClose(KateTabBarButton*))); + connect(doc, TQ_SIGNAL(nameChanged(Kate::Document *)), + TQ_SLOT(slotNameChanged(Kate::Document *))); + connect(doc, TQ_SIGNAL(modStateChanged(Kate::Document *)), + TQ_SLOT(slotModChanged(Kate::Document *))); connect(doc, - TQT_SIGNAL(modifiedOnDisc(Kate::Document *, bool, unsigned char)), - TQT_SLOT(slotModifiedOnDisc(Kate::Document *, bool, unsigned char))); + TQ_SIGNAL(modifiedOnDisc(Kate::Document *, bool, unsigned char)), + TQ_SLOT(slotModifiedOnDisc(Kate::Document *, bool, unsigned char))); if(doc->isModified()) tab->triggerModified(); tab->show(); top->addWidget(tab); @@ -489,8 +489,8 @@ KateTabBarExtensionConfigPage::KateTabBarExtensionConfigPage( top->add(gb); top->addStretch(1); // throw signal changed - connect(pSortAlpha, TQT_SIGNAL(toggled(bool)), this, TQT_SIGNAL(changed())); - connect(pCloseOnMiddleClick, TQT_SIGNAL(toggled(bool)), this, TQT_SIGNAL(changed())); + connect(pSortAlpha, TQ_SIGNAL(toggled(bool)), this, TQ_SIGNAL(changed())); + connect(pCloseOnMiddleClick, TQ_SIGNAL(toggled(bool)), this, TQ_SIGNAL(changed())); } // END KateTabBarExtensionConfigPage |