aboutsummaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/display.cpp5
-rw-r--r--src/ui/togglebutton.h2
2 files changed, 6 insertions, 1 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)));
}
diff --git a/src/ui/togglebutton.h b/src/ui/togglebutton.h
index a15d7476f..0071e0321 100644
--- a/src/ui/togglebutton.h
+++ b/src/ui/togglebutton.h
@@ -36,12 +36,12 @@ public:
~ToggleButton();
bool isChecked();
- void setON(bool);
signals:
void clicked(bool);
public slots:
+ void setON(bool);
void click();
private slots: