diff options
author | kh <qtc-committer@nokia.com> | 2009-04-23 12:20:24 (GMT) |
---|---|---|
committer | kh <qtc-committer@nokia.com> | 2009-04-23 12:20:24 (GMT) |
commit | bc5995bd76dc665aab343263b51185cdfc9fd086 (patch) | |
tree | e25882863e781c426605c79b6baa298f257e874e /tools | |
parent | f58b35586cb703395fb123f7ea3e4b9b99033e63 (diff) | |
download | Qt-bc5995bd76dc665aab343263b51185cdfc9fd086.zip Qt-bc5995bd76dc665aab343263b51185cdfc9fd086.tar.gz Qt-bc5995bd76dc665aab343263b51185cdfc9fd086.tar.bz2 |
Set the current filter if one gets passed by commandline.
Task-number: none
Reviewed-by: kh
Diffstat (limited to 'tools')
-rw-r--r-- | tools/assistant/tools/assistant/mainwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/assistant/tools/assistant/mainwindow.cpp b/tools/assistant/tools/assistant/mainwindow.cpp index dbfac90..cd6cdf1 100644 --- a/tools/assistant/tools/assistant/mainwindow.cpp +++ b/tools/assistant/tools/assistant/mainwindow.cpp @@ -228,6 +228,9 @@ MainWindow::MainWindow(CmdLineParser *cmdLine, QWidget *parent) else if (m_cmdLine->bookmarks() == CmdLineParser::Activate) showBookmarks(); + if (!m_cmdLine->currentFilter().isEmpty()) + m_helpEngine->setCurrentFilter(m_cmdLine->currentFilter()); + if (usesDefaultCollection()) QTimer::singleShot(0, this, SLOT(lookForNewQtDocumentation())); else |