Преглед на файлове

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