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.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/addon/doxywizard/inputbool.cpp b/addon/doxywizard/inputbool.cpp
index 92d2929..132658d 100644
--- a/addon/doxywizard/inputbool.cpp
+++ b/addon/doxywizard/inputbool.cpp
@@ -12,6 +12,7 @@
#include "inputbool.h"
#include "helplabel.h"
+#include "config_msg.h"
#include <QCheckBox>
#include <QTextStream>
@@ -91,16 +92,20 @@ QVariant &InputBool::value()
void InputBool::update()
{
QString v = m_value.toString().toLower();
- if (v==QString::fromLatin1("yes") || v==QString::fromLatin1("true") || v==QString::fromLatin1("1"))
+ if (v==QString::fromLatin1("yes") || v==QString::fromLatin1("true") ||
+ v==QString::fromLatin1("1") || v==QString::fromLatin1("all"))
{
m_state = true;
}
- else if (v==QString::fromLatin1("no") || v==QString::fromLatin1("false") || v==QString::fromLatin1("0"))
+ else if (v==QString::fromLatin1("no") || v==QString::fromLatin1("false") ||
+ v==QString::fromLatin1("0") || v==QString::fromLatin1("none"))
{
m_state = false;
}
else
{
+ config_warn("argument '%s' for option %s is not a valid boolean value."
+ " Using the default: %s!",qPrintable(m_value.toString()),qPrintable(m_id),m_default?"YES":"NO");
m_state = m_default;
}
m_cb->setChecked( m_state );