diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-12-21 09:56:05 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-12-21 09:56:05 +0000 |
| commit | ac7a7dffc31afe8a20a51db4ab7749bf4fdea67c (patch) | |
| tree | 3640dfe17870fb743463b852b257ffaf9a117bb4 /src/ui/display.cpp | |
| parent | ae5bd442b79d44b0925e0f9b0e77c3ed74483838 (diff) | |
| download | qmmp-ac7a7dffc31afe8a20a51db4ab7749bf4fdea67c.tar.gz qmmp-ac7a7dffc31afe8a20a51db4ab7749bf4fdea67c.tar.bz2 qmmp-ac7a7dffc31afe8a20a51db4ab7749bf4fdea67c.zip | |
more mpris methods support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@697 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/display.cpp')
| -rw-r--r-- | src/ui/display.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/display.cpp b/src/ui/display.cpp index 74c946fd3..13a85989e 100644 --- a/src/ui/display.cpp +++ b/src/ui/display.cpp @@ -26,6 +26,8 @@ #include <qmmp/output.h> #include <qmmp/soundcore.h> +#include <qmmpui/mediaplayer.h> +#include <qmmpui/playlistmodel.h> #include "skin.h" #include "mainvisual.h" #include "button.h" @@ -146,6 +148,9 @@ MainDisplay::MainDisplay (QWidget *parent) connect(m_core, SIGNAL(channelsChanged(int)), m_monoster, SLOT(setChannels(int))); connect(m_core, SIGNAL(stateChanged(Qmmp::State)), SLOT(setState(Qmmp::State))); connect(m_core, SIGNAL(volumeChanged(int,int)), SLOT(setVolume(int, int))); + PlayListModel *model = MediaPlayer::instance()->playListModel(); + connect(model, SIGNAL(repeatableListChanged(bool)), m_repeatButton, SLOT(setON(bool))); + connect(model, SIGNAL(shuffleChanged(bool)), m_shuffleButton, SLOT(setON(bool))); } |
