Avoid icon being rendered to big in wizard under Windows
Apparently Qt isn't handling the icon size very well (icon ends up clipped) on its own so let's just use a pixmap icon of fixed size.
This commit is contained in:
parent
328417d1f3
commit
1b1b9129be
|
@ -49,7 +49,11 @@ Wizard::Wizard(QWidget *parent, Qt::WindowFlags flags)
|
|||
: QWizard(parent, flags)
|
||||
{
|
||||
setWindowTitle(tr("Setup wizard - ") + QStringLiteral(APP_NAME));
|
||||
setWindowIcon(QIcon(QString::fromUtf8(":/icons/hicolor/scalable/app/syncthingtray.svg")));
|
||||
setWindowIcon(QIcon(QString::fromUtf8(":/icons/hicolor/scalable/app/syncthingtray.svg"))
|
||||
#ifdef Q_OS_WINDOWS
|
||||
.pixmap(16)
|
||||
#endif
|
||||
);
|
||||
setMinimumSize(770, 550);
|
||||
|
||||
auto *const welcomePage = new WelcomeWizardPage(this);
|
||||
|
|
Loading…
Reference in New Issue