diff options
author | Gerald Combs <gerald@zing.org> | 2014-12-22 15:51:36 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-12-29 01:42:13 +0000 |
commit | e8ec11fb7e67f83a7296f1e87451f3d7ddd5d85d (patch) | |
tree | ebac5b8251ca402bbb09dce014bdd883fd192f3b /ui/qt/wireshark_application.h | |
parent | c1d9d93efb3581f11ea8115e5b1d6a4c7105a1d2 (diff) |
Qt: Add a WiresharkDialog convenience class.
Add WiresharkDialog, a common base class for dialogs centered around
capture files. Make it a parent of Capture File Properties, Traffic
Table, Conversations, and Endpoints.
Rename CaptureFile::read_only_ to file_closed_. Add methods to
WiresharkApplication for generating consistent window titles.
Change-Id: Idc771556d8192e60f85dddc08fc4757698dee257
Reviewed-on: https://code.wireshark.org/review/6097
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/wireshark_application.h')
-rw-r--r-- | ui/qt/wireshark_application.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/wireshark_application.h b/ui/qt/wireshark_application.h index 3de29d8695..8c7e070e4d 100644 --- a/ui/qt/wireshark_application.h +++ b/ui/qt/wireshark_application.h @@ -95,7 +95,8 @@ public: const QIcon &captureIcon() const { return capture_icon_; } const QString &applicationName() const { return application_name_; } const QString &windowTitleSeparator() const { return window_title_separator_; } - const QString &windowTitlePrefix() const { return window_title_prefix_; } + const QString windowTitleString(QStringList title_parts); + const QString windowTitleString(QString title_part) { return windowTitleString(QStringList() << title_part); } QTranslator translator; QTranslator translatorQt; @@ -113,7 +114,6 @@ private: QIcon capture_icon_; static QString application_name_; static QString window_title_separator_; - static QString window_title_prefix_; protected: bool event(QEvent *event); |