QTfrontend/hwform.cpp
changeset 6477 ad5741c252b9
parent 6476 afb7ef0c1c6e
child 6525 6c97379c584b
--- a/QTfrontend/hwform.cpp	Sat Dec 03 12:00:32 2011 +0100
+++ b/QTfrontend/hwform.cpp	Sat Dec 03 14:36:36 2011 +0100
@@ -82,6 +82,7 @@
 #include "bgwidget.h"
 #include "xfire.h"
 #include "drawmapwidget.h"
+#include "mouseoverfilter.h"
 
 #include "HWDataManager.h"
 
@@ -282,6 +283,23 @@
        wBackground->startAnimation();
     }
 
+    //Install all eventFilters :
+
+    MouseOverFilter *filter = new MouseOverFilter();
+    filter->setUi(&ui);
+
+    QList<QWidget *> widgets;
+
+    for (int i=0; i < ui.Pages->count(); i++)
+    {
+        widgets = ui.Pages->widget(i)->findChildren<QWidget *>();
+
+        for (int i=0; i < widgets.size(); i++)
+        {
+            widgets.at(i)->installEventFilter(filter);
+        }
+    }
+
     PagesStack.push(ID_PAGE_MAIN);
     GoBack();
 }