diff options
author | albert-github <albert.tests@gmail.com> | 2020-12-16 10:02:47 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-12-16 10:02:47 (GMT) |
commit | f573b414b482a01e87869a277cdb913d173fc925 (patch) | |
tree | 673fcfe296c39129da4c929e332727e40c0ed63d /addon/doxywizard/inputbool.cpp | |
parent | 7b2e841b3a3d7d787458f236e2447c890cfbf590 (diff) | |
download | Doxygen-f573b414b482a01e87869a277cdb913d173fc925.zip Doxygen-f573b414b482a01e87869a277cdb913d173fc925.tar.gz Doxygen-f573b414b482a01e87869a277cdb913d173fc925.tar.bz2 |
Improvements of reading the configuration file
- making the parsing of the configuration consistent with the reading of the configuration file a doxygen run
- adding a number of warnings in case of problems in the configuration file
- making the configuration warnings better visible (popping up the "Output log Window").
Diffstat (limited to 'addon/doxywizard/inputbool.cpp')
-rw-r--r-- | addon/doxywizard/inputbool.cpp | 9 |
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 ); |