forked from qt-creator/qt-creator
Add index and filter combo box to external help window
Change-Id: Icc815379220c55d9d7dc5d154278ba21ce2e9984 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -31,8 +31,6 @@
|
||||
|
||||
#include "helpviewer.h"
|
||||
#include "localhelpmanager.h"
|
||||
#include "openpagesmanager.h"
|
||||
#include "topicchooser.h"
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
@@ -76,19 +74,3 @@ CentralWidget *CentralWidget::instance()
|
||||
Q_ASSERT(gStaticCentralWidget);
|
||||
return gStaticCentralWidget;
|
||||
}
|
||||
|
||||
void CentralWidget::open(const QUrl &url, bool newPage)
|
||||
{
|
||||
if (newPage)
|
||||
OpenPagesManager::instance().createPage(url);
|
||||
else
|
||||
setSource(url);
|
||||
}
|
||||
|
||||
void CentralWidget::showTopicChooser(const QMap<QString, QUrl> &links,
|
||||
const QString &keyword, bool newPage)
|
||||
{
|
||||
TopicChooser tc(this, keyword, links);
|
||||
if (tc.exec() == QDialog::Accepted)
|
||||
open(tc.link(), newPage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user