|
|
|
@ -202,7 +202,7 @@ class ButtonParamControl : public AbstractControl { |
|
|
|
|
Q_OBJECT |
|
|
|
|
public: |
|
|
|
|
ButtonParamControl(const QString ¶m, const QString &title, const QString &desc, const QString &icon, |
|
|
|
|
const std::vector<QString> &button_texts) : AbstractControl(title, desc, icon) { |
|
|
|
|
const std::vector<QString> &button_texts, const int minimum_button_width = 225) : AbstractControl(title, desc, icon) { |
|
|
|
|
const QString style = R"( |
|
|
|
|
QPushButton { |
|
|
|
|
border-radius: 50px; |
|
|
|
@ -230,6 +230,7 @@ public: |
|
|
|
|
button->setCheckable(true); |
|
|
|
|
button->setChecked(i == value); |
|
|
|
|
button->setStyleSheet(style); |
|
|
|
|
button->setMinimumWidth(minimum_button_width); |
|
|
|
|
hlayout->addWidget(button); |
|
|
|
|
button_group->addButton(button, i); |
|
|
|
|
} |
|
|
|
|