summaryrefslogtreecommitdiff
path: root/src/plugins/perforce
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2014-04-30 12:56:36 +0200
committerTobias Hunger <tobias.hunger@digia.com>2014-05-26 15:24:24 +0200
commit7e47a8a453cb7b2ade37d3d12d8476b380443e46 (patch)
treedfffef0af46d478a79597bcc7792de4a75037e42 /src/plugins/perforce
parent8845683197faa2d9a48e8714b43ff4360f4e767d (diff)
downloadqt-creator-7e47a8a453cb7b2ade37d3d12d8476b380443e46.tar.gz
Cleanup: Remove searchKeywords from optionspage widgets
If no specialization is provided then the UI strings are searched. So get rid of extra code collecting all those strings in a lot of places. Change-Id: Ibcb48a67e5c7b74e5960fe38b1cb2f74259b503a Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/perforce')
-rw-r--r--src/plugins/perforce/settingspage.cpp21
-rw-r--r--src/plugins/perforce/settingspage.h2
2 files changed, 0 insertions, 23 deletions
diff --git a/src/plugins/perforce/settingspage.cpp b/src/plugins/perforce/settingspage.cpp
index 2391d5bd5d..babcb96a75 100644
--- a/src/plugins/perforce/settingspage.cpp
+++ b/src/plugins/perforce/settingspage.cpp
@@ -116,27 +116,6 @@ void SettingsPageWidget::setStatusError(const QString &t)
m_ui.errorLabel->setText(t);
}
-QString SettingsPageWidget::searchKeywords() const
-{
- QString rc;
- QLatin1Char sep(' ');
- QTextStream(&rc)
- << sep << m_ui.configGroupBox->title()
- << sep << m_ui.commandLabel->text()
- << sep << m_ui.environmentGroupBox->title()
- << sep << m_ui.portLabel->text()
- << sep << m_ui.clientLabel->text()
- << sep << m_ui.userLabel->text()
- << sep << m_ui.miscGroupBox->title()
- << sep << m_ui.logCountLabel->text()
- << sep << m_ui.timeOutLabel->text()
- << sep << m_ui.promptToSubmitCheckBox->text()
- << sep << m_ui.autoOpenCheckBox->text()
- ;
- rc.remove(QLatin1Char('&'));
- return rc;
-}
-
SettingsPage::SettingsPage()
{
setId(VcsBase::Constants::VCS_ID_PERFORCE);
diff --git a/src/plugins/perforce/settingspage.h b/src/plugins/perforce/settingspage.h
index 75e68e5642..e454dd84c3 100644
--- a/src/plugins/perforce/settingspage.h
+++ b/src/plugins/perforce/settingspage.h
@@ -54,8 +54,6 @@ public:
void setSettings(const PerforceSettings &);
Settings settings() const;
- QString searchKeywords() const;
-
private slots:
void slotTest();
void setStatusText(const QString &);