From c5e66b172e1a2e3788e4a9500ae0d5bad7871f5c Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 27 Oct 2014 17:32:26 -0700 Subject: 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 --- ui/qt/wireshark_application.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui') 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 icon_sizes = QList() << 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); -- cgit v1.2.3