Skin class now emits a signal when a skin has (hopefully) been loaded.

Widgets interested in such events handle the signal and update their
pixmaps accordingly.
This commit is contained in:
Daniel Svensson 2006-02-18 04:15:45 +01:00
parent 1b1cf78647
commit 9fb1376afe
15 changed files with 391 additions and 273 deletions

View file

@ -1,9 +1,17 @@
#include "Display.h"
#include "MainWindow.h"
SkinDisplay::SkinDisplay (QWidget *parent) : QWidget(parent)
{
m_noDrag = false;
m_mw = parent;
connect(((MainWindow *)m_mw)->getSkin(), SIGNAL(skinChanged(Skin *)), this, SLOT(setPixmaps(Skin *)));
}
void
SkinDisplay::setPixmaps (Skin *skin)
{
}
void