aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/help/filtersettingspage.h
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2010-03-16 15:48:09 +0100
committerkh1 <qt-info@nokia.com>2010-03-16 15:54:41 +0100
commit33574581017c0c310f4ad010a6e7adea825993b9 (patch)
treeea94d9466a3f17e1cc581ce6c50eac9c20a9cee4 /src/plugins/help/filtersettingspage.h
parent37871bc43cd79db68a297add2d9b84aa1bce2552 (diff)
Some more refactoring, reuse existing code.
Reuse the core help engine in the settings pages. Do not setup the gui help engine at all since any getter will do so. Split update documentation into smaller pieces for better performance. Reviewed-by: ck
Diffstat (limited to 'src/plugins/help/filtersettingspage.h')
-rw-r--r--src/plugins/help/filtersettingspage.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/plugins/help/filtersettingspage.h b/src/plugins/help/filtersettingspage.h
index eda27c08e01..e834b2f7493 100644
--- a/src/plugins/help/filtersettingspage.h
+++ b/src/plugins/help/filtersettingspage.h
@@ -30,12 +30,8 @@
#ifndef FILTERSETTINGSPAGE_H
#define FILTERSETTINGSPAGE_H
-#include <QtGui/QWidget>
-#include <coreplugin/dialogs/ioptionspage.h>
-
#include "ui_filtersettingspage.h"
-
-QT_FORWARD_DECLARE_CLASS(QHelpEngine)
+#include <coreplugin/dialogs/ioptionspage.h>
namespace Help {
namespace Internal {
@@ -43,9 +39,10 @@ namespace Internal {
class FilterSettingsPage : public Core::IOptionsPage
{
Q_OBJECT
+ typedef QMap<QString, QStringList> FilterMap;
public:
- FilterSettingsPage(QHelpEngine *helpEngine);
+ FilterSettingsPage();
QString id() const;
QString displayName() const;
@@ -54,7 +51,7 @@ public:
QWidget *createPage(QWidget *parent);
void apply();
- void finish() { }
+ void finish() {}
virtual bool matches(const QString &s) const;
bool applyChanges();
@@ -67,13 +64,13 @@ private slots:
void removeFilter();
private:
- QHelpEngine *m_helpEngine;
Ui::FilterSettingsPage m_ui;
- QMap<QString, QStringList> m_filterMapBackup;
- QMap<QString, QStringList> m_filterMap;
- QStringList m_removedFilters;
- QWidget *m_currentPage;
+
+ FilterMap m_filterMap;
+ FilterMap m_filterMapBackup;
+
QString m_searchKeywords;
+ QStringList m_removedFilters;
};
} // namespace Help