author | cgandhi |
Mon, 11 Oct 2010 21:59:54 +0530 | |
changeset 26 | 83d6a149c755 |
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 |