Skip to content

Commit 80485b8

Browse files
metsmamrts
authored andcommitted
Disable icon on linux
WE2-718 Signed-off-by: Raul Metsma <[email protected]>
1 parent 88c3c6c commit 80485b8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ui/webeiddialog.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,14 @@ WebEidDialog::WebEidDialog(QWidget* parent) : WebEidUI(parent), ui(new Private)
9494
ui->langButton->setText(action->text());
9595
qApp->loadTranslations();
9696
});
97+
#ifdef Q_OS_LINUX
98+
setStyleSheet(styleSheet() + QStringLiteral("#langButton {padding-right: 15px;}"));
99+
connect(ui->langButton, &QToolButton::clicked, this, [this, langMenu] {
100+
langMenu->exec(mapToGlobal(ui->langButton->geometry().bottomLeft()));
101+
});
102+
#else
97103
ui->langButton->setMenu(langMenu);
104+
#endif
98105
ui->langButton->setText(
99106
QSettings().value(QStringLiteral("lang"), ui->langButton->text()).toString().toUpper());
100107

0 commit comments

Comments
 (0)