assert on having a view before calling this ...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779305
This commit is contained in:
parent
507a6f02a0
commit
9c6dd4846b
@ -432,9 +432,12 @@ void Widget::managingLayoutChanged()
|
||||
|
||||
QPoint Widget::popupPosition(const QSize &s) const
|
||||
{
|
||||
QPoint pos = view()->mapFromScene(scenePos());
|
||||
pos = view()->mapToGlobal(pos);
|
||||
Plasma::View *pv = dynamic_cast<Plasma::View *>(view());
|
||||
QGraphicsView *v = view();
|
||||
Q_ASSERT(v);
|
||||
|
||||
QPoint pos = v->mapFromScene(scenePos());
|
||||
pos = v->mapToGlobal(pos);
|
||||
Plasma::View *pv = dynamic_cast<Plasma::View *>(v);
|
||||
|
||||
Plasma::Location loc = Floating;
|
||||
if (pv) {
|
||||
|
Loading…
Reference in New Issue
Block a user