From 26da2f9c144799264e2d36bf2988ba8bc404ee11 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 30 Oct 2009 16:08:15 +0000 Subject: added skinned cursors (patch by Erik Ölsar) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1338 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/display.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/ui/display.cpp') 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(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) -- cgit v1.2.3-13-gbd6f