diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-10-18 17:18:43 +0100 |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-10-25 15:25:41 +0100 |
commit | ee6fa11d3a8eee89646e86bc1f7b43fe87ae0e0c (patch) | |
tree | 943e0bf94084e1bdf9dceb8b68cc69805a8d5efe /demos/qmediaplayer/mediaplayer.h | |
parent | 022884db790a7592fa017add4ea9669d8b5598ca (diff) | |
download | qt4-tools-ee6fa11d3a8eee89646e86bc1f7b43fe87ae0e0c.tar.gz |
qmediaplayer: added command-line switch for initial volume
Initial volume can be set using the following switch:
-volume <level>
where 0.0 <= level <= 1.0
Diffstat (limited to 'demos/qmediaplayer/mediaplayer.h')
-rw-r--r-- | demos/qmediaplayer/mediaplayer.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/demos/qmediaplayer/mediaplayer.h b/demos/qmediaplayer/mediaplayer.h index d6ae58ba0e..73450fe841 100644 --- a/demos/qmediaplayer/mediaplayer.h +++ b/demos/qmediaplayer/mediaplayer.h @@ -104,8 +104,7 @@ class MediaPlayer : { Q_OBJECT public: - MediaPlayer(const QString &, - const bool hasSmallScreen); + MediaPlayer(); void dragEnterEvent(QDragEnterEvent *e); void dragMoveEvent(QDragMoveEvent *e); @@ -115,6 +114,8 @@ public: void setLocation(const QString &location); void initVideoWindow(); void initSettingsDialog(); + void setVolume(qreal volume); + void setSmallScreen(bool smallScreen); public slots: void openFile(); @@ -171,7 +172,7 @@ private: Phonon::AudioOutput m_AudioOutput; MediaVideoWidget *m_videoWidget; Phonon::Path m_audioOutputPath; - const bool m_hasSmallScreen; + bool m_smallScreen; }; #endif //MEDIAPLAYER_H |