You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
486 B
C++
28 lines
486 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QtQml/qqmlregistration.h>
|
|
|
|
class Output
|
|
{
|
|
Q_GADGET
|
|
|
|
public:
|
|
enum Rotation {
|
|
None = 1,
|
|
Left = 2,
|
|
Inverted = 4,
|
|
Right = 8
|
|
};
|
|
Q_ENUM(Rotation)
|
|
};
|
|
|
|
// A Q_GADGET registered directly would become a QML value type, and those have
|
|
// to be named in lowercase. Exposing it as a namespace keeps `Output.Left`.
|
|
namespace OutputEnums
|
|
{
|
|
Q_NAMESPACE
|
|
QML_FOREIGN_NAMESPACE(Output)
|
|
QML_NAMED_ELEMENT(Output)
|
|
}
|