summaryrefslogtreecommitdiff
path: root/utils/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2022-02-21 19:16:49 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2022-02-28 20:37:32 +0100
commit8d462a1edd6e7446746947bcb9537f1c800d38ef (patch)
tree92ef1c1f012073d2d95948d85a8c491e099a00d5 /utils/rbutilqt/rbutilqt.cpp
parent83e4078d9c9902ee184955817a0fae0320a54b53 (diff)
downloadrockbox-8d462a1edd6e7446746947bcb9537f1c800d38ef.tar.gz
rockbox-8d462a1edd6e7446746947bcb9537f1c800d38ef.zip
rbutil: Rework Logo display.
Replace QLabel with QSvgWidget so the widget draws the svg directly instead of first creating a pixmap from it. This also avoids an issue when building with mxe which causes the image to not show due to a missing svg plugin (which doesn't happen for svg icons.) Change-Id: Ic4e265f0567984d1ffe7a3e1cc641df27755e90b
Diffstat (limited to 'utils/rbutilqt/rbutilqt.cpp')
-rw-r--r--utils/rbutilqt/rbutilqt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/rbutilqt/rbutilqt.cpp b/utils/rbutilqt/rbutilqt.cpp
index aa405418be..271d252391 100644
--- a/utils/rbutilqt/rbutilqt.cpp
+++ b/utils/rbutilqt/rbutilqt.cpp
@@ -88,6 +88,7 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent)
88 ui.setupUi(this); 88 ui.setupUi(this);
89 QIcon windowIcon(":/icons/rockbox-clef.svg"); 89 QIcon windowIcon(":/icons/rockbox-clef.svg");
90 this->setWindowIcon(windowIcon); 90 this->setWindowIcon(windowIcon);
91 ui.logoLabel->load(QLatin1String(":/icons/rockbox-logo.svg"));
91#if defined(Q_OS_MACX) 92#if defined(Q_OS_MACX)
92 // don't translate menu entries that are handled specially on OS X 93 // don't translate menu entries that are handled specially on OS X
93 // (Configure, Quit). Qt handles them for us if they use english string. 94 // (Configure, Quit). Qt handles them for us if they use english string.