瀏覽代碼

Fix getAbsolutePosition() providing position for hosted app

Ivo Wolf 12 年之前
父節點
當前提交
d627374598
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Plugins/org.commontk.dah.examplehost/ctkHostedAppPlaceholderWidget.cpp

+ 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);