diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-12-15 19:47:02 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2015-12-16 06:53:24 +0000 |
commit | bfe73e3ad7162830c222a5b0d73433a72324baa5 (patch) | |
tree | df1a1ee6779cb31093e9253152317e9f444fc91a /ui/qt/wireshark_application.h | |
parent | 3b706bab624a22c500adb3bdf50123f73e56c4ca (diff) | |
download | wireshark-bfe73e3ad7162830c222a5b0d73433a72324baa5.tar.gz |
Qt: save custom colors in recent_common file
This allows to save colors across sessions for systems other than
OSX that do not provide a system wide color picker
While we are at it, let's stop reading the recent file twice at startup
Bug: 11888
Change-Id: I69ff14d699d8111fe6a8bdac0157fcd115a60c2b
Reviewed-on: https://code.wireshark.org/review/12659
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/wireshark_application.h')
-rw-r--r-- | ui/qt/wireshark_application.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/wireshark_application.h b/ui/qt/wireshark_application.h index e4f74b86ef..6ed971e227 100644 --- a/ui/qt/wireshark_application.h +++ b/ui/qt/wireshark_application.h @@ -111,6 +111,7 @@ public: const QString &windowTitleSeparator() const { return window_title_separator_; } const QString windowTitleString(QStringList title_parts); const QString windowTitleString(QString title_part) { return windowTitleString(QStringList() << title_part); } + void applyCustomColorsFromRecent(); QTranslator translator; QTranslator translatorQt; @@ -130,6 +131,7 @@ private: static QString window_title_separator_; QList<AppSignal> app_signals_; int active_captures_; + void storeCustomColorsInRecent(); protected: bool event(QEvent *event); |