Browse Source

Fix getAbsolutePosition() providing position for hosted app

Ivo Wolf 12 years ago
parent
commit
d627374598

+ 2 - 2
Plugins/org.commontk.dah.examplehost/ctkHostedAppPlaceholderWidget.cpp

@@ -39,8 +39,8 @@ QRect ctkHostedAppPlaceholderWidget::getAbsolutePosition()
   int y = 0;
   do
     {
-    x = x + current->x();
-    y = y + current->y();
+    x = x + current->geometry().x();
+    y = y + current->geometry().y();
     current = dynamic_cast<QWidget*>(current->parent());
     }
   while (current);