mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
Statistics case User interface and behaviour working.
p4#: 21171
This commit is contained in:
1 parent
c6f2b52216
commit
1c65fe7e2c
11 files changed
+160
-93
No files matched your search
@@ -55,6 +55,8 @@ void PdmUiPushButtonEditor::configureAndUpdateUi(const QString& uiConfigName)
|
||||
m_label->setText(field()->uiName(uiConfigName));
|
||||
}
|
||||
|
||||
m_pushButton->setCheckable(true);
|
||||
|
||||
//m_label->setEnabled(!field()->isUiReadOnly(uiConfigName));
|
||||
m_pushButton->setEnabled(!field()->isUiReadOnly(uiConfigName));
|
||||
|
||||
@@ -67,6 +69,10 @@ void PdmUiPushButtonEditor::configureAndUpdateUi(const QString& uiConfigName)
|
||||
{
|
||||
m_pushButton->setIcon(attributes.m_buttonIcon);
|
||||
}
|
||||
else if (!attributes.m_buttonText.isEmpty())
|
||||
{
|
||||
m_pushButton->setText(attributes.m_buttonText);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (variantFieldValue.type() == QVariant::Bool)
|
||||
@@ -119,11 +125,7 @@ void PdmUiPushButtonEditor::slotClicked(bool checked)
|
||||
v = checked;
|
||||
this->setValueToField(v);
|
||||
}
|
||||
else
|
||||
{
|
||||
QVariant v = m_pushButton->text();
|
||||
this->setValueToField(v);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user