Hide warning groupbox in backend settings
This commit is contained in:
parent
980d8a65a1
commit
67df8f2243
@ -437,10 +437,12 @@ void BackendSettingsPage::ShowWarning(QString text) {
|
|||||||
|
|
||||||
ui_->label_warn_text->setStyleSheet("QLabel { color: red; }");
|
ui_->label_warn_text->setStyleSheet("QLabel { color: red; }");
|
||||||
ui_->label_warn_text->setText("<b>" + text + "</b>");
|
ui_->label_warn_text->setText("<b>" + text + "</b>");
|
||||||
|
|
||||||
|
ui_->groupbox_warning->setVisible(true);
|
||||||
ui_->label_warn_logo->setVisible(true);
|
ui_->label_warn_logo->setVisible(true);
|
||||||
ui_->label_warn_text->setVisible(true);
|
ui_->label_warn_text->setVisible(true);
|
||||||
|
|
||||||
|
ui_->groupbox_warning->setEnabled(true);
|
||||||
ui_->label_warn_logo->setEnabled(true);
|
ui_->label_warn_logo->setEnabled(true);
|
||||||
ui_->label_warn_text->setEnabled(true);
|
ui_->label_warn_text->setEnabled(true);
|
||||||
|
|
||||||
@ -451,9 +453,11 @@ void BackendSettingsPage::ResetWarning() {
|
|||||||
ui_->label_warn_logo->clear();
|
ui_->label_warn_logo->clear();
|
||||||
ui_->label_warn_text->clear();
|
ui_->label_warn_text->clear();
|
||||||
|
|
||||||
|
ui_->groupbox_warning->setEnabled(false);
|
||||||
ui_->label_warn_logo->setEnabled(false);
|
ui_->label_warn_logo->setEnabled(false);
|
||||||
ui_->label_warn_text->setEnabled(false);
|
ui_->label_warn_text->setEnabled(false);
|
||||||
|
|
||||||
|
ui_->groupbox_warning->setVisible(false);
|
||||||
ui_->label_warn_logo->setVisible(false);
|
ui_->label_warn_logo->setVisible(false);
|
||||||
ui_->label_warn_text->setVisible(false);
|
ui_->label_warn_text->setVisible(false);
|
||||||
|
|
||||||
|
@ -305,6 +305,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupbox_warning">
|
<widget class="QGroupBox" name="groupbox_warning">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
@ -367,6 +370,12 @@
|
|||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user