From bdb2d70683b77368a81c6512d5128d543c9cd86e Mon Sep 17 00:00:00 2001 From: Tobias Rundstrom Date: Mon, 20 Feb 2006 21:20:19 -0300 Subject: [PATCH] Use dynamic_cast<> as much as possible. --- Display.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Display.cpp b/Display.cpp index 59d5ffe..127205f 100644 --- a/Display.cpp +++ b/Display.cpp @@ -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(parent)->getSkin (), + SIGNAL (skinChanged (Skin *)), + this, + SLOT (setPixmaps (Skin *))); } void