Unity 8
OrientationLock Class Reference

The OrientationLock class exports orientation lock related properties to QML It has two properties: More...

#include <plugins/Unity/Session/orientationlock.h>

Inherits QObject.

Signals

void enabledChanged ()
 
void savedOrientationChanged ()
 

Public Member Functions

 OrientationLock (QObject *parent=0)
 
bool enabled () const
 
Qt::ScreenOrientation savedOrientation () const
 
void setSavedOrientation (const Qt::ScreenOrientation orientation)
 

Properties

bool enabled
 
Qt::ScreenOrientation savedOrientation
 

Detailed Description

The OrientationLock class exports orientation lock related properties to QML It has two properties:

  • readonly boolean with the Orientation lock property state
  • Qt::ScreenOrientation to save the locked orientation state across Sessions (only relevant if lock is true)

Definition at line 29 of file orientationlock.h.


The documentation for this class was generated from the following files: