summaryrefslogtreecommitdiffstats
path: root/examples/multimediawidgets/videographicsitem/videoplayer.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2016-11-23 14:20:04 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2016-11-29 18:15:19 +0000
commit31ed506ea2c7a8be439d77e02ca0d67b6f9ce675 (patch)
tree217ae5b55772a0fb0073e5e1f43adbf74fd2244b /examples/multimediawidgets/videographicsitem/videoplayer.h
parent7f260c4f6993332fd53058193474d078ae0a453e (diff)
Polish the QtWidgets/videographicsitem example
Similar to 787211c1d2082874ea07be4c5987032221ee48fe: - Point the file dialog to the Movies folder. - Port to Qt 5 connection syntax. - Add command line handling. - Determine size according to screen size. Change-Id: I21b195a9241dbac332ce74168bd43f1d8c273091 Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
Diffstat (limited to 'examples/multimediawidgets/videographicsitem/videoplayer.h')
-rw-r--r--examples/multimediawidgets/videographicsitem/videoplayer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/multimediawidgets/videographicsitem/videoplayer.h b/examples/multimediawidgets/videographicsitem/videoplayer.h
index 9c67e1c7..914c5949 100644
--- a/examples/multimediawidgets/videographicsitem/videoplayer.h
+++ b/examples/multimediawidgets/videographicsitem/videoplayer.h
@@ -59,7 +59,10 @@ public:
VideoPlayer(QWidget *parent = 0);
~VideoPlayer();
- QSize sizeHint() const { return QSize(800, 600); }
+ void load(const QUrl &url);
+ bool isPlayerAvailable() const;
+
+ QSize sizeHint() const Q_DECL_OVERRIDE;
public slots:
void openFile();