Changeset View
Changeset View
Standalone View
Standalone View
effects/cube/cube.h
Show All 35 Lines | |||||
36 | class CubeEffect | 36 | class CubeEffect | ||
37 | : public Effect | 37 | : public Effect | ||
38 | { | 38 | { | ||
39 | Q_OBJECT | 39 | Q_OBJECT | ||
40 | Q_PROPERTY(qreal cubeOpacity READ configuredCubeOpacity) | 40 | Q_PROPERTY(qreal cubeOpacity READ configuredCubeOpacity) | ||
41 | Q_PROPERTY(bool opacityDesktopOnly READ isOpacityDesktopOnly) | 41 | Q_PROPERTY(bool opacityDesktopOnly READ isOpacityDesktopOnly) | ||
42 | Q_PROPERTY(bool displayDesktopName READ isDisplayDesktopName) | 42 | Q_PROPERTY(bool displayDesktopName READ isDisplayDesktopName) | ||
43 | Q_PROPERTY(bool reflection READ isReflection) | 43 | Q_PROPERTY(bool reflection READ isReflection) | ||
44 | Q_PROPERTY(std::chrono::milliseconds rotationDuration READ configuredRotationDuration) | 44 | Q_PROPERTY(int rotationDuration READ configuredRotationDuration) | ||
45 | Q_PROPERTY(QColor backgroundColor READ configuredBackgroundColor) | 45 | Q_PROPERTY(QColor backgroundColor READ configuredBackgroundColor) | ||
46 | Q_PROPERTY(QColor capColor READ configuredCapColor) | 46 | Q_PROPERTY(QColor capColor READ configuredCapColor) | ||
47 | Q_PROPERTY(bool paintCaps READ isPaintCaps) | 47 | Q_PROPERTY(bool paintCaps READ isPaintCaps) | ||
48 | Q_PROPERTY(bool closeOnMouseRelease READ isCloseOnMouseRelease) | 48 | Q_PROPERTY(bool closeOnMouseRelease READ isCloseOnMouseRelease) | ||
49 | Q_PROPERTY(qreal zPosition READ configuredZPosition) | 49 | Q_PROPERTY(qreal zPosition READ configuredZPosition) | ||
50 | Q_PROPERTY(bool useForTabBox READ isUseForTabBox) | 50 | Q_PROPERTY(bool useForTabBox READ isUseForTabBox) | ||
51 | Q_PROPERTY(bool invertKeys READ isInvertKeys) | 51 | Q_PROPERTY(bool invertKeys READ isInvertKeys) | ||
52 | Q_PROPERTY(bool invertMouse READ isInvertMouse) | 52 | Q_PROPERTY(bool invertMouse READ isInvertMouse) | ||
Show All 34 Lines | 86 | bool isOpacityDesktopOnly() const { | |||
87 | return opacityDesktopOnly; | 87 | return opacityDesktopOnly; | ||
88 | } | 88 | } | ||
89 | bool isDisplayDesktopName() const { | 89 | bool isDisplayDesktopName() const { | ||
90 | return displayDesktopName; | 90 | return displayDesktopName; | ||
91 | } | 91 | } | ||
92 | bool isReflection() const { | 92 | bool isReflection() const { | ||
93 | return reflection; | 93 | return reflection; | ||
94 | } | 94 | } | ||
95 | std::chrono::milliseconds configuredRotationDuration() const { | 95 | int configuredRotationDuration() const { | ||
96 | return rotationDuration; | 96 | return rotationDuration.count(); | ||
97 | } | 97 | } | ||
98 | QColor configuredBackgroundColor() const { | 98 | QColor configuredBackgroundColor() const { | ||
99 | return backgroundColor; | 99 | return backgroundColor; | ||
100 | } | 100 | } | ||
101 | QColor configuredCapColor() const { | 101 | QColor configuredCapColor() const { | ||
102 | return capColor; | 102 | return capColor; | ||
103 | } | 103 | } | ||
104 | bool isPaintCaps() const { | 104 | bool isPaintCaps() const { | ||
▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines |