summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard/inputbool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'addon/doxywizard/inputbool.cpp')
-rw-r--r--addon/doxywizard/inputbool.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/addon/doxywizard/inputbool.cpp b/addon/doxywizard/inputbool.cpp
index 62fcf62..9e28852 100644
--- a/addon/doxywizard/inputbool.cpp
+++ b/addon/doxywizard/inputbool.cpp
@@ -43,6 +43,8 @@ void InputBool::setEnabled(bool b)
{
m_enabled = b;
m_cb->setEnabled(b);
+ m_lab->setEnabled(b);
+ updateDefault();
updateDependencies();
}
@@ -69,7 +71,7 @@ void InputBool::setValue( bool s )
void InputBool::updateDefault()
{
- if (m_state==m_default)
+ if (m_state==m_default || !m_lab->isEnabled())
{
m_lab->setText(QString::fromAscii("<qt>")+m_id+QString::fromAscii("</qt"));
}