Commit 8c920ee0 authored by con's avatar con
Browse files

One method name slipped the naming convention displayName.

parent ed38d62c
......@@ -226,7 +226,7 @@ void FindPlugin::setupFilterMenuItems()
d->m_filterActions.clear();
bool haveEnabledFilters = false;
foreach (IFindFilter *filter, findInterfaces) {
QAction *action = new QAction(QLatin1String(" ") + filter->name(), this);
QAction *action = new QAction(QLatin1String(" ") + filter->displayName(), this);
bool isEnabled = filter->isEnabled();
if (isEnabled)
haveEnabledFilters = true;
......
......@@ -98,7 +98,7 @@ void FindToolWindow::setFindFilters(const QList<IFindFilter *> &filters)
m_ui.filterList->clear();
QStringList names;
foreach (IFindFilter *filter, filters) {
names << filter->name();
names << filter->displayName();
m_configWidgets.append(filter->createConfigWidget());
}
m_ui.filterList->addItems(names);
......
......@@ -50,7 +50,7 @@ public:
virtual ~IFindFilter() {}
virtual QString id() const = 0;
virtual QString name() const = 0;
virtual QString displayName() const = 0;
virtual bool isEnabled() const = 0;
virtual QKeySequence defaultShortcut() const = 0;
virtual bool isReplaceSupported() const { return false; }
......
......@@ -60,7 +60,7 @@ QString AllProjectsFind::id() const
return QLatin1String("All Projects");
}
QString AllProjectsFind::name() const
QString AllProjectsFind::displayName() const
{
return tr("All Projects");
}
......
......@@ -51,7 +51,7 @@ public:
AllProjectsFind(ProjectExplorerPlugin *plugin, Find::SearchResultWindow *resultWindow);
QString id() const;
QString name() const;
QString displayName() const;
bool isEnabled() const;
QKeySequence defaultShortcut() const;
......
......@@ -60,7 +60,7 @@ QString CurrentProjectFind::id() const
return QLatin1String("Current Project");
}
QString CurrentProjectFind::name() const
QString CurrentProjectFind::displayName() const
{
return tr("Current Project");
}
......
......@@ -54,7 +54,7 @@ public:
CurrentProjectFind(ProjectExplorerPlugin *plugin, Find::SearchResultWindow *resultWindow);
QString id() const;
QString name() const;
QString displayName() const;
bool isEnabled() const;
QKeySequence defaultShortcut() const;
......
......@@ -57,7 +57,7 @@ QString FindInCurrentFile::id() const
return "Current File";
}
QString FindInCurrentFile::name() const
QString FindInCurrentFile::displayName() const
{
return tr("Current File");
}
......
......@@ -54,7 +54,7 @@ public:
explicit FindInCurrentFile(Find::SearchResultWindow *resultWindow);
QString id() const;
QString name() const;
QString displayName() const;
QKeySequence defaultShortcut() const;
bool isEnabled() const;
QWidget *createConfigWidget();
......
......@@ -52,7 +52,7 @@ QString FindInFiles::id() const
return "Files on Disk";
}
QString FindInFiles::name() const
QString FindInFiles::displayName() const
{
return tr("Files on File System");
}
......
......@@ -52,7 +52,7 @@ public:
explicit FindInFiles(Find::SearchResultWindow *resultWindow);
QString id() const;
QString name() const;
QString displayName() const;
QKeySequence defaultShortcut() const;
void findAll(const QString &txt, QTextDocument::FindFlags findFlags);
QWidget *createConfigWidget();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment