Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
672f44d0
Commit
672f44d0
authored
Apr 15, 2011
by
Tobias Hunger
Browse files
ProjectWizard: Add button to take you to VCS configuration
This makes setting up VCS more discoverable.
parent
fea13a44
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/projectwizardpage.cpp
View file @
672f44d0
...
...
@@ -33,6 +33,9 @@
#include
"projectwizardpage.h"
#include
"ui_projectwizardpage.h"
#include
<coreplugin/coreimpl.h>
#include
<vcsbase/vcsbaseconstants.h>
#include
<QtCore/QDir>
#include
<QtCore/QTextStream>
...
...
@@ -54,6 +57,7 @@ ProjectWizardPage::ProjectWizardPage(QWidget *parent) :
m_ui
->
setupUi
(
this
);
connect
(
m_ui
->
projectComboBox
,
SIGNAL
(
currentIndexChanged
(
int
)),
this
,
SLOT
(
slotProjectChanged
(
int
)));
connect
(
m_ui
->
vcsManageButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
slotManageVcs
()));
setProperty
(
"shortTitle"
,
tr
(
"Summary"
));
}
...
...
@@ -157,3 +161,10 @@ void ProjectWizardPage::slotProjectChanged(int index)
setProjectToolTip
(
index
>=
0
&&
index
<
m_projectToolTips
.
size
()
?
m_projectToolTips
.
at
(
index
)
:
QString
());
}
void
ProjectWizardPage
::
slotManageVcs
()
{
Core
::
ICore
*
core
=
Core
::
ICore
::
instance
();
core
->
showOptionsDialog
(
VCSBase
::
Constants
::
VCS_SETTINGS_CATEGORY
,
VCSBase
::
Constants
::
VCS_COMMON_SETTINGS_ID
);
}
src/plugins/projectexplorer/projectwizardpage.h
View file @
672f44d0
...
...
@@ -72,6 +72,7 @@ protected:
private
slots
:
void
slotProjectChanged
(
int
);
void
slotManageVcs
();
private:
inline
void
setProjectToolTip
(
const
QString
&
);
...
...
src/plugins/projectexplorer/projectwizardpage.ui
View file @
672f44d0
...
...
@@ -2,15 +2,20 @@
<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>
307
</width>
<height>
241
</height>
</rect>
</property>
<property
name=
"title"
>
<string>
Project Management
</string>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout"
>
<item>
<layout
class=
"QFormLayout"
name=
"formLayout"
>
<property
name=
"fieldGrowthPolicy"
>
<enum>
QFormLayout::ExpandingFieldsGrow
</enum>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"projectLabel"
>
<property
name=
"enabled"
>
...
...
@@ -37,6 +42,16 @@
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"additionalInfo"
>
<property
name=
"text"
>
<string/>
</property>
<property
name=
"wordWrap"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QLabel"
name=
"addToVersionControlLabel"
>
<property
name=
"text"
>
...
...
@@ -57,13 +72,10 @@
</property>
</widget>
</item>
<item
row=
"
1
"
column=
"
1
"
>
<widget
class=
"Q
Label"
name=
"additionalInfo
"
>
<item
row=
"
2
"
column=
"
2
"
>
<widget
class=
"Q
PushButton"
name=
"vcsManageButton
"
>
<property
name=
"text"
>
<string/>
</property>
<property
name=
"wordWrap"
>
<bool>
true
</bool>
<string>
Manage
</string>
</property>
</widget>
</item>
...
...
@@ -104,26 +116,30 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
2
1
8
</width>
<height>
83
</height>
<width>
28
9
</width>
<height>
131
</height>
</rect>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_2"
>
<item>
<widget
class=
"QLabel"
name=
"filesLabel"
>
<property
name=
"text"
>
<string>
The following files will be added:
<widget
class=
"QLabel"
name=
"filesLabel"
>
<property
name=
"geometry"
>
<rect>
<x>
9
</x>
<y>
9
</y>
<width>
154
</width>
<height>
65
</height>
</rect>
</property>
<property
name=
"text"
>
<string>
The following files will be added:
</string>
</property>
<property
name=
"textInteractionFlags"
>
<set>
Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse
</set>
</property>
</widget>
</item>
</layout>
</property>
<property
name=
"textInteractionFlags"
>
<set>
Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse
</set>
</property>
</widget>
</widget>
</widget>
</item>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment