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
b263cb96
Commit
b263cb96
authored
Nov 01, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restructure versioning info
parent
7f9bb2dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
18 deletions
+26
-18
QGCConfig.h
src/QGCConfig.h
+17
-14
QGCCore.cc
src/QGCCore.cc
+9
-4
No files found.
src/QGCConfig.h
View file @
b263cb96
...
...
@@ -12,24 +12,27 @@
// If you need to make an incompatible changes to stored settings, bump this version number
// up by 1. This will caused store settings to be cleared on next boot.
#define QGC_SETTINGS_VERSION
1
#define QGC_SETTINGS_VERSION
2
#define QGC_APPLICATION_NAME "QGroundControl"
#define QGC_APPLICATION_VERSION_BASE "v2.0.3"
#define QGC_ORG_NAME "QGroundControl.org"
#define QGC_ORG_DOMAIN "org.qgroundcontrol"
#
ifdef QGC_APPLICATION_VERSION_SUFFIX
#define QGC_APPLICATION_VERSION QGC_APPLICATION_VERSION_BASE QGC_APPLICATION_VERSION_SUFFIX
#else
#define QGC_APPLICATION_VERSION QGC_APPLICATION_VERSION_BASE " (Developer Build)"
#endif
#
define QGC_APPLICATION_VERSION_MAJOR 2
#define QGC_APPLICATION_VERSION_MINOR 1
// The following #definess can be overriden from the command line so that automated build systems can
// add additional build identification.
namespace
QGC
// Only comes from command line
//#define QGC_APPLICATION_VERSION_COMMIT "..."
{
const
QString
APPNAME
=
"QGROUNDCONTROL"
;
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
=
203
;
// 2.0.3
}
#ifndef QGC_APPLICATION_VERSION_BUILDNUMBER
#define QGC_APPLICATION_VERSION_BUILDNUMBER 0
#endif
#ifndef QGC_APPLICATION_VERSION_BUILDTYPE
#define QGC_APPLICATION_VERSION_BUILDTYPE "(Developer Build)"
#endif
#endif // QGC_CONFIGURATION_H
src/QGCCore.cc
View file @
b263cb96
...
...
@@ -72,11 +72,16 @@ QGCCore::QGCCore(int &argc, char* argv[]) :
QApplication
(
argc
,
argv
),
_mainWindow
(
NULL
)
{
// Set application
name
// Set application
information
this
->
setApplicationName
(
QGC_APPLICATION_NAME
);
this
->
setApplicationVersion
(
QGC_APPLICATION_VERSION
);
this
->
setOrganizationName
(
QGC
::
ORG_NAME
);
this
->
setOrganizationDomain
(
QGC
::
ORG_DOMAIN
);
this
->
setOrganizationName
(
QGC_ORG_NAME
);
this
->
setOrganizationDomain
(
QGC_ORG_DOMAIN
);
// Version string is build from component parts. Format is:
// vMajor.Minor.BuildNumber BuildType
QString
versionString
(
"v%1.%2.%3 %4"
);
versionString
=
versionString
.
arg
(
QGC_APPLICATION_VERSION_MAJOR
).
arg
(
QGC_APPLICATION_VERSION_MINOR
).
arg
(
QGC_APPLICATION_VERSION_BUILDNUMBER
).
arg
(
QGC_APPLICATION_VERSION_BUILDTYPE
);
this
->
setApplicationVersion
(
versionString
);
// Set settings format
QSettings
::
setDefaultFormat
(
QSettings
::
IniFormat
);
...
...
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