QTfrontend/hwform.cpp
changeset 6477 ad5741c252b9
parent 6476 afb7ef0c1c6e
child 6525 6c97379c584b
equal deleted inserted replaced
6476:afb7ef0c1c6e 6477:ad5741c252b9
    80 #include "input_ip.h"
    80 #include "input_ip.h"
    81 #include "ammoSchemeModel.h"
    81 #include "ammoSchemeModel.h"
    82 #include "bgwidget.h"
    82 #include "bgwidget.h"
    83 #include "xfire.h"
    83 #include "xfire.h"
    84 #include "drawmapwidget.h"
    84 #include "drawmapwidget.h"
       
    85 #include "mouseoverfilter.h"
    85 
    86 
    86 #include "HWDataManager.h"
    87 #include "HWDataManager.h"
    87 
    88 
    88 #ifdef __APPLE__
    89 #ifdef __APPLE__
    89 #include "M3Panel.h"
    90 #include "M3Panel.h"
   278        wBackground = new BGWidget(this);
   279        wBackground = new BGWidget(this);
   279        wBackground->setFixedSize(this->width(), this->height());
   280        wBackground->setFixedSize(this->width(), this->height());
   280        wBackground->lower();
   281        wBackground->lower();
   281        wBackground->init();
   282        wBackground->init();
   282        wBackground->startAnimation();
   283        wBackground->startAnimation();
       
   284     }
       
   285 
       
   286     //Install all eventFilters :
       
   287 
       
   288     MouseOverFilter *filter = new MouseOverFilter();
       
   289     filter->setUi(&ui);
       
   290 
       
   291     QList<QWidget *> widgets;
       
   292 
       
   293     for (int i=0; i < ui.Pages->count(); i++)
       
   294     {
       
   295         widgets = ui.Pages->widget(i)->findChildren<QWidget *>();
       
   296 
       
   297         for (int i=0; i < widgets.size(); i++)
       
   298         {
       
   299             widgets.at(i)->installEventFilter(filter);
       
   300         }
   283     }
   301     }
   284 
   302 
   285     PagesStack.push(ID_PAGE_MAIN);
   303     PagesStack.push(ID_PAGE_MAIN);
   286     GoBack();
   304     GoBack();
   287 }
   305 }