aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Ui/skinned/button.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-04-15 20:23:48 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-04-15 20:23:48 +0000
commit915fb430e960e5601de70002cd831477e33f8acf (patch)
treee3459d046efbb5231c16efc327019ec8a01b110a /src/plugins/Ui/skinned/button.cpp
parent143ecc15abe768b15071eaddfbda4efbdfb8555c (diff)
downloadqmmp-915fb430e960e5601de70002cd831477e33f8acf.tar.gz
qmmp-915fb430e960e5601de70002cd831477e33f8acf.tar.bz2
qmmp-915fb430e960e5601de70002cd831477e33f8acf.zip
refactoring
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8777 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/button.cpp')
-rw-r--r--src/plugins/Ui/skinned/button.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/plugins/Ui/skinned/button.cpp b/src/plugins/Ui/skinned/button.cpp
index d38346ad6..bb4b8b2e3 100644
--- a/src/plugins/Ui/skinned/button.cpp
+++ b/src/plugins/Ui/skinned/button.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2007-2012 by Ilya Kotov *
+ * Copyright (C) 2007-2019 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* Based on Promoe, an XMMS2 Client *
@@ -31,11 +31,10 @@ Button::Button (QWidget *parent, uint normal, uint pressed, uint cursor)
name_normal = normal;
name_pressed = pressed;
name_cursor = cursor;
- m_pressed = false;
- skin = Skin::instance();
+ m_skin = Skin::instance();
setON (false);
- setCursor (skin->getCursor (name_cursor));
- connect (skin, SIGNAL (skinChanged()), this, SLOT (updateSkin()));
+ setCursor (m_skin->getCursor (name_cursor));
+ connect (m_skin, SIGNAL (skinChanged()), this, SLOT (updateSkin()));
}
@@ -44,16 +43,16 @@ Button::~Button()
void Button::updateSkin()
{
- setPixmap (skin->getButton (name_normal));
- setCursor (skin->getCursor (name_cursor));
+ setPixmap (m_skin->getButton (name_normal));
+ setCursor (m_skin->getCursor (name_cursor));
}
void Button::setON (bool on)
{
if (on)
- setPixmap (skin->getButton (name_pressed));
+ setPixmap (m_skin->getButton (name_pressed));
else
- setPixmap (skin->getButton (name_normal));
+ setPixmap (m_skin->getButton (name_normal));
}
void Button::mousePressEvent (QMouseEvent *e)
{