Tests/DemoGUI/ScreenSize.h
changeset 26 83d6a149c755
equal deleted inserted replaced
25:a180113055cb 26:83d6a149c755
       
     1 #ifndef SCREENSIZE_H
       
     2 #define SCREENSIZE_H
       
     3 
       
     4 #include <qobject.h>
       
     5 #include <qrect.h>
       
     6 #include <qapplication.h>
       
     7 #include <qdesktopwidget.h>
       
     8 
       
     9 class ScreenSize : public QObject
       
    10 {
       
    11 public:
       
    12     inline static QRect GetScreenRect()
       
    13     {
       
    14         return   QApplication::desktop()->screenGeometry();
       
    15     }
       
    16 };
       
    17 
       
    18 #endif // SCREENSIZE_H