diff options
author | Gerald Combs <gerald@wireshark.org> | 2014-10-27 17:32:26 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-10-28 00:40:16 +0000 |
commit | c5e66b172e1a2e3788e4a9500ae0d5bad7871f5c (patch) | |
tree | ede89eb9b4bbf16154505ac07db7239b21f355a7 /ui | |
parent | 84f0ce4e23e7a859d674d1f19fedada17a6e32be (diff) |
Qt: Add a set of 2x 24-pixel toolbar icons.
Add a script to create each PNG from its source SVG using Inkscape
(which can conveniently be run from the command line).
Change-Id: Ief7410cf76fb1553ce56f1c6bc1ade03ab5db1d6
Reviewed-on: https://code.wireshark.org/review/4964
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/wireshark_application.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/wireshark_application.cpp b/ui/qt/wireshark_application.cpp index b13d563e17..1362ca7f6b 100644 --- a/ui/qt/wireshark_application.cpp +++ b/ui/qt/wireshark_application.cpp @@ -582,6 +582,10 @@ WiresharkApplication::WiresharkApplication(int &argc, char **argv) : } #endif // Q_OS_WIN +#if (QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)) + setAttribute(Qt::AA_UseHighDpiPixmaps); +#endif + QList<int> icon_sizes = QList<int>() << 16 << 24 << 32 << 48 << 64 << 128 << 256 << 512 << 1024; foreach (int icon_size, icon_sizes) { QString icon_path = QString(":/wsicon/wsicon%1.png").arg(icon_size); |