From 2836b66d54fecf391fba080cb4b9bf11d833eb9a Mon Sep 17 00:00:00 2001 From: Tvangeste Date: Mon, 3 Dec 2012 22:57:00 +0100 Subject: [PATCH] Renamed Qt3-legacy *_activated() -> *_triggered(). This fixes the problems on pure Qt4-only environments. --- mainwindow.cc | 22 +++++++++++----------- mainwindow.hh | 22 +++++++++++----------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/mainwindow.cc b/mainwindow.cc index 0a6d915b..bd99e72b 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -2464,7 +2464,7 @@ void MainWindow::toggleMenuBarTriggered(bool announce) menuBar()->setVisible( !cfg.preferences.hideMenubar ); } -void MainWindow::on_clearHistory_activated() +void MainWindow::on_clearHistory_triggered() { history.clear(); history.save(); @@ -2473,7 +2473,7 @@ void MainWindow::on_clearHistory_activated() ui.wordList->clear(); } -void MainWindow::on_newTab_activated() +void MainWindow::on_newTab_triggered() { addNewTab(); } @@ -2505,12 +2505,12 @@ void MainWindow::setAutostart(bool autostart) #endif } -void MainWindow::on_actionCloseToTray_activated() +void MainWindow::on_actionCloseToTray_triggered() { toggleMainWindow( !cfg.preferences.enableTrayIcon ); } -void MainWindow::on_pageSetup_activated() +void MainWindow::on_pageSetup_triggered() { if ( getPrinter().isValid() ) { @@ -2523,7 +2523,7 @@ void MainWindow::on_pageSetup_activated() tr( "No printer is available. Please install one first." ) ); } -void MainWindow::on_printPreview_activated() +void MainWindow::on_printPreview_triggered() { QPrintPreviewDialog dialog( &getPrinter(), this ); @@ -2533,7 +2533,7 @@ void MainWindow::on_printPreview_activated() dialog.exec(); } -void MainWindow::on_print_activated() +void MainWindow::on_print_triggered() { QPrintDialog dialog( &getPrinter(), this ); @@ -2554,7 +2554,7 @@ void MainWindow::printPreviewPaintRequested( QPrinter * printer ) view->print( printer ); } -void MainWindow::on_saveArticle_activated() +void MainWindow::on_saveArticle_triggered() { ArticleView *view = getCurrentArticleView(); @@ -2580,7 +2580,7 @@ void MainWindow::on_saveArticle_activated() } } -void MainWindow::on_rescanFiles_activated() +void MainWindow::on_rescanFiles_triggered() { hotkeyWrapper.reset(); // No hotkeys while we're editing dictionaries scanPopup.reset(); // No scan popup either. No one should use dictionaries. @@ -2732,7 +2732,7 @@ void MainWindow::wordReceived( const QString & word) translateInputFinished(); } -void MainWindow::on_showHideHistory_activated() +void MainWindow::on_showHideHistory_triggered() { static bool needHideSearchPane; if( showHistory ) @@ -2802,7 +2802,7 @@ static bool needHideSearchPane; } } -void MainWindow::on_exportHistory_activated() +void MainWindow::on_exportHistory_triggered() { QString exportPath; if( cfg.historyExportPath.isEmpty() ) @@ -2863,7 +2863,7 @@ void MainWindow::on_exportHistory_activated() mainStatusBar->showMessage( errStr, 10000, QPixmap( ":/icons/error.png" ) ); } -void MainWindow::on_importHistory_activated() +void MainWindow::on_importHistory_triggered() { QString importPath; if( cfg.historyExportPath.isEmpty() ) diff --git a/mainwindow.hh b/mainwindow.hh index a4392f3a..3411265c 100644 --- a/mainwindow.hh +++ b/mainwindow.hh @@ -323,24 +323,24 @@ private slots: void useSmallIconsInToolbarsTriggered(); void toggleMenuBarTriggered( bool announce = true ); - void on_clearHistory_activated(); + void on_clearHistory_triggered(); - void on_newTab_activated(); + void on_newTab_triggered(); - void on_actionCloseToTray_activated(); + void on_actionCloseToTray_triggered(); - void on_pageSetup_activated(); - void on_printPreview_activated(); - void on_print_activated(); + void on_pageSetup_triggered(); + void on_printPreview_triggered(); + void on_print_triggered(); void printPreviewPaintRequested( QPrinter * ); - void on_saveArticle_activated(); + void on_saveArticle_triggered(); - void on_rescanFiles_activated(); + void on_rescanFiles_triggered(); - void on_showHideHistory_activated(); - void on_exportHistory_activated(); - void on_importHistory_activated(); + void on_showHideHistory_triggered(); + void on_exportHistory_triggered(); + void on_importHistory_triggered(); void focusWordList(); /// Add word to history