From bc5995bd76dc665aab343263b51185cdfc9fd086 Mon Sep 17 00:00:00 2001 From: kh Date: Thu, 23 Apr 2009 14:20:24 +0200 Subject: Set the current filter if one gets passed by commandline. Task-number: none Reviewed-by: kh --- tools/assistant/tools/assistant/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v0.12