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
1ecef04a
Unverified
Commit
1ecef04a
authored
Oct 24, 2018
by
Don Gagne
Committed by
GitHub
Oct 24, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6932 from patrickelectric/better_enum
Move from Q_ENUMS to Q_ENUM
parents
69643251
7a7b7cfb
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
25 additions
and
26 deletions
+25
-26
RadioComponentController.h
src/AutoPilotPlugins/Common/RadioComponentController.h
+3
-3
QGCCameraControl.h
src/Camera/QGCCameraControl.h
+4
-4
CameraSection.h
src/MissionManager/CameraSection.h
+2
-2
QGCPalette.h
src/QGCPalette.h
+1
-2
QGCMapEngineManager.h
src/QtLocationPlugin/QMLControl/QGCMapEngineManager.h
+1
-1
qgeoserviceprovider.h
...Plugin/qtlocation/src/location/maps/qgeoserviceprovider.h
+1
-1
qgeoareamonitorsource.h
...Plugin/qtlocation/src/positioning/qgeoareamonitorsource.h
+1
-1
qgeopositioninfosource.h
...lugin/qtlocation/src/positioning/qgeopositioninfosource.h
+1
-1
qgeosatelliteinfosource.h
...ugin/qtlocation/src/positioning/qgeosatelliteinfosource.h
+1
-1
qgeoshape.h
src/QtLocationPlugin/qtlocation/src/positioning/qgeoshape.h
+1
-1
UnitsSettings.h
src/Settings/UnitsSettings.h
+4
-4
FirmwareUpgradeController.h
src/VehicleSetup/FirmwareUpgradeController.h
+3
-3
QGCOptions.h
src/api/QGCOptions.h
+1
-1
LinkConfiguration.h
src/comm/LinkConfiguration.h
+1
-1
No files found.
src/AutoPilotPlugins/Common/RadioComponentController.h
View file @
1ecef04a
...
...
@@ -68,14 +68,14 @@ public:
Q_PROPERTY
(
int
transmitterMode
READ
transmitterMode
WRITE
setTransmitterMode
NOTIFY
transmitterModeChanged
)
Q_PROPERTY
(
QString
imageHelp
MEMBER
_imageHelp
NOTIFY
imageHelpChanged
)
Q_ENUMS
(
BindModes
)
enum
BindModes
{
DSM2
,
DSMX7
,
DSMX8
};
Q_ENUM
(
BindModes
)
Q_INVOKABLE
void
spektrumBindMode
(
int
mode
);
Q_INVOKABLE
void
cancelButtonClicked
(
void
);
Q_INVOKABLE
void
skipButtonClicked
(
void
);
...
...
src/Camera/QGCCameraControl.h
View file @
1ecef04a
...
...
@@ -97,10 +97,10 @@ public:
PHOTO_CAPTURE_TIMELAPSE
,
};
Q_ENUM
S
(
CameraMode
)
Q_ENUM
S
(
VideoStatus
)
Q_ENUM
S
(
PhotoStatus
)
Q_ENUM
S
(
PhotoMode
)
Q_ENUM
(
CameraMode
)
Q_ENUM
(
VideoStatus
)
Q_ENUM
(
PhotoStatus
)
Q_ENUM
(
PhotoMode
)
Q_PROPERTY
(
int
version
READ
version
NOTIFY
infoChanged
)
Q_PROPERTY
(
QString
modelName
READ
modelName
NOTIFY
infoChanged
)
...
...
src/MissionManager/CameraSection.h
View file @
1ecef04a
...
...
@@ -33,8 +33,8 @@ public:
TakeVideo
,
StopTakingVideo
,
TakePhoto
};
Q_ENUM
S
(
CameraAction
)
};
Q_ENUM
(
CameraAction
)
Q_PROPERTY
(
bool
specifyGimbal
READ
specifyGimbal
WRITE
setSpecifyGimbal
NOTIFY
specifyGimbalChanged
)
Q_PROPERTY
(
Fact
*
gimbalPitch
READ
gimbalPitch
CONSTANT
)
...
...
src/QGCPalette.h
View file @
1ecef04a
...
...
@@ -54,8 +54,6 @@ class QGCPalette : public QObject
{
Q_OBJECT
Q_ENUMS
(
Theme
)
public:
enum
ColorGroup
{
ColorGroupDisabled
=
0
,
...
...
@@ -68,6 +66,7 @@ public:
Dark
,
cMaxTheme
};
Q_ENUM
(
Theme
)
typedef
QColor
PaletteColorInfo_t
[
cMaxTheme
][
cMaxColorGroup
];
...
...
src/QtLocationPlugin/QMLControl/QGCMapEngineManager.h
View file @
1ecef04a
...
...
@@ -35,7 +35,7 @@ public:
ActionExporting
,
ActionDone
,
};
Q_ENUM
S
(
ImportAction
)
Q_ENUM
(
ImportAction
)
Q_PROPERTY
(
int
tileX0
READ
tileX0
NOTIFY
tileX0Changed
)
Q_PROPERTY
(
int
tileX1
READ
tileX1
NOTIFY
tileX1Changed
)
...
...
src/QtLocationPlugin/qtlocation/src/location/maps/qgeoserviceprovider.h
View file @
1ecef04a
...
...
@@ -59,7 +59,7 @@ class QGeoServiceProviderPrivate;
class
Q_LOCATION_EXPORT
QGeoServiceProvider
:
public
QObject
{
Q_OBJECT
Q_ENUM
S
(
Error
)
Q_ENUM
(
Error
)
public:
enum
Error
{
NoError
,
...
...
src/QtLocationPlugin/qtlocation/src/positioning/qgeoareamonitorsource.h
View file @
1ecef04a
...
...
@@ -55,7 +55,7 @@ public:
UnknownSourceError
=
2
,
NoError
=
3
};
Q_ENUM
S
(
Error
)
Q_ENUM
(
Error
)
enum
AreaMonitorFeature
{
PersistentAreaMonitorFeature
=
0x00000001
,
...
...
src/QtLocationPlugin/qtlocation/src/positioning/qgeopositioninfosource.h
View file @
1ecef04a
...
...
@@ -54,7 +54,7 @@ public:
UnknownSourceError
=
2
,
NoError
=
3
};
Q_ENUM
S
(
Error
)
Q_ENUM
(
Error
)
enum
PositioningMethod
{
NoPositioningMethods
=
0x00000000
,
...
...
src/QtLocationPlugin/qtlocation/src/positioning/qgeosatelliteinfosource.h
View file @
1ecef04a
...
...
@@ -54,7 +54,7 @@ public:
NoError
=
2
,
UnknownSourceError
=
-
1
};
Q_ENUM
S
(
Error
)
Q_ENUM
(
Error
)
explicit
QGeoSatelliteInfoSource
(
QObject
*
parent
);
virtual
~
QGeoSatelliteInfoSource
();
...
...
src/QtLocationPlugin/qtlocation/src/positioning/qgeoshape.h
View file @
1ecef04a
...
...
@@ -48,7 +48,7 @@ class Q_POSITIONING_EXPORT QGeoShape
Q_PROPERTY
(
ShapeType
type
READ
type
)
Q_PROPERTY
(
bool
isValid
READ
isValid
)
Q_PROPERTY
(
bool
isEmpty
READ
isEmpty
)
Q_ENUM
S
(
ShapeType
)
Q_ENUM
(
ShapeType
)
public:
QGeoShape
();
...
...
src/Settings/UnitsSettings.h
View file @
1ecef04a
...
...
@@ -46,10 +46,10 @@ public:
TemperatureUnitsFarenheit
,
};
Q_ENUM
S
(
DistanceUnits
)
Q_ENUM
S
(
AreaUnits
)
Q_ENUM
S
(
SpeedUnits
)
Q_ENUM
S
(
TemperatureUnits
)
Q_ENUM
(
DistanceUnits
)
Q_ENUM
(
AreaUnits
)
Q_ENUM
(
SpeedUnits
)
Q_ENUM
(
TemperatureUnits
)
Q_PROPERTY
(
Fact
*
distanceUnits
READ
distanceUnits
CONSTANT
)
Q_PROPERTY
(
Fact
*
areaUnits
READ
areaUnits
CONSTANT
)
...
...
src/VehicleSetup/FirmwareUpgradeController.h
View file @
1ecef04a
...
...
@@ -67,9 +67,9 @@ public:
DefaultVehicleFirmware
}
FirmwareVehicleType_t
;
Q_ENUM
S
(
AutoPilotStackType_t
)
Q_ENUM
S
(
FirmwareType_t
)
Q_ENUM
S
(
FirmwareVehicleType_t
)
Q_ENUM
(
AutoPilotStackType_t
)
Q_ENUM
(
FirmwareType_t
)
Q_ENUM
(
FirmwareVehicleType_t
)
class
FirmwareIdentifier
{
...
...
src/api/QGCOptions.h
View file @
1ecef04a
...
...
@@ -146,7 +146,7 @@ public:
POS_CENTER_LEFT
,
POS_BOTTOM_LEFT
};
Q_ENUM
S
(
Pos
)
Q_ENUM
(
Pos
)
CustomInstrumentWidget
(
QObject
*
parent
=
NULL
);
Q_PROPERTY
(
QUrl
source
READ
source
CONSTANT
)
Q_PROPERTY
(
Pos
widgetPosition
READ
widgetPosition
NOTIFY
widgetPositionChanged
)
...
...
src/comm/LinkConfiguration.h
View file @
1ecef04a
...
...
@@ -19,7 +19,6 @@ class LinkInterface;
class
LinkConfiguration
:
public
QObject
{
Q_OBJECT
Q_ENUMS
(
LinkType
)
public:
LinkConfiguration
(
const
QString
&
name
);
...
...
@@ -63,6 +62,7 @@ public:
#endif
TypeLast
// Last type value (type >= TypeLast == invalid)
};
Q_ENUM
(
LinkType
)
/*!
*
...
...
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