Lot of fixes for everything.

This commit is contained in:
Tobias Rundstrom 2006-02-21 00:29:28 -03:00
parent bdb2d70683
commit d356989d5e
18 changed files with 253 additions and 47 deletions

View file

@ -2,6 +2,11 @@
#include "MainWindow.h"
#include "Button.h"
Button::Button (QWidget *parent) : PixWidget (parent)
{
m_name_normal = 0;
m_name_pressed = 0;
}
Button::Button (QWidget *parent, uint normal, uint pressed) : PixWidget (parent)
{
@ -9,6 +14,7 @@ Button::Button (QWidget *parent, uint normal, uint pressed) : PixWidget (parent)
m_name_pressed = pressed;
m_diffx = 0;
m_diffy = 0;
m_nodrag = false;
}
Button::~Button ()
@ -18,6 +24,10 @@ Button::~Button ()
void
Button::setPixmaps(Skin *skin)
{
if (!m_name_normal && !m_name_pressed) {
return;
}
m_pixmap_normal = skin->getItem (m_name_normal);
m_pixmap_pressed = skin->getItem (m_name_pressed);
m_pixmap = m_pixmap_normal;