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
9a0fb343
Commit
9a0fb343
authored
Sep 30, 2009
by
con
Browse files
Make it possible again to create new build config for generic projects
parent
4c199a3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/genericprojectmanager/genericproject.cpp
View file @
9a0fb343
...
...
@@ -48,6 +48,7 @@
#include
<QtGui/QFormLayout>
#include
<QtGui/QMainWindow>
#include
<QtGui/QInputDialog>
#include
<QtGui/QComboBox>
#include
<QtGui/QStringListModel>
#include
<QtGui/QListWidget>
...
...
@@ -132,13 +133,21 @@ QString GenericBuildConfigurationFactory::displayNameForType(const QString &type
bool
GenericBuildConfigurationFactory
::
create
(
const
QString
&
type
)
const
{
// bool GenericProject::newBuildConfiguration(const QString &buildConfiguration)
// {
// makeStep()->setBuildTarget(buildConfiguration, "all", true);
// return true;
// }
return
false
;
QTC_ASSERT
(
type
==
"Create"
,
return
false
);
//TODO asking for name is duplicated everywhere, but maybe more
// wizards will show up, that incorporate choosing the name
bool
ok
;
QString
buildConfigurationName
=
QInputDialog
::
getText
(
0
,
tr
(
"New configuration"
),
tr
(
"New Configuration Name:"
),
QLineEdit
::
Normal
,
QString
(),
&
ok
);
if
(
!
ok
||
buildConfigurationName
.
isEmpty
())
return
false
;
BuildConfiguration
*
bc
=
new
BuildConfiguration
(
buildConfigurationName
);
m_project
->
addBuildConfiguration
(
bc
);
// also makes the name unique...
m_project
->
makeStep
()
->
setBuildTarget
(
bc
->
name
(),
"all"
,
true
);
}
////////////////////////////////////////////////////////////////////////////////////
...
...
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