From 11f3716a1c82b43f92dc32083101558f3ec47f27 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 28 Dec 2023 16:37:45 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro --- src/editortabs.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/editortabs.cpp') diff --git a/src/editortabs.cpp b/src/editortabs.cpp index 24aa6d4..e728f7e 100644 --- a/src/editortabs.cpp +++ b/src/editortabs.cpp @@ -53,16 +53,16 @@ EditorTabs::EditorTabs(TQWidget* pParent, const char* szName) : setAcceptDrops(true); // Close an editor page when its close button is clicked - connect(this, SIGNAL(closeRequest(TQWidget*)), this, - SLOT(slotRemovePage(TQWidget*))); + connect(this, TQ_SIGNAL(closeRequest(TQWidget*)), this, + TQ_SLOT(slotRemovePage(TQWidget*))); // Set an editor page as the active part, when its tab is selected - connect(this, SIGNAL(currentChanged(TQWidget*)), this, - SLOT(slotCurrentChanged(TQWidget*))); + connect(this, TQ_SIGNAL(currentChanged(TQWidget*)), this, + TQ_SLOT(slotCurrentChanged(TQWidget*))); // Start dragging a file from a tab - connect(this, SIGNAL(initiateDrag(TQWidget*)), this, - SLOT(slotInitiateDrag(TQWidget*))); + connect(this, TQ_SIGNAL(initiateDrag(TQWidget*)), this, + TQ_SLOT(slotInitiateDrag(TQWidget*))); } /** @@ -79,10 +79,10 @@ EditorTabs::~EditorTabs() void EditorTabs::setWindowMenu(TQPopupMenu* pWindowMenu) { m_pWindowMenu = pWindowMenu; - connect(pWindowMenu, SIGNAL(aboutToShow()), this, - SLOT(slotFillWindowMenu())); - connect(pWindowMenu, SIGNAL(activated(int)), this, - SLOT(slotSetCurrentPage(int))); + connect(pWindowMenu, TQ_SIGNAL(aboutToShow()), this, + TQ_SLOT(slotFillWindowMenu())); + connect(pWindowMenu, TQ_SIGNAL(activated(int)), this, + TQ_SLOT(slotSetCurrentPage(int))); } /** @@ -97,16 +97,16 @@ void EditorTabs::addEditorPage(EditorPage* pNewPage) // Add the file edited by this page to the map, and display its name, // once the file is opened - connect(pNewPage, SIGNAL(fileOpened(EditorPage*, const TQString&)), this, - SLOT(slotAttachFile(EditorPage*, const TQString&))); + connect(pNewPage, TQ_SIGNAL(fileOpened(EditorPage*, const TQString&)), this, + TQ_SLOT(slotAttachFile(EditorPage*, const TQString&))); // Handle new unnamed files - connect(pNewPage, SIGNAL(newFile(EditorPage*)), this, - SLOT(slotNewFile(EditorPage*))); + connect(pNewPage, TQ_SIGNAL(newFile(EditorPage*)), this, + TQ_SLOT(slotNewFile(EditorPage*))); // Change tab icon when a file is modified - connect(pNewPage, SIGNAL(modified(EditorPage*, bool)), this, - SLOT(slotFileModified(EditorPage*, bool))); + connect(pNewPage, TQ_SIGNAL(modified(EditorPage*, bool)), this, + TQ_SLOT(slotFileModified(EditorPage*, bool))); // If this is the first page, the current page will not be set by the // signal handler, so we need to do it manually -- cgit v1.2.1