Polish the QtWidgets/Player example.

Point the file dialog to the Movies folder.
Add command proper command line handling.
Change the logic to use QUrl everywhere.

Change-Id: I1e54e600187153f52a55e3a381a24e4f2eeda3ab
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
This commit is contained in:
Friedemann Kleint
2016-03-01 14:58:18 +01:00
parent 1816f89b6f
commit 787211c1d2
3 changed files with 56 additions and 24 deletions

View File

@@ -69,6 +69,10 @@ public:
Player(QWidget *parent = 0);
~Player();
bool isPlayerAvailable() const;
void addToPlaylist(const QList<QUrl> urls);
signals:
void fullScreenChanged(bool fullScreen);
@@ -93,7 +97,6 @@ private slots:
#ifndef PLAYER_NO_COLOROPTIONS
void showColorDialog();
#endif
void addToPlaylist(const QStringList &fileNames);
private:
void setTrackInfo(const QString &info);