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
9c4c7248
Commit
9c4c7248
authored
Dec 14, 2009
by
dt
Browse files
Update on BuildConfiguration::displayNameChanged()
On the project page
parent
4b261a17
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/buildsettingspropertiespage.cpp
View file @
9c4c7248
...
...
@@ -168,6 +168,17 @@ void BuildSettingsWidget::setupUi()
connect
(
m_project
,
SIGNAL
(
activeBuildConfigurationChanged
()),
this
,
SLOT
(
checkMakeActiveLabel
()));
connect
(
m_project
,
SIGNAL
(
addedBuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
)),
this
,
SLOT
(
addedBuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
)));
connect
(
m_project
,
SIGNAL
(
removedBuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
)),
this
,
SLOT
(
removedBuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
)));
foreach
(
BuildConfiguration
*
bc
,
m_project
->
buildConfigurations
())
{
connect
(
bc
,
SIGNAL
(
displayNameChanged
()),
this
,
SLOT
(
buildConfigurationDisplayNameChanged
()));
}
if
(
m_project
->
buildConfigurationFactory
())
connect
(
m_project
->
buildConfigurationFactory
(),
SIGNAL
(
availableCreationIdsChanged
()),
SLOT
(
updateAddButtonMenu
()));
...
...
@@ -175,6 +186,27 @@ void BuildSettingsWidget::setupUi()
updateBuildSettings
();
}
void
BuildSettingsWidget
::
addedBuildConfiguration
(
BuildConfiguration
*
bc
)
{
connect
(
bc
,
SIGNAL
(
displayNameChanged
()),
this
,
SLOT
(
buildConfigurationDisplayNameChanged
()));
}
void
BuildSettingsWidget
::
removedBuildConfiguration
(
BuildConfiguration
*
bc
)
{
disconnect
(
bc
,
SIGNAL
(
displayNameChanged
()),
this
,
SLOT
(
buildConfigurationDisplayNameChanged
()));
}
void
BuildSettingsWidget
::
buildConfigurationDisplayNameChanged
()
{
for
(
int
i
=
0
;
i
<
m_buildConfigurationComboBox
->
count
();
++
i
)
{
BuildConfiguration
*
bc
=
m_buildConfigurationComboBox
->
itemData
(
i
).
value
<
BuildConfiguration
*>
();
m_buildConfigurationComboBox
->
setItemText
(
i
,
bc
->
displayName
());
}
checkMakeActiveLabel
();
}
void
BuildSettingsWidget
::
addSubWidget
(
const
QString
&
name
,
QWidget
*
widget
)
{
widget
->
setContentsMargins
(
m_leftMargin
,
10
,
0
,
0
);
...
...
@@ -260,9 +292,6 @@ void BuildSettingsWidget::updateBuildSettings()
m_buildConfigurationComboBox
->
blockSignals
(
blocked
);
// TODO Restore position, entry from combbox
// TODO? select entry from combobox ?
activeBuildConfigurationChanged
();
}
...
...
src/plugins/projectexplorer/buildsettingspropertiespage.h
View file @
9c4c7248
...
...
@@ -98,6 +98,9 @@ private slots:
void
setupUi
();
void
addedBuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
bc
);
void
removedBuildConfiguration
(
ProjectExplorer
::
BuildConfiguration
*
bc
);
void
buildConfigurationDisplayNameChanged
();
private:
void
cloneConfiguration
(
BuildConfiguration
*
toClone
);
void
deleteConfiguration
(
BuildConfiguration
*
toDelete
);
...
...
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