Use dynamic_cast<> as much as possible.

This commit is contained in:
Tobias Rundstrom 2006-02-20 21:20:19 -03:00
parent 4548a1d6d3
commit bdb2d70683

View file

@ -6,7 +6,10 @@ SkinDisplay::SkinDisplay (QWidget *parent) : QWidget(parent)
m_noDrag = false;
m_mw = parent;
connect(((MainWindow *)m_mw)->getSkin(), SIGNAL(skinChanged(Skin *)), this, SLOT(setPixmaps(Skin *)));
connect (dynamic_cast<MainWindow *>(parent)->getSkin (),
SIGNAL (skinChanged (Skin *)),
this,
SLOT (setPixmaps (Skin *)));
}
void