mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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
This commit is contained in:
parent
83e4078d9c
commit
8d462a1edd
3 changed files with 24 additions and 20 deletions
|
|
@ -88,6 +88,7 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent)
|
|||
ui.setupUi(this);
|
||||
QIcon windowIcon(":/icons/rockbox-clef.svg");
|
||||
this->setWindowIcon(windowIcon);
|
||||
ui.logoLabel->load(QLatin1String(":/icons/rockbox-logo.svg"));
|
||||
#if defined(Q_OS_MACX)
|
||||
// don't translate menu entries that are handled specially on OS X
|
||||
// (Configure, Quit). Qt handles them for us if they use english string.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue