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
Marco Bubke
flatpak-qt-creator
Commits
d5326f37
Commit
d5326f37
authored
Feb 03, 2010
by
Kai Koehne
Browse files
Pass library paths specified in .qmlproject file on to qmlviewer
parent
85773474
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmlprojectmanager/qmlproject.cpp
View file @
d5326f37
...
...
@@ -211,6 +211,14 @@ QStringList QmlProject::files() const
return
files
;
}
QStringList
QmlProject
::
libraryPaths
()
const
{
QStringList
libraryPaths
;
if
(
m_projectItem
)
libraryPaths
=
m_projectItem
.
data
()
->
libraryPaths
();
return
libraryPaths
;
}
void
QmlProject
::
refreshProjectFile
()
{
refresh
(
QmlProject
::
ProjectFile
|
Files
);
...
...
@@ -403,9 +411,18 @@ QStringList QmlRunConfiguration::viewerArguments() const
{
QStringList
args
;
// arguments in .user file
if
(
!
m_qmlViewerArgs
.
isEmpty
())
args
.
append
(
m_qmlViewerArgs
);
// arguments from .qmlproject file
if
(
qmlProject
())
{
foreach
(
const
QString
&
libraryPath
,
qmlProject
()
->
libraryPaths
())
{
args
.
append
(
QLatin1String
(
"-L"
));
args
.
append
(
libraryPath
);
}
}
const
QString
s
=
mainScript
();
if
(
!
s
.
isEmpty
())
args
.
append
(
s
);
...
...
@@ -642,7 +659,8 @@ void QmlRunControl::start()
{
m_applicationLauncher
.
start
(
ApplicationLauncher
::
Gui
,
m_executable
,
m_commandLineArguments
);
emit
started
();
emit
addToOutputWindow
(
this
,
tr
(
"Starting %1..."
).
arg
(
QDir
::
toNativeSeparators
(
m_executable
)));
emit
addToOutputWindow
(
this
,
tr
(
"Starting %1 %2"
).
arg
(
QDir
::
toNativeSeparators
(
m_executable
),
m_commandLineArguments
.
join
(
QLatin1String
(
" "
))));
}
void
QmlRunControl
::
stop
()
...
...
src/plugins/qmlprojectmanager/qmlproject.h
View file @
d5326f37
...
...
@@ -186,6 +186,7 @@ public:
QDir
projectDir
()
const
;
QStringList
files
()
const
;
QStringList
libraryPaths
()
const
;
private
slots
:
void
refreshProjectFile
();
...
...
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