The menus are now resizable

This commit is contained in:
lupoDharkael
2017-07-26 17:53:20 +02:00
parent cfcd900114
commit 165939c88f
7 changed files with 15 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ StrftimeChooserWidget::StrftimeChooserWidget(QWidget *parent) : QWidget(parent)
QPushButton *button = new QPushButton(this);
button->setText(tr(key.toStdString().data()));
button->setToolTip(variable);
button->setFixedHeight(30);
button->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
layout->addWidget(button, j, i);
connect(button, &QPushButton::clicked,
this, [variable, this](){Q_EMIT variableEmitted(variable);});