Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tobias Hunger
qt-creator
Commits
cc278a59
Commit
cc278a59
authored
Feb 02, 2010
by
Tobias Hunger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issues with maemorunconfiguration settings saving
parent
add018c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.cpp
...gins/qt4projectmanager/qt-maemo/maemorunconfiguration.cpp
+10
-7
No files found.
src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.cpp
View file @
cc278a59
...
...
@@ -84,13 +84,13 @@ QString targetToId(const QString &target)
}
// namespace
static
const
QLatin1String
ArgumentsKey
(
"Arguments"
);
static
const
QLatin1String
SimulatorPathKey
(
"Simulator"
);
static
const
QLatin1String
DeviceIdKey
(
"DeviceId"
);
static
const
QLatin1String
LastDeployedKey
(
"LastDeployed"
);
static
const
QLatin1String
ArgumentsKey
(
"
Qt4ProjectManager.MaemoRunConfiguration.
Arguments"
);
static
const
QLatin1String
SimulatorPathKey
(
"
Qt4ProjectManager.MaemoRunConfiguration.
Simulator"
);
static
const
QLatin1String
DeviceIdKey
(
"
Qt4ProjectManager.MaemoRunConfiguration.
DeviceId"
);
static
const
QLatin1String
LastDeployedKey
(
"
Qt4ProjectManager.MaemoRunConfiguration.
LastDeployed"
);
static
const
QLatin1String
DebuggingHelpersLastDeployedKey
(
"DebuggingHelpersLastDeployed"
);
static
const
QLatin1String
ProFileKey
(
"ProFile"
);
"
Qt4ProjectManager.MaemoRunConfiguration.
DebuggingHelpersLastDeployed"
);
static
const
QLatin1String
ProFileKey
(
"
Qt4ProjectManager.MaemoRunConfiguration.
ProFile"
);
namespace
Qt4ProjectManager
{
namespace
Internal
{
...
...
@@ -258,6 +258,9 @@ QVariantMap MaemoRunConfiguration::toMap() const
bool
MaemoRunConfiguration
::
fromMap
(
const
QVariantMap
&
map
)
{
if
(
!
RunConfiguration
::
fromMap
(
map
))
return
false
;
setDeviceConfig
(
MaemoDeviceConfigurations
::
instance
().
find
(
map
.
value
(
DeviceIdKey
,
0
).
toInt
()));
m_arguments
=
map
.
value
(
ArgumentsKey
).
toStringList
();
...
...
@@ -271,7 +274,7 @@ bool MaemoRunConfiguration::fromMap(const QVariantMap &map)
const
QDir
&
dir
=
QFileInfo
(
qt4Project
()
->
file
()
->
fileName
()).
absoluteDir
();
m_proFilePath
=
dir
.
filePath
(
map
.
value
(
ProFileKey
).
toString
());
return
RunConfiguration
::
fromMap
(
map
)
;
return
true
;
}
bool
MaemoRunConfiguration
::
currentlyNeedsDeployment
()
const
...
...
Write
Preview
Markdown
is supported
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