diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2011-01-03 18:43:15 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2011-01-03 18:43:15 (GMT) |
commit | 2149c9cb1315b6a42457dd991171bf4fcf7d7015 (patch) | |
tree | c44fd80159115f91bacbc05dd72e77e5a6788e84 /addon/doxywizard/expert.cpp | |
parent | 48f4fd9c2d9ba8b374e3c052f888df9bc220df92 (diff) | |
download | Doxygen-2149c9cb1315b6a42457dd991171bf4fcf7d7015.zip Doxygen-2149c9cb1315b6a42457dd991171bf4fcf7d7015.tar.gz Doxygen-2149c9cb1315b6a42457dd991171bf4fcf7d7015.tar.bz2 |
Release-1.7.3
Diffstat (limited to 'addon/doxywizard/expert.cpp')
-rw-r--r-- | addon/doxywizard/expert.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/addon/doxywizard/expert.cpp b/addon/doxywizard/expert.cpp index e328ef0..4bbb104 100644 --- a/addon/doxywizard/expert.cpp +++ b/addon/doxywizard/expert.cpp @@ -33,6 +33,7 @@ Expert::Expert() m_treeWidget = new QTreeWidget; m_treeWidget->setColumnCount(1); m_topicStack = new QStackedWidget; + m_inShowHelp = FALSE; QFile file(SA(":/config.xml")); QString err; @@ -435,13 +436,18 @@ bool Expert::restoreInnerState ( const QByteArray & state ) void Expert::showHelp(Input *option) { - m_helper->setText( - QString::fromAscii("<qt><b>")+option->id()+ - QString::fromAscii("</b><br>")+ - option->docs(). - replace(QChar::fromAscii('\n'),QChar::fromAscii(' '))+ - QString::fromAscii("<qt>") - ); + if (!m_inShowHelp) + { + m_inShowHelp = TRUE; + m_helper->setText( + QString::fromAscii("<qt><b>")+option->id()+ + QString::fromAscii("</b><br>")+ + option->docs(). + replace(QChar::fromAscii('\n'),QChar::fromAscii(' '))+ + QString::fromAscii("<qt>") + ); + m_inShowHelp = FALSE; + } } void Expert::nextTopic() |