forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user