Skip to content

Commit

Permalink
Fix layout with all languages
Browse files Browse the repository at this point in the history
WE2-822

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored and mrts committed Jul 5, 2024
1 parent 4f6413f commit 57b96b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/webeiddialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ WebEidDialog::WebEidDialog(QWidget* parent) : WebEidUI(parent), ui(new Private)
auto* layout = new QGridLayout(menu);
layout->setContentsMargins(1, 1, 1, 1);
layout->setSpacing(1);
layout->setSizeConstraint(QLayout::SetFixedSize);
auto* langGroup = new QButtonGroup(menu);
langGroup->setExclusive(true);
int i {};
Expand All @@ -136,8 +137,7 @@ WebEidDialog::WebEidDialog(QWidget* parent) : WebEidUI(parent), ui(new Private)
++i;
}
menu->show();
menu->adjustSize();
menu->move(ui->langButton->geometry().bottomRight() - QPoint(menu->width() - 1, -2));
menu->move(ui->langButton->geometry().bottomRight() - menu->geometry().topRight() + QPoint(0, 2));
connect(langGroup, qOverload<QAbstractButton*>(&QButtonGroup::buttonClicked), menu,
[this, menu](QAbstractButton* action) {
QSettings().setValue(QStringLiteral("lang"), action->property("lang"));
Expand Down

0 comments on commit 57b96b6

Please sign in to comment.