example/DemoGUI/ScreenSize.h
author cgandhi
Thu, 23 Sep 2010 17:15:03 +0530
changeset 23 574948b60dab
parent 16 b78fa4cdbf2b
permissions -rw-r--r--
updating the lastfm music plugins and adding the smfhelp.chm
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     1
#ifndef SCREENSIZE_H
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     2
#define SCREENSIZE_H
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     3
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     4
#include <qobject.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     5
#include <qrect.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     6
#include <qapplication.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     7
#include <qdesktopwidget.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     8
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     9
class ScreenSize : public QObject
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    10
{
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    11
public:
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    12
    inline static QRect GetScreenRect()
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    13
    {
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    14
        return   QApplication::desktop()->screenGeometry();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    15
    }
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    16
};
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    17
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    18
#endif // SCREENSIZE_H