From 31622296062e9eaafb3429eb84f8780fab22e597 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 4 Jan 2024 10:28:49 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit bea15ca3009c2f8505bfa10445c1dc2fc43a4ffe) --- src/mainwindow.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 1c2b72d..e2e63a9 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -122,7 +122,7 @@ MainWindow::MainWindow(TQWidget *parent, const char *name) setAutoSaveSettings(/*groupName=*/TQString::fromLatin1("MainWindow"),true); m_actShowStatusbar->setChecked( statusBar()->isShown() ); - connect( m_baskets, TQT_SIGNAL(setWindowCaption(const TQString &)), this, TQT_SLOT(setCaption(const TQString &))); + connect( m_baskets, TQ_SIGNAL(setWindowCaption(const TQString &)), this, TQ_SLOT(setCaption(const TQString &))); // InlineEditors::instance()->richTextToolBar(); setStandardToolBarMenuEnabled(true); @@ -139,23 +139,23 @@ MainWindow::~MainWindow() void MainWindow::setupActions() { - actQuit = KStdAction::quit( this, TQT_SLOT(quit()), actionCollection() ); + actQuit = KStdAction::quit( this, TQ_SLOT(quit()), actionCollection() ); new TDEAction(i18n("Minimize"), "", 0, - this, TQT_SLOT(minimizeRestore()), actionCollection(), "minimizeRestore" ); + this, TQ_SLOT(minimizeRestore()), actionCollection(), "minimizeRestore" ); /** Settings : ************************************************************/ -// m_actShowToolbar = KStdAction::showToolbar( this, TQT_SLOT(toggleToolBar()), actionCollection()); - m_actShowStatusbar = KStdAction::showStatusbar( this, TQT_SLOT(toggleStatusBar()), actionCollection()); +// m_actShowToolbar = KStdAction::showToolbar( this, TQ_SLOT(toggleToolBar()), actionCollection()); + m_actShowStatusbar = KStdAction::showStatusbar( this, TQ_SLOT(toggleStatusBar()), actionCollection()); // m_actShowToolbar->setCheckedState( KGuiItem(i18n("Hide &Toolbar")) ); - (void) KStdAction::keyBindings( this, TQT_SLOT(showShortcutsSettingsDialog()), actionCollection() ); + (void) KStdAction::keyBindings( this, TQ_SLOT(showShortcutsSettingsDialog()), actionCollection() ); - (void) KStdAction::configureToolbars(this, TQT_SLOT(configureToolbars()), actionCollection() ); + (void) KStdAction::configureToolbars(this, TQ_SLOT(configureToolbars()), actionCollection() ); - //TDEAction *actCfgNotifs = KStdAction::configureNotifications(this, TQT_SLOT(configureNotifications()), actionCollection() ); + //TDEAction *actCfgNotifs = KStdAction::configureNotifications(this, TQ_SLOT(configureNotifications()), actionCollection() ); //actCfgNotifs->setEnabled(false); // Not yet implemented ! - actAppConfig = KStdAction::preferences( this, TQT_SLOT(showSettingsDialog()), actionCollection() ); + actAppConfig = KStdAction::preferences( this, TQ_SLOT(showSettingsDialog()), actionCollection() ); } /*void MainWindow::toggleToolBar() @@ -183,7 +183,7 @@ void MainWindow::configureToolbars() saveMainWindowSettings( TDEGlobal::config(), autoSaveGroup() ); KEditToolbar dlg(actionCollection()); - connect( &dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(slotNewToolbarConfig()) ); + connect( &dlg, TQ_SIGNAL(newToolbarConfig()), this, TQ_SLOT(slotNewToolbarConfig()) ); dlg.exec(); } -- cgit v1.2.1