aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/main_window.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-07-08 16:48:58 -0700
committerMichael Mann <mmann78@netscape.net>2016-11-10 13:25:20 +0000
commit414c13245831085b7362d0573b317597fb76ac76 (patch)
tree9bbf32a290805504c691ebc7ddc16c8887cd17ba /ui/qt/main_window.cpp
parentd1a2c4c312f8f0e3e8d6800a51c2d59a4a7a03d4 (diff)
Qt: Handle retranslation events in the main window.
Update most (but not all) of the main status bar text when the user changes the language setting. Try to distinguish between recent preferences and recent captures more clearly. Change-Id: I5278a503178fe3620a25b185742688f957dc30f4 Ping-Bug: 11307 Reviewed-on: https://code.wireshark.org/review/9575 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/qt/main_window.cpp')
-rw-r--r--ui/qt/main_window.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp
index 17fed1914e..169fb943f4 100644
--- a/ui/qt/main_window.cpp
+++ b/ui/qt/main_window.cpp
@@ -355,8 +355,8 @@ MainWindow::MainWindow(QWidget *parent) :
connect(wsApp, SIGNAL(preferencesChanged()), this, SLOT(zoomText()));
connect(wsApp, SIGNAL(preferencesChanged()), this, SLOT(setTitlebarForCaptureFile()));
- connect(wsApp, SIGNAL(updateRecentItemStatus(const QString &, qint64, bool)), this, SLOT(updateRecentFiles()));
- updateRecentFiles();
+ connect(wsApp, SIGNAL(updateRecentCaptureStatus(const QString &, qint64, bool)), this, SLOT(updateRecentCaptures()));
+ updateRecentCaptures();
df_combo_box_ = new DisplayFilterCombo();
const DisplayFilterEdit *df_edit = dynamic_cast<DisplayFilterEdit *>(df_combo_box_->lineEdit());
@@ -555,9 +555,9 @@ MainWindow::MainWindow(QWidget *parent) :
packet_list_, SLOT(columnsChanged()));
connect(wsApp, SIGNAL(preferencesChanged()),
packet_list_, SLOT(preferencesChanged()));
- connect(wsApp, SIGNAL(recentFilesRead()),
+ connect(wsApp, SIGNAL(recentPreferencesRead()),
this, SLOT(applyRecentPaneGeometry()));
- connect(wsApp, SIGNAL(recentFilesRead()),
+ connect(wsApp, SIGNAL(recentPreferencesRead()),
this, SLOT(updateRecentActions()));
connect(wsApp, SIGNAL(packetDissectionChanged()),
this, SLOT(redissectPackets()), Qt::QueuedConnection);
@@ -2183,7 +2183,7 @@ void MainWindow::changeEvent(QEvent* event)
case QEvent::LanguageChange:
main_ui_->retranslateUi(this);
// make sure that the "Clear Menu" item is retranslated
- updateRecentFiles();
+ wsApp->emitAppSignal(WiresharkApplication::RecentCapturesChanged);
break;
case QEvent::LocaleChange:{
QString locale = QLocale::system().name();