example/DemoGUI/ScreenSize.h
author cgandhi
Mon, 11 Oct 2010 21:59:54 +0530
changeset 26 83d6a149c755
parent 16 b78fa4cdbf2b
permissions -rw-r--r--
Submitting following changes - AuthApps for Last.fm and Twitter added API for checking ServiceAuthorization added for SMFCredMgrClient API added for forcefully removing credential details from SMFCredMgr Extra argument checks in SMfClient APIs APIs for service login and logout from SMFClient Redundant members removed from SmfServerSymbian DSM bug fixes Test Apps included
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