Use a qobject_cast instead of a dynamic_cast.
(cherry picked from commit f93aa997b1de14f76b6e1c8862992d590b77e776)
This commit is contained in:
parent
25869b4e9d
commit
d2c63bfdcd
@ -524,7 +524,7 @@ QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::Alig
|
|||||||
|
|
||||||
pos = v->mapToGlobal(pos);
|
pos = v->mapToGlobal(pos);
|
||||||
//kDebug() << "==> position is" << actualItem->scenePos() << v->mapFromScene(actualItem->scenePos()) << 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;
|
Plasma::Location loc = Floating;
|
||||||
if (pv && pv->containment()) {
|
if (pv && pv->containment()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user