summaryrefslogtreecommitdiffstats
path: root/examples/multimediawidgets/videographicsitem/videoplayer.h
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2017-09-19 09:21:20 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2017-09-28 08:39:17 +0000
commit61b0771e832cad41c726995aafd7bea705909bdd (patch)
tree3015e04670610bb1755bb4676d7349c04ed5f572 /examples/multimediawidgets/videographicsitem/videoplayer.h
parent35a57a4af6700f5f483449f61686f14a601c1a51 (diff)
Modernize the Video Graphics Item example
Changed initialization style, nullptr Cleanup. Task-number: QTBUG-60627 Change-Id: Ic6048274394fca4b0f595e96ace23bdd5096ddda Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'examples/multimediawidgets/videographicsitem/videoplayer.h')
-rw-r--r--examples/multimediawidgets/videographicsitem/videoplayer.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/multimediawidgets/videographicsitem/videoplayer.h b/examples/multimediawidgets/videographicsitem/videoplayer.h
index ffccc9a9..cc2626ca 100644
--- a/examples/multimediawidgets/videographicsitem/videoplayer.h
+++ b/examples/multimediawidgets/videographicsitem/videoplayer.h
@@ -42,7 +42,6 @@
#define VIDEOPLAYER_H
#include <QMediaPlayer>
-#include <QMovie>
#include <QWidget>
QT_BEGIN_NAMESPACE
@@ -56,7 +55,7 @@ class VideoPlayer : public QWidget
Q_OBJECT
public:
- VideoPlayer(QWidget *parent = 0);
+ VideoPlayer(QWidget *parent = nullptr);
~VideoPlayer();
void load(const QUrl &url);
@@ -76,10 +75,10 @@ private slots:
void rotateVideo(int angle);
private:
- QMediaPlayer mediaPlayer;
- QGraphicsVideoItem *videoItem;
- QAbstractButton *playButton;
- QSlider *positionSlider;
+ QMediaPlayer *m_mediaPlayer = nullptr;
+ QGraphicsVideoItem *m_videoItem = nullptr;
+ QAbstractButton *m_playButton = nullptr;
+ QSlider *m_positionSlider = nullptr;
};
#endif