Преглед изворни кода

Merge pull request #410 from NifTK/409-widgets-on-ctkPopupWidget-do-not-get-keyboard-focus

Active window flag transferred on RequestSoftwareInputPanel event
Jean-Christophe Fillion-Robin пре 12 година
родитељ
комит
338376eb3b
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      Libs/Widgets/ctkPopupWidget.cpp

+ 4 - 0
Libs/Widgets/ctkPopupWidget.cpp

@@ -138,6 +138,10 @@ bool ctkPopupWidgetPrivate::eventFilter(QObject* obj, QEvent* event)
     {
     QTimer::singleShot(0, this, SLOT(updateVisibility()));
     }
+  else if (event->type() == QEvent::RequestSoftwareInputPanel)
+    {
+    qApp->setActiveWindow(widget->window());
+    }
   return false;
 }