diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-04-12 16:52:09 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-04-12 18:54:05 +0200 |
commit | 5e96fa3a91b8e7fdbff914ae8856149b96406dc5 (patch) | |
tree | 06d06609efaed5c76de0e875b4c6e82cc89279f4 /src/plugins/cvs | |
parent | f9051e6f87012a95cfd0a58b84c1519028b8e795 (diff) | |
download | qt-creator-5e96fa3a91b8e7fdbff914ae8856149b96406dc5.tar.gz |
Create a single parent options page for the Version Control category
Cleans up some duplication for each page.
Reviewed-by: Friedemann Kleint
Diffstat (limited to 'src/plugins/cvs')
-rw-r--r-- | src/plugins/cvs/settingspage.cpp | 15 | ||||
-rw-r--r-- | src/plugins/cvs/settingspage.h | 8 |
2 files changed, 3 insertions, 20 deletions
diff --git a/src/plugins/cvs/settingspage.cpp b/src/plugins/cvs/settingspage.cpp index 2a137e93b2..d4106f7f6d 100644 --- a/src/plugins/cvs/settingspage.cpp +++ b/src/plugins/cvs/settingspage.cpp @@ -98,21 +98,6 @@ QString SettingsPage::displayName() const return tr("CVS"); } -QString SettingsPage::category() const -{ - return QLatin1String(VCSBase::Constants::VCS_SETTINGS_CATEGORY); -} - -QString SettingsPage::displayCategory() const -{ - return QCoreApplication::translate("VCSBase", VCSBase::Constants::VCS_SETTINGS_TR_CATEGORY); -} - -QIcon SettingsPage::categoryIcon() const -{ - return QIcon(); // TODO: Icon for Version Control -} - QWidget *SettingsPage::createPage(QWidget *parent) { m_widget = new SettingsPageWidget(parent); diff --git a/src/plugins/cvs/settingspage.h b/src/plugins/cvs/settingspage.h index 141d4b836d..1d9772749c 100644 --- a/src/plugins/cvs/settingspage.h +++ b/src/plugins/cvs/settingspage.h @@ -32,7 +32,7 @@ #include "ui_settingspage.h" -#include <coreplugin/dialogs/ioptionspage.h> +#include <vcsbase/vcsbaseoptionspage.h> #include <QtGui/QWidget> #include <QtCore/QPointer> @@ -50,6 +50,7 @@ struct CVSSettings; class SettingsPageWidget : public QWidget { Q_OBJECT + public: explicit SettingsPageWidget(QWidget *parent = 0); @@ -63,7 +64,7 @@ private: }; -class SettingsPage : public Core::IOptionsPage +class SettingsPage : public VCSBase::VCSBaseOptionsPage { Q_OBJECT @@ -72,9 +73,6 @@ public: QString id() const; QString displayName() const; - QString category() const; - QString displayCategory() const; - QIcon categoryIcon() const; QWidget *createPage(QWidget *parent); void apply(); |