diff options
author | Eike Ziller <eike.ziller@digia.com> | 2014-02-20 14:52:10 +0100 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-02-25 16:55:25 +0100 |
commit | 4251265a6396581e5db742155bd2a738ae0f00b7 (patch) | |
tree | 491620a98877388f5d397783e78b16377561d5c2 /src/plugins/projectexplorer | |
parent | e64fefdbc466b1247a2cee68617ad904d2388712 (diff) | |
download | qt-creator-4251265a6396581e5db742155bd2a738ae0f00b7.tar.gz |
Unify text on buttons that open the options dialog
We have many buttons that open the options dialog, and many of these use
different terms.
Change-Id: I073fe2a23569c6f4174a2fb6567359c89cb2427c
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer')
7 files changed, 25 insertions, 7 deletions
diff --git a/src/plugins/projectexplorer/kitchooser.cpp b/src/plugins/projectexplorer/kitchooser.cpp index 592270c186..25f082b608 100644 --- a/src/plugins/projectexplorer/kitchooser.cpp +++ b/src/plugins/projectexplorer/kitchooser.cpp @@ -29,6 +29,7 @@ #include "kitchooser.h" +#include "kitconfigwidget.h" #include "kitinformation.h" #include "kitmanager.h" #include "projectexplorerconstants.h" @@ -49,7 +50,7 @@ KitChooser::KitChooser(QWidget *parent) : { m_chooser = new QComboBox(this); m_chooser->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); - m_manageButton = new QPushButton(tr("Manage..."), this); + m_manageButton = new QPushButton(KitConfigWidget::msgManage(), this); QHBoxLayout *layout = new QHBoxLayout(this); layout->setContentsMargins(0, 0, 0, 0); diff --git a/src/plugins/projectexplorer/kitconfigwidget.cpp b/src/plugins/projectexplorer/kitconfigwidget.cpp index fa1834b4f2..eeea98dd9a 100644 --- a/src/plugins/projectexplorer/kitconfigwidget.cpp +++ b/src/plugins/projectexplorer/kitconfigwidget.cpp @@ -53,4 +53,9 @@ void KitConfigWidget::setMutable(bool b) m_kit->setMutable(m_kitInformation->id(), b); } +QString KitConfigWidget::msgManage() +{ + return tr("Manage..."); +} + } // namespace ProjectExplorer diff --git a/src/plugins/projectexplorer/kitconfigwidget.h b/src/plugins/projectexplorer/kitconfigwidget.h index 2db6d11ad0..8570147e2f 100644 --- a/src/plugins/projectexplorer/kitconfigwidget.h +++ b/src/plugins/projectexplorer/kitconfigwidget.h @@ -67,6 +67,8 @@ public: bool isMutable() const; void setMutable(bool b); + static QString msgManage(); + signals: void dirty(); diff --git a/src/plugins/projectexplorer/kitinformationconfigwidget.cpp b/src/plugins/projectexplorer/kitinformationconfigwidget.cpp index e93b8cb4f1..a5d119dd1a 100644 --- a/src/plugins/projectexplorer/kitinformationconfigwidget.cpp +++ b/src/plugins/projectexplorer/kitinformationconfigwidget.cpp @@ -129,7 +129,7 @@ ToolChainInformationConfigWidget::ToolChainInformationConfigWidget(Kit *k, const refresh(); connect(m_comboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(currentToolChainChanged(int))); - m_manageButton = new QPushButton(tr("Manage...")); + m_manageButton = new QPushButton(KitConfigWidget::msgManage()); m_manageButton->setContentsMargins(0, 0, 0, 0); connect(m_manageButton, SIGNAL(clicked()), this, SLOT(manageToolChains())); @@ -316,7 +316,7 @@ DeviceInformationConfigWidget::DeviceInformationConfigWidget(Kit *workingCopy, c { m_comboBox->setModel(m_model); - m_manageButton = new QPushButton(tr("Manage")); + m_manageButton = new QPushButton(KitConfigWidget::msgManage()); refresh(); m_comboBox->setToolTip(toolTip()); diff --git a/src/plugins/projectexplorer/projectwizardpage.cpp b/src/plugins/projectexplorer/projectwizardpage.cpp index 2b0b66774c..92eb6b90ba 100644 --- a/src/plugins/projectexplorer/projectwizardpage.cpp +++ b/src/plugins/projectexplorer/projectwizardpage.cpp @@ -54,6 +54,7 @@ ProjectWizardPage::ProjectWizardPage(QWidget *parent) : m_ui(new Ui::WizardPage) { m_ui->setupUi(this); + m_ui->vcsManageButton->setText(Core::ICore::msgShowOptionsDialog()); connect(m_ui->projectComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(slotProjectChanged(int))); connect(m_ui->vcsManageButton, SIGNAL(clicked()), this, SLOT(slotManageVcs())); diff --git a/src/plugins/projectexplorer/projectwizardpage.ui b/src/plugins/projectexplorer/projectwizardpage.ui index 1be771449d..f512edf44f 100644 --- a/src/plugins/projectexplorer/projectwizardpage.ui +++ b/src/plugins/projectexplorer/projectwizardpage.ui @@ -2,6 +2,14 @@ <ui version="4.0"> <class>ProjectExplorer::Internal::WizardPage</class> <widget class="QWizardPage" name="ProjectExplorer::Internal::WizardPage"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>397</width> + <height>248</height> + </rect> + </property> <property name="title"> <string>Project Management</string> </property> @@ -67,7 +75,7 @@ <item row="2" column="2"> <widget class="QPushButton" name="vcsManageButton"> <property name="text"> - <string>Manage...</string> + <string/> </property> </widget> </item> @@ -108,8 +116,8 @@ <rect> <x>0</x> <y>0</y> - <width>316</width> - <height>103</height> + <width>373</width> + <height>104</height> </rect> </property> <layout class="QVBoxLayout" name="verticalLayout_2"> diff --git a/src/plugins/projectexplorer/targetsetupwidget.cpp b/src/plugins/projectexplorer/targetsetupwidget.cpp index d8e1cfef99..a1d718be99 100644 --- a/src/plugins/projectexplorer/targetsetupwidget.cpp +++ b/src/plugins/projectexplorer/targetsetupwidget.cpp @@ -33,6 +33,7 @@ #include "buildinfo.h" #include "projectexplorerconstants.h" #include "kit.h" +#include "kitconfigwidget.h" #include "kitmanager.h" #include "kitoptionspage.h" @@ -79,7 +80,7 @@ TargetSetupWidget::TargetSetupWidget(Kit *k, Utils::FadingWidget *panel = new Utils::FadingWidget(m_detailsWidget); QHBoxLayout *panelLayout = new QHBoxLayout(panel); - m_manageButton = new QPushButton(tr("Manage...")); + m_manageButton = new QPushButton(KitConfigWidget::msgManage()); panelLayout->addWidget(m_manageButton); m_detailsWidget->setToolWidget(panel); |