author | cgandhi |
Thu, 05 Aug 2010 16:48:48 +0530 | |
changeset 18 | 013a02bf2bb0 |
parent 16 | b78fa4cdbf2b |
permissions | -rw-r--r-- |
16 | 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 |