Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
29091cf8
Commit
29091cf8
authored
Aug 23, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--fake-mobile command line support
parent
65aa662a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
QGCApplication.cc
src/QGCApplication.cc
+2
-0
QGCApplication.h
src/QGCApplication.h
+5
-0
ScreenToolsController.h
src/QmlControls/ScreenToolsController.h
+1
-1
No files found.
src/QGCApplication.cc
View file @
29091cf8
...
...
@@ -160,6 +160,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
,
_runningUnitTests
(
unitTesting
)
,
_styleIsDark
(
true
)
,
_pMavManager
(
NULL
)
,
_fakeMobile
(
false
)
{
Q_ASSERT
(
_app
==
NULL
);
_app
=
this
;
...
...
@@ -177,6 +178,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
CmdLineOpt_t
rgCmdLineOptions
[]
=
{
{
"--clear-settings"
,
&
fClearSettingsOptions
,
QString
()
},
{
"--full-logging"
,
&
fullLogging
,
QString
()
},
{
"--fake-mobile"
,
&
_fakeMobile
,
QString
()
},
// Add additional command line option flags here
};
...
...
src/QGCApplication.h
View file @
29091cf8
...
...
@@ -110,6 +110,9 @@ public:
/// Show a non-modal message to the user
void
showToolBarMessage
(
const
QString
&
message
);
/// @return true: Fake ui into showing mobile interface
bool
fakeMobile
(
void
)
{
return
_fakeMobile
;
}
public
slots
:
/// You can connect to this slot to show an information message box from a different thread.
void
informationMessageBoxOnMainThread
(
const
QString
&
title
,
const
QString
&
msg
);
...
...
@@ -178,6 +181,8 @@ private:
QStringList
_missingParams
;
///< List of missing facts to be displayed
MavManager
*
_pMavManager
;
bool
_fakeMobile
;
///< true: Fake ui into displaying mobile interface
/// Unit Test have access to creating and destroying singletons
friend
class
UnitTest
;
};
...
...
src/QmlControls/ScreenToolsController.h
View file @
29091cf8
...
...
@@ -110,7 +110,7 @@ public:
#else
bool
isAndroid
()
{
return
false
;
}
bool
isiOS
()
{
return
false
;
}
bool
isMobile
()
{
return
false
;
}
bool
isMobile
()
{
return
qgcApp
()
->
fakeMobile
()
;
}
#endif
signals:
...
...
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