a couple of enums more
This commit is contained in:
parent
381b78163e
commit
049a79a0f6
@ -19,11 +19,6 @@
|
||||
|
||||
#include "enums.h"
|
||||
|
||||
DialogStatus::DialogStatus(QObject *parent)
|
||||
:QObject(parent)
|
||||
{}
|
||||
|
||||
DialogStatus::~DialogStatus()
|
||||
{}
|
||||
|
||||
#include "enums.moc"
|
||||
|
@ -30,8 +30,6 @@ class DialogStatus : public QObject
|
||||
Q_ENUMS(Status)
|
||||
|
||||
public:
|
||||
DialogStatus(QObject *parent=0);
|
||||
~DialogStatus();
|
||||
enum Status {
|
||||
Opening,
|
||||
Open,
|
||||
@ -40,4 +38,34 @@ public:
|
||||
};
|
||||
};
|
||||
|
||||
class PageOrientation : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_ENUMS(Orientation)
|
||||
|
||||
public:
|
||||
enum Orientation {
|
||||
Automatic,
|
||||
LockPortrait,
|
||||
LockLandscape,
|
||||
LockPrevious,
|
||||
Manual
|
||||
};
|
||||
};
|
||||
|
||||
class PageStatus : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_ENUMS(Status)
|
||||
|
||||
public:
|
||||
enum Status {
|
||||
Inactive,
|
||||
Activating,
|
||||
Active,
|
||||
Deactivating
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
#endif // ENUMS_H
|
||||
|
@ -36,6 +36,8 @@ void PlasmaComponentsPlugin::registerTypes(const char *uri)
|
||||
qmlRegisterType<Plasma::QRangeModel>(uri, 0, 1, "RangeModel");
|
||||
|
||||
qmlRegisterUncreatableType<DialogStatus>(uri, 0, 1, "DialogStatus", "");
|
||||
qmlRegisterUncreatableType<PageOrientation>(uri, 0, 1, "PageOrientation", "");
|
||||
qmlRegisterUncreatableType<PageStatus>(uri, 0, 1, "PageStatus", "");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user