forked from qt-creator/qt-creator
Removed code duplication and unused methods in IFindSupport derivatives.
Change-Id: I6c76665c88f2d4678858081765e29a08566798b1 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Eike Ziller
parent
8c2972be05
commit
c6703af8f9
@@ -50,7 +50,6 @@ public:
|
||||
HelpFindSupport(CentralWidget *centralWidget);
|
||||
~HelpFindSupport();
|
||||
|
||||
bool isEnabled() const;
|
||||
bool supportsReplace() const { return false; }
|
||||
Find::FindFlags supportedFindFlags() const;
|
||||
|
||||
@@ -61,12 +60,6 @@ public:
|
||||
|
||||
Result findIncremental(const QString &txt, Find::FindFlags findFlags);
|
||||
Result findStep(const QString &txt, Find::FindFlags findFlags);
|
||||
void replace(const QString &, const QString &,
|
||||
Find::FindFlags ) { }
|
||||
bool replaceStep(const QString &, const QString &,
|
||||
Find::FindFlags ) { return false; }
|
||||
int replaceAll(const QString &, const QString &,
|
||||
Find::FindFlags ) { return 0; }
|
||||
|
||||
private:
|
||||
bool find(const QString &ttf, Find::FindFlags findFlags, bool incremental);
|
||||
@@ -80,7 +73,6 @@ class HelpViewerFindSupport : public Find::IFindSupport
|
||||
public:
|
||||
HelpViewerFindSupport(HelpViewer *viewer);
|
||||
|
||||
bool isEnabled() const { return true; }
|
||||
bool supportsReplace() const { return false; }
|
||||
Find::FindFlags supportedFindFlags() const;
|
||||
void resetIncrementalSearch() {}
|
||||
@@ -90,12 +82,6 @@ public:
|
||||
|
||||
Result findIncremental(const QString &txt, Find::FindFlags findFlags);
|
||||
Result findStep(const QString &txt, Find::FindFlags findFlags);
|
||||
void replace(const QString &, const QString &,
|
||||
Find::FindFlags ) { }
|
||||
bool replaceStep(const QString &, const QString &,
|
||||
Find::FindFlags ) { return false; }
|
||||
int replaceAll(const QString &, const QString &,
|
||||
Find::FindFlags ) { return 0; }
|
||||
|
||||
private:
|
||||
bool find(const QString &ttf, Find::FindFlags findFlags, bool incremental);
|
||||
|
||||
Reference in New Issue
Block a user