Skip to content

Commit

Permalink
The use of “MEMBER” prevents (simple) access from c++.
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmaphobic committed Jun 5, 2017
1 parent 4f66ff6 commit 0b923ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/FlightDisplay/VideoManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class VideoManager : public QGCTool
Q_PROPERTY(QString videoSourceID READ videoSourceID NOTIFY videoSourceIDChanged)
Q_PROPERTY(bool videoRunning READ videoRunning NOTIFY videoRunningChanged)
Q_PROPERTY(bool uvcEnabled READ uvcEnabled CONSTANT)
Q_PROPERTY(VideoSurface* videoSurface MEMBER _videoSurface CONSTANT)
Q_PROPERTY(VideoReceiver* videoReceiver MEMBER _videoReceiver CONSTANT)
Q_PROPERTY(VideoSurface* videoSurface READ videoSurface CONSTANT)
Q_PROPERTY(VideoReceiver* videoReceiver READ videoReceiver CONSTANT)
Q_PROPERTY(QString imageFile READ imageFile NOTIFY imageFileChanged)
Q_PROPERTY(bool showFullScreen READ showFullScreen WRITE setShowFullScreen NOTIFY showFullScreenChanged)

Expand All @@ -49,6 +49,9 @@ class VideoManager : public QGCTool
QString imageFile () { return _imageFile; }
bool showFullScreen () { return _showFullScreen; }

VideoSurface* videoSurface () { return _videoSurface; }
VideoReceiver* videoReceiver () { return _videoReceiver; }

#if defined(QGC_DISABLE_UVC)
bool uvcEnabled () { return false; }
#else
Expand Down

0 comments on commit 0b923ca

Please sign in to comment.