summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard/expert.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-05-03 19:32:48 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-05-03 19:32:48 (GMT)
commit2277e6e695d785d319cb52a8a8ead2982eac2afa (patch)
treeb183195709af0628833f7499613e0a0317471029 /addon/doxywizard/expert.cpp
parentfbc60af2298c2668893e2f7045f66765f8e0c63f (diff)
downloadDoxygen-2277e6e695d785d319cb52a8a8ead2982eac2afa.zip
Doxygen-2277e6e695d785d319cb52a8a8ead2982eac2afa.tar.gz
Doxygen-2277e6e695d785d319cb52a8a8ead2982eac2afa.tar.bz2
Doxywizard: make the Next button on the last page of the expert tab switch to the run tab
Diffstat (limited to 'addon/doxywizard/expert.cpp')
-rw-r--r--addon/doxywizard/expert.cpp22
1 files changed, 17 insertions, 5 deletions
diff --git a/addon/doxywizard/expert.cpp b/addon/doxywizard/expert.cpp
index fe6609e..1cc5d15 100644
--- a/addon/doxywizard/expert.cpp
+++ b/addon/doxywizard/expert.cpp
@@ -683,7 +683,7 @@ void Expert::activateTopic(QTreeWidgetItem *item,QTreeWidgetItem *)
QWidget *w = m_topics[item->text(0)];
m_topicStack->setCurrentWidget(w);
m_prev->setEnabled(m_topicStack->currentIndex()!=0);
- m_next->setEnabled(m_topicStack->currentIndex()!=m_topicStack->count()-1);
+ m_next->setEnabled(true);
}
}
@@ -824,10 +824,17 @@ void Expert::showHelp(Input *option)
void Expert::nextTopic()
{
- m_topicStack->setCurrentIndex(m_topicStack->currentIndex()+1);
- m_next->setEnabled(m_topicStack->count()!=m_topicStack->currentIndex()+1);
- m_prev->setEnabled(m_topicStack->currentIndex()!=0);
- m_treeWidget->setCurrentItem(m_treeWidget->invisibleRootItem()->child(m_topicStack->currentIndex()));
+ if (m_topicStack->currentIndex()+1==m_topicStack->count()) // last topic
+ {
+ done();
+ }
+ else
+ {
+ m_topicStack->setCurrentIndex(m_topicStack->currentIndex()+1);
+ m_next->setEnabled(m_topicStack->count()!=m_topicStack->currentIndex()+1);
+ m_prev->setEnabled(m_topicStack->currentIndex()!=0);
+ m_treeWidget->setCurrentItem(m_treeWidget->invisibleRootItem()->child(m_topicStack->currentIndex()));
+ }
}
void Expert::prevTopic()
@@ -931,3 +938,8 @@ bool Expert::pdfOutputPresent(const QString &workingDir) const
return fi.exists() && fi.isFile();
}
+void Expert::refresh()
+{
+ m_treeWidget->setCurrentItem(m_treeWidget->invisibleRootItem()->child(0));
+}
+