diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-10-30 16:08:15 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-10-30 16:08:15 +0000 |
| commit | 26da2f9c144799264e2d36bf2988ba8bc404ee11 (patch) | |
| tree | c6ab7d37db77037ac95a28c34e7eb517edcb43ca /src/ui/display.cpp | |
| parent | 6f72ae7e3e61b330dd1874a951b258075649fe8e (diff) | |
| download | qmmp-26da2f9c144799264e2d36bf2988ba8bc404ee11.tar.gz qmmp-26da2f9c144799264e2d36bf2988ba8bc404ee11.tar.bz2 qmmp-26da2f9c144799264e2d36bf2988ba8bc404ee11.zip | |
added skinned cursors (patch by Erik Ölsar)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1338 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/display.cpp')
| -rw-r--r-- | src/ui/display.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/ui/display.cpp b/src/ui/display.cpp index 9b035733d..b2d9f3f9c 100644 --- a/src/ui/display.cpp +++ b/src/ui/display.cpp @@ -51,32 +51,33 @@ MainDisplay::MainDisplay (QWidget *parent) { m_skin = Skin::getPointer(); setPixmap (m_skin->getMain()); + setCursor(m_skin->getCursor(Skin::CUR_NORMAL)); setMaximumSize (QSize (275,116)); setMinimumSize (QSize (275,116)); m_mw = qobject_cast<MainWindow*>(parent); - Button *previous = new Button (this, Skin::BT_PREVIOUS_N, Skin::BT_PREVIOUS_P); + Button *previous = new Button (this, Skin::BT_PREVIOUS_N, Skin::BT_PREVIOUS_P, Skin::CUR_NORMAL); previous->move (16, 88); previous->setToolTip(tr("Previous")); connect (previous,SIGNAL (clicked()), parent, SLOT (previous())); - Button *play = new Button (this, Skin::BT_PLAY_N, Skin::BT_PLAY_P); + Button *play = new Button (this, Skin::BT_PLAY_N, Skin::BT_PLAY_P, Skin::CUR_NORMAL); play->move (39, 88); play->setToolTip(tr("Play")); connect (play,SIGNAL (clicked()),parent,SLOT (play())); - Button *pause = new Button (this, Skin::BT_PAUSE_N,Skin::BT_PAUSE_P); + Button *pause = new Button (this, Skin::BT_PAUSE_N,Skin::BT_PAUSE_P, Skin::CUR_NORMAL); pause->move (62, 88); pause->setToolTip(tr("Pause")); connect (pause,SIGNAL (clicked()),parent,SLOT (pause())); - Button *stop = new Button (this, Skin::BT_STOP_N,Skin::BT_STOP_P); + Button *stop = new Button (this, Skin::BT_STOP_N,Skin::BT_STOP_P, Skin::CUR_NORMAL); stop->move (85, 88); stop->setToolTip(tr("Stop")); connect (stop,SIGNAL (clicked()),parent,SLOT (stop())); - Button *next = new Button (this, Skin::BT_NEXT_N,Skin::BT_NEXT_P); + Button *next = new Button (this, Skin::BT_NEXT_N,Skin::BT_NEXT_P, Skin::CUR_NORMAL); next->move (108, 88); next->setToolTip(tr("Next")); connect (next,SIGNAL (clicked()),parent,SLOT (next())); - Button *eject = new Button (this, Skin::BT_EJECT_N,Skin::BT_EJECT_P); + Button *eject = new Button (this, Skin::BT_EJECT_N,Skin::BT_EJECT_P, Skin::CUR_NORMAL); eject->move (136, 89); eject->setToolTip(tr("Add file")); connect (eject,SIGNAL (clicked()),parent,SLOT (addFile())); @@ -222,6 +223,7 @@ void MainDisplay::setVolume(int left, int right) void MainDisplay::updateSkin() { setPixmap (m_skin->getMain()); + setCursor(m_skin->getCursor(Skin::CUR_NORMAL)); } void MainDisplay::setSampleRate(quint32 rate) |
