ソースを参照

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