diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-03-19 17:40:01 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-03-19 17:44:50 +0100 |
commit | 27cb595bbb6bb6a44d4a16a4d9a367820db80925 (patch) | |
tree | e6695f97d4381cd4877d385954f9847e095c779f /src/plugins/vcsbase/vcsbaseplugin.cpp | |
parent | 40eab8980b978557c72ee534530db347185d275a (diff) | |
download | qt-creator-27cb595bbb6bb6a44d4a16a4d9a367820db80925.tar.gz |
Fixes: Add common configuration to the VCSA base plugin; submit message check script and user name configuration. Details: Extend submit editor widget by configureable fields. Use them in the VCS base submit editor to specify users, provide completion and selection dialog for them.
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseplugin.cpp')
-rw-r--r-- | src/plugins/vcsbase/vcsbaseplugin.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp index 1aa9a32ff6..0de678e80e 100644 --- a/src/plugins/vcsbase/vcsbaseplugin.cpp +++ b/src/plugins/vcsbase/vcsbaseplugin.cpp @@ -29,6 +29,7 @@ #include "vcsbaseplugin.h" #include "diffhighlighter.h" +#include "vcsbasesettingspage.h" #include <coreplugin/icore.h> #include <coreplugin/coreconstants.h> @@ -42,7 +43,8 @@ namespace Internal { VCSBasePlugin *VCSBasePlugin::m_instance = 0; -VCSBasePlugin::VCSBasePlugin() +VCSBasePlugin::VCSBasePlugin() : + m_settingsPage(0) { m_instance = this; } @@ -61,6 +63,8 @@ bool VCSBasePlugin::initialize(const QStringList &arguments, QString *errorMessa if (!core->mimeDatabase()->addMimeTypes(QLatin1String(":/vcsbase/VCSBase.mimetypes.xml"), errorMessage)) return false; + m_settingsPage = new VCSBaseSettingsPage; + addAutoReleasedObject(m_settingsPage); return true; } @@ -73,6 +77,11 @@ VCSBasePlugin *VCSBasePlugin::instance() return m_instance; } +VCSBaseSettings VCSBasePlugin::settings() const +{ + return m_settingsPage->settings(); +} + } // namespace Internal } // namespace VCSBase |