Skip to content

Commit

Permalink
Disable icon on linux
Browse files Browse the repository at this point in the history
WE2-718

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored and mrts committed Nov 9, 2022
1 parent 88c3c6c commit 80485b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ui/webeiddialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,14 @@ WebEidDialog::WebEidDialog(QWidget* parent) : WebEidUI(parent), ui(new Private)
ui->langButton->setText(action->text());
qApp->loadTranslations();
});
#ifdef Q_OS_LINUX
setStyleSheet(styleSheet() + QStringLiteral("#langButton {padding-right: 15px;}"));
connect(ui->langButton, &QToolButton::clicked, this, [this, langMenu] {
langMenu->exec(mapToGlobal(ui->langButton->geometry().bottomLeft()));
});
#else
ui->langButton->setMenu(langMenu);
#endif
ui->langButton->setText(
QSettings().value(QStringLiteral("lang"), ui->langButton->text()).toString().toUpper());

Expand Down

0 comments on commit 80485b8

Please sign in to comment.