diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-07-08 16:48:58 -0700 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-11-10 13:25:20 +0000 |
commit | 414c13245831085b7362d0573b317597fb76ac76 (patch) | |
tree | 9bbf32a290805504c691ebc7ddc16c8887cd17ba /ui/qt/main_window.h | |
parent | d1a2c4c312f8f0e3e8d6800a51c2d59a4a7a03d4 (diff) | |
download | wireshark-414c13245831085b7362d0573b317597fb76ac76.tar.gz |
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.h')
-rw-r--r-- | ui/qt/main_window.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h index e6ce20331b..b0965fe02f 100644 --- a/ui/qt/main_window.h +++ b/ui/qt/main_window.h @@ -96,11 +96,14 @@ public: CaptureFile *captureFile() { return &capture_file_; } protected: - bool eventFilter(QObject *obj, QEvent *event); - void keyPressEvent(QKeyEvent *event); - void closeEvent(QCloseEvent *event); - void dragEnterEvent(QDragEnterEvent *event); - void dropEvent(QDropEvent *event); + virtual bool eventFilter(QObject *obj, QEvent *event); + virtual void keyPressEvent(QKeyEvent *event); + virtual void closeEvent(QCloseEvent *event); + virtual void dragEnterEvent(QDragEnterEvent *event); + virtual void dropEvent(QDropEvent *event); + virtual void changeEvent(QEvent* event); + virtual void resizeEvent(QResizeEvent *event); + private: // XXX Move to FilterUtils @@ -305,7 +308,7 @@ private slots: void loadWindowGeometry(); void saveWindowGeometry(); void mainStackChanged(int); - void updateRecentFiles(); + void updateRecentCaptures(); void recentActionTriggered(); void setMenusForSelectedPacket(); void setMenusForSelectedTreeRow(field_info *fi = NULL); @@ -625,9 +628,6 @@ private slots: void on_actionContextWikiProtocolPage_triggered(); void on_actionContextFilterFieldReference_triggered(); - virtual void changeEvent(QEvent* event); - virtual void resizeEvent(QResizeEvent *event); - #ifdef HAVE_EXTCAP void extcap_options_finished(int result); void showExtcapOptionsDialog(QString & device_name); |