Help: Get rid of separate find support for central widget

There is no reason to not just add the support to the individual pages
when they are created.

Change-Id: I0e45577d054a420f406c44cdcbb4968ff05fcc7c
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
This commit is contained in:
Eike Ziller
2014-06-17 16:46:48 +02:00
parent 2b0954ca7d
commit 46cdd91024
3 changed files with 6 additions and 86 deletions

View File

@@ -39,31 +39,6 @@ namespace Internal {
class HelpViewer;
class HelpFindSupport : public Core::IFindSupport
{
Q_OBJECT
public:
HelpFindSupport(CentralWidget *centralWidget);
~HelpFindSupport();
bool supportsReplace() const { return false; }
Core::FindFlags supportedFindFlags() const;
void resetIncrementalSearch() {}
void clearResults() {}
QString currentFindString() const;
QString completedFindString() const;
Result findIncremental(const QString &txt, Core::FindFlags findFlags);
Result findStep(const QString &txt, Core::FindFlags findFlags);
private:
bool find(const QString &ttf, Core::FindFlags findFlags, bool incremental);
CentralWidget *m_centralWidget;
};
class HelpViewerFindSupport : public Core::IFindSupport
{
Q_OBJECT