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
1430358d
Commit
1430358d
authored
Jul 08, 2010
by
ck
Browse files
Maemo: Give meaningful names to run configurations.
Reviewed-by: kh1
parent
d5932f0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.cpp
View file @
1430358d
...
...
@@ -74,7 +74,7 @@ MaemoRunConfiguration::MaemoRunConfiguration(Qt4Target *parent,
void
MaemoRunConfiguration
::
init
()
{
setDisplayName
(
tr
(
"New Maemo Run Configuration"
));
setDisplayName
(
QFileInfo
(
m_proFilePath
).
completeBaseName
(
));
updateDeviceConfigurations
();
connect
(
&
MaemoDeviceConfigurations
::
instance
(),
SIGNAL
(
updated
()),
this
,
...
...
src/plugins/qt4projectmanager/qt-maemo/maemorunfactories.cpp
View file @
1430358d
...
...
@@ -49,7 +49,7 @@ using namespace ProjectExplorer;
namespace
{
QString
target
FromId
(
const
QString
&
id
)
QString
path
FromId
(
const
QString
&
id
)
{
if
(
!
id
.
startsWith
(
MAEMO_RC_ID_PREFIX
))
return
QString
();
...
...
@@ -75,7 +75,7 @@ bool MaemoRunConfigurationFactory::canCreate(Target *parent,
||
target
->
id
()
!=
QLatin1String
(
Constants
::
MAEMO_DEVICE_TARGET_ID
))
{
return
false
;
}
return
id
==
MAEMO_RC_ID
||
id
.
startsWith
(
MAEMO_RC_ID_PREFIX
);
return
target
->
qt4Project
()
->
hasApplicationProFile
(
pathFromId
(
id
)
);
}
bool
MaemoRunConfigurationFactory
::
canRestore
(
Target
*
parent
,
...
...
@@ -103,8 +103,7 @@ QStringList MaemoRunConfigurationFactory::availableCreationIds(Target *parent) c
QString
MaemoRunConfigurationFactory
::
displayNameForId
(
const
QString
&
id
)
const
{
Q_UNUSED
(
id
)
return
tr
(
"New Maemo Run Configuration"
);
return
QFileInfo
(
pathFromId
(
id
)).
completeBaseName
();
}
RunConfiguration
*
MaemoRunConfigurationFactory
::
create
(
Target
*
parent
,
...
...
@@ -113,7 +112,7 @@ RunConfiguration *MaemoRunConfigurationFactory::create(Target *parent,
if
(
!
canCreate
(
parent
,
id
))
return
0
;
Qt4Target
*
pqt4parent
=
static_cast
<
Qt4Target
*>
(
parent
);
return
new
MaemoRunConfiguration
(
pqt4parent
,
target
FromId
(
id
));
return
new
MaemoRunConfiguration
(
pqt4parent
,
path
FromId
(
id
));
}
...
...
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