Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
d5326f37
Commit
d5326f37
authored
15 years ago
by
Kai Koehne
Browse files
Options
Downloads
Patches
Plain Diff
Pass library paths specified in .qmlproject file on to qmlviewer
parent
85773474
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/qmlprojectmanager/qmlproject.cpp
+19
-1
19 additions, 1 deletion
src/plugins/qmlprojectmanager/qmlproject.cpp
src/plugins/qmlprojectmanager/qmlproject.h
+1
-0
1 addition, 0 deletions
src/plugins/qmlprojectmanager/qmlproject.h
with
20 additions
and
1 deletion
src/plugins/qmlprojectmanager/qmlproject.cpp
+
19
−
1
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
()
...
...
This diff is collapsed.
Click to expand it.
src/plugins/qmlprojectmanager/qmlproject.h
+
1
−
0
View file @
d5326f37
...
...
@@ -186,6 +186,7 @@ public:
QDir
projectDir
()
const
;
QStringList
files
()
const
;
QStringList
libraryPaths
()
const
;
private
slots
:
void
refreshProjectFile
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment