tools/qml/deviceorientation.h
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
child 37 758a864f9613
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    50 class DeviceOrientation : public QObject
    50 class DeviceOrientation : public QObject
    51 {
    51 {
    52     Q_OBJECT
    52     Q_OBJECT
    53     Q_ENUMS(Orientation)
    53     Q_ENUMS(Orientation)
    54 public:
    54 public:
    55     enum Orientation { UnknownOrientation, Portrait, Landscape };
    55     enum Orientation { 
       
    56         UnknownOrientation, 
       
    57         Portrait,
       
    58         Landscape,
       
    59         PortraitInverted,
       
    60         LandscapeInverted
       
    61     };
       
    62 
    56     virtual Orientation orientation() const = 0;
    63     virtual Orientation orientation() const = 0;
    57     virtual void setOrientation(Orientation) = 0;
    64     virtual void setOrientation(Orientation) = 0;
    58 
    65 
    59     static DeviceOrientation *instance();
    66     static DeviceOrientation *instance();
    60 
    67