Use a qobject_cast instead of a dynamic_cast.

This commit is contained in:
Matthias Fuchs 2011-07-28 18:13:33 +02:00
parent d5d5ba688f
commit db3b17abf2

View File

@ -524,7 +524,7 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::Alig
pos = v->mapToGlobal(pos);
//kDebug() << "==> position is" << actualItem->scenePos() << v->mapFromScene(actualItem->scenePos()) << pos;
const Plasma::View *pv = dynamic_cast<const Plasma::View *>(v);
const Plasma::View *pv = qobject_cast<const Plasma::View *>(v);
Plasma::Location loc = Floating;
if (pv && pv->containment()) {