Skip to content
GitLab
Menu
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
38503472
Commit
38503472
authored
May 27, 2010
by
hjk
Browse files
fix latest merge from 2.0
parent
b201dcb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/miniprojecttargetselector.cpp
View file @
38503472
...
...
@@ -320,14 +320,8 @@ void MiniTargetWidget::setActiveRunConfiguration()
void
MiniTargetWidget
::
addRunConfiguration
(
ProjectExplorer
::
RunConfiguration
*
rc
)
{
connect
(
rc
,
SIGNAL
(
displayNameChanged
()),
SLOT
(
updateDisplayName
()));
m_runComboBox
->
addItem
(
rc
->
displayName
(),
QVariant
::
fromValue
(
rc
));
m_runComboBox
->
setItemData
(
m_runComboBox
->
findText
(
rc
->
displayName
()),
rc
->
displayName
(),
Qt
::
ToolTipRole
);
if
(
m_target
->
activeRunConfiguration
()
==
rc
)
m_runComboBox
->
setCurrentIndex
(
m_runComboBox
->
count
()
-
1
);
m_runComboBox
->
setEnabled
(
m_runComboBox
->
count
()
>
1
);
Q_UNUSED
(
rc
);
m_runComboBox
->
setEnabled
(
m_target
->
runConfigurations
().
count
()
>
1
);
}
void
MiniTargetWidget
::
removeRunConfiguration
(
ProjectExplorer
::
RunConfiguration
*
rc
)
...
...
@@ -339,15 +333,8 @@ void MiniTargetWidget::removeRunConfiguration(ProjectExplorer::RunConfiguration*
void
MiniTargetWidget
::
addBuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
bc
)
{
Q_UNUSED
(
bc
);
QTC_ASSERT
(
m_buildComboBox
,
return
);
connect
(
bc
,
SIGNAL
(
displayNameChanged
()),
SLOT
(
updateDisplayName
()));
m_buildComboBox
->
addItem
(
bc
->
displayName
(),
QVariant
::
fromValue
(
bc
));
m_buildComboBox
->
setItemData
(
m_buildComboBox
->
findText
(
bc
->
displayName
()),
bc
->
displayName
(),
Qt
::
ToolTipRole
);
if
(
m_target
->
activeBuildConfiguration
()
==
bc
)
m_buildComboBox
->
setCurrentIndex
(
m_buildComboBox
->
count
()
-
1
);
m_buildComboBox
->
setEnabled
(
m_buildComboBox
->
count
()
>
1
);
connect
(
bc
,
SIGNAL
(
displayNameChanged
()),
SIGNAL
(
changed
()),
Qt
::
UniqueConnection
);
m_buildComboBox
->
setEnabled
(
m_target
->
buildConfigurations
().
count
()
>
1
);
}
void
MiniTargetWidget
::
removeBuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
bc
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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