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:
Martchus 2022-10-27 19:12:44 +02:00
parent 328417d1f3
commit 1b1b9129be
1 changed files with 5 additions and 1 deletions

View File

@ -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);