From c0332621bc998c9786f4841e86a62b7711fe4abf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 4 Jan 2024 10:30:32 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro --- lib/kofficecore/KoOpenPane.cpp | 50 +++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'lib/kofficecore/KoOpenPane.cpp') diff --git a/lib/kofficecore/KoOpenPane.cpp b/lib/kofficecore/KoOpenPane.cpp index 3d7ff56e9..0e38706a3 100644 --- a/lib/kofficecore/KoOpenPane.cpp +++ b/lib/kofficecore/KoOpenPane.cpp @@ -105,18 +105,18 @@ KoOpenPane::KoOpenPane(TQWidget *parent, TDEInstance* instance, const TQString& #if KDE_IS_VERSION(3,4,0) m_sectionList->setShadeSortColumn(false); #endif - connect(m_sectionList, TQT_SIGNAL(selectionChanged(TQListViewItem*)), - this, TQT_SLOT(selectionChanged(TQListViewItem*))); - connect(m_sectionList, TQT_SIGNAL(pressed(TQListViewItem*)), - this, TQT_SLOT(itemClicked(TQListViewItem*))); - connect(m_sectionList, TQT_SIGNAL(spacePressed(TQListViewItem*)), - this, TQT_SLOT(itemClicked(TQListViewItem*))); - connect(m_sectionList, TQT_SIGNAL(returnPressed(TQListViewItem*)), - this, TQT_SLOT(itemClicked(TQListViewItem*))); + connect(m_sectionList, TQ_SIGNAL(selectionChanged(TQListViewItem*)), + this, TQ_SLOT(selectionChanged(TQListViewItem*))); + connect(m_sectionList, TQ_SIGNAL(pressed(TQListViewItem*)), + this, TQ_SLOT(itemClicked(TQListViewItem*))); + connect(m_sectionList, TQ_SIGNAL(spacePressed(TQListViewItem*)), + this, TQ_SLOT(itemClicked(TQListViewItem*))); + connect(m_sectionList, TQ_SIGNAL(returnPressed(TQListViewItem*)), + this, TQ_SLOT(itemClicked(TQListViewItem*))); KGuiItem openExistingGItem(i18n("Open Existing Document..."), "document-open"); m_openExistingButton->setGuiItem(openExistingGItem); - connect(m_openExistingButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(showOpenFileDialog())); + connect(m_openExistingButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(showOpenFileDialog())); initRecentDocs(); initTemplates(templateType); @@ -136,8 +136,8 @@ KoOpenPane::KoOpenPane(TQWidget *parent, TDEInstance* instance, const TQString& sizes = cfgGrp.readIntListEntry("DetailsPaneSplitterSizes"); emit splitterResized(0, sizes); - connect(this, TQT_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&)), - this, TQT_SLOT(saveSplitterSizes(KoDetailsPaneBase*, const TQValueList&))); + connect(this, TQ_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&)), + this, TQ_SLOT(saveSplitterSizes(KoDetailsPaneBase*, const TQValueList&))); } KoOpenPane::~KoOpenPane() @@ -171,12 +171,12 @@ void KoOpenPane::showOpenFileDialog() void KoOpenPane::initRecentDocs() { KoRecentDocumentsPane* recentDocPane = new KoRecentDocumentsPane(this, d->m_instance); - connect(recentDocPane, TQT_SIGNAL(openFile(const TQString&)), this, TQT_SIGNAL(openExistingFile(const TQString&))); + connect(recentDocPane, TQ_SIGNAL(openFile(const TQString&)), this, TQ_SIGNAL(openExistingFile(const TQString&))); TQListViewItem* item = addPane(i18n("Recent Documents"), "document-open", recentDocPane, 0); - connect(recentDocPane, TQT_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&)), - this, TQT_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&))); - connect(this, TQT_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&)), - recentDocPane, TQT_SLOT(resizeSplitter(KoDetailsPaneBase*, const TQValueList&))); + connect(recentDocPane, TQ_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&)), + this, TQ_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&))); + connect(this, TQ_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&)), + recentDocPane, TQ_SLOT(resizeSplitter(KoDetailsPaneBase*, const TQValueList&))); KoSectionListItem* separator = new KoSectionListItem(m_sectionList, "", 1); separator->setEnabled(false); @@ -203,15 +203,15 @@ void KoOpenPane::initTemplates(const TQString& templateType) KoTemplatesPane* pane = new KoTemplatesPane(this, d->m_instance, group, templateTree.defaultTemplate()); - connect(pane, TQT_SIGNAL(openTemplate(const TQString&)), this, TQT_SIGNAL(openTemplate(const TQString&))); - connect(pane, TQT_SIGNAL(alwaysUseChanged(KoTemplatesPane*, const TQString&)), - this, TQT_SIGNAL(alwaysUseChanged(KoTemplatesPane*, const TQString&))); - connect(this, TQT_SIGNAL(alwaysUseChanged(KoTemplatesPane*, const TQString&)), - pane, TQT_SLOT(changeAlwaysUseTemplate(KoTemplatesPane*, const TQString&))); - connect(pane, TQT_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&)), - this, TQT_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&))); - connect(this, TQT_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&)), - pane, TQT_SLOT(resizeSplitter(KoDetailsPaneBase*, const TQValueList&))); + connect(pane, TQ_SIGNAL(openTemplate(const TQString&)), this, TQ_SIGNAL(openTemplate(const TQString&))); + connect(pane, TQ_SIGNAL(alwaysUseChanged(KoTemplatesPane*, const TQString&)), + this, TQ_SIGNAL(alwaysUseChanged(KoTemplatesPane*, const TQString&))); + connect(this, TQ_SIGNAL(alwaysUseChanged(KoTemplatesPane*, const TQString&)), + pane, TQ_SLOT(changeAlwaysUseTemplate(KoTemplatesPane*, const TQString&))); + connect(pane, TQ_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&)), + this, TQ_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&))); + connect(this, TQ_SIGNAL(splitterResized(KoDetailsPaneBase*, const TQValueList&)), + pane, TQ_SLOT(resizeSplitter(KoDetailsPaneBase*, const TQValueList&))); TQListViewItem* item = addPane(group->name(), group->first()->loadPicture(d->m_instance), pane, group->sortingWeight() + templateOffset); -- cgit v1.2.3