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
Valentin Platzgummer
qgroundcontrol
Commits
34e3d1c8
Commit
34e3d1c8
authored
Sep 02, 2013
by
Lorenz Meier
Browse files
Merge branch 'config' of github.com:mavlink/qgroundcontrol into config
parents
33dde65d
734fbaf7
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/QGCCore.cc
View file @
34e3d1c8
...
...
@@ -77,8 +77,8 @@ QGCCore::QGCCore(bool firstStart, int &argc, char* argv[]) : QApplication(argc,
// Set application name
this
->
setApplicationName
(
QGC_APPLICATION_NAME
);
this
->
setApplicationVersion
(
QGC_APPLICATION_VERSION
);
this
->
setOrganizationName
(
Q
Latin1String
(
"diydrones"
)
);
this
->
setOrganizationDomain
(
"com.diydrones"
);
this
->
setOrganizationName
(
Q
GC
::
ORG_NAME
);
this
->
setOrganizationDomain
(
QGC
::
ORG_DOMAIN
);
// Set settings format
QSettings
::
setDefaultFormat
(
QSettings
::
IniFormat
);
...
...
src/comm/SerialLink.cc
View file @
34e3d1c8
...
...
@@ -106,7 +106,7 @@ QList<QString> SerialLink::getCurrentPorts()
void
SerialLink
::
loadSettings
()
{
// Load defaults from settings
QSettings
settings
(
QGC
::
COMPANY
NAME
,
QGC
::
APPNAME
);
QSettings
settings
(
QGC
::
ORG_
NAME
,
QGC
::
APPNAME
);
settings
.
sync
();
if
(
settings
.
contains
(
"SERIALLINK_COMM_PORT"
))
{
...
...
@@ -122,7 +122,7 @@ void SerialLink::loadSettings()
void
SerialLink
::
writeSettings
()
{
// Store settings
QSettings
settings
(
QGC
::
COMPANY
NAME
,
QGC
::
APPNAME
);
QSettings
settings
(
QGC
::
ORG_
NAME
,
QGC
::
APPNAME
);
settings
.
setValue
(
"SERIALLINK_COMM_PORT"
,
getPortName
());
settings
.
setValue
(
"SERIALLINK_COMM_BAUD"
,
getBaudRateType
());
settings
.
setValue
(
"SERIALLINK_COMM_PARITY"
,
getParityType
());
...
...
src/configuration.h
View file @
34e3d1c8
...
...
@@ -11,14 +11,15 @@
#define WITH_TEXT_TO_SPEECH 1
#define QGC_APPLICATION_NAME "QGroundControl"
#define QGC_APPLICATION_VERSION "v.
1.1.2
(beta)"
#define QGC_APPLICATION_VERSION "v.
2.0.0
(beta)"
namespace
QGC
{
const
QString
APPNAME
=
"QGROUNDCONTROL"
;
const
QString
COMPANYNAME
=
"QGROUNDCONTROL"
;
const
int
APPLICATIONVERSION
=
110
;
// 1.1.0
const
QString
ORG_NAME
=
"QGROUNDCONTROL.ORG"
;
//can be customized by forks to e.g. mycompany.com to maintain separate Settings for customized apps
const
QString
ORG_DOMAIN
=
"org.qgroundcontrol"
;
//can be customized by forks
const
int
APPLICATIONVERSION
=
200
;
// 2.0.0
}
#endif // QGC_CONFIGURATION_H
src/ui/configuration/terminalconsole.cpp
View file @
34e3d1c8
...
...
@@ -265,7 +265,7 @@ void TerminalConsole::setLink(int index)
void
TerminalConsole
::
loadSettings
()
{
// Load defaults from settings
QSettings
settings
(
QGC
::
COMPANY
NAME
,
QGC
::
APPNAME
);
QSettings
settings
(
QGC
::
ORG_
NAME
,
QGC
::
APPNAME
);
settings
.
sync
();
if
(
settings
.
contains
(
"TERMINALCONSOLE_COMM_PORT"
))
{
...
...
@@ -287,7 +287,7 @@ void TerminalConsole::loadSettings()
void
TerminalConsole
::
writeSettings
()
{
// Store settings
QSettings
settings
(
QGC
::
COMPANY
NAME
,
QGC
::
APPNAME
);
QSettings
settings
(
QGC
::
ORG_
NAME
,
QGC
::
APPNAME
);
settings
.
setValue
(
"TERMINALCONSOLE_COMM_PORT"
,
m_settings
.
name
);
settings
.
setValue
(
"TERMINALCONSOLE_COMM_BAUD"
,
m_settings
.
baudRate
);
settings
.
setValue
(
"TERMINALCONSOLE_COMM_PARITY"
,
m_settings
.
parity
);
...
...
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