diff --git a/scriptengines/javascript/simplebindings/appletinterface.h b/scriptengines/javascript/simplebindings/appletinterface.h index 5ebf88ca8..4c09e2014 100644 --- a/scriptengines/javascript/simplebindings/appletinterface.h +++ b/scriptengines/javascript/simplebindings/appletinterface.h @@ -56,6 +56,7 @@ class AppletInterface : public QObject Q_ENUMS(QtCorner) Q_ENUMS(QtSizePolicy) Q_ENUMS(QtAlignment) + Q_ENUMS(QtMouseButton) Q_ENUMS(AnimationDirection) Q_PROPERTY(AspectRatioMode aspectRatioMode READ aspectRatioMode WRITE setAspectRatioMode) Q_PROPERTY(FormFactor formFactor READ formFactor) @@ -168,6 +169,15 @@ enum QtAlignment { QtAlignVCenter = 0x0080 }; +enum QtMouseButton { + QtNoButton = Qt::NoButton, + QtLeftButton = Qt::LeftButton, + QtRightButton = Qt::RightButton, + QtMidButton = Qt::MidButton, + QtXButton1 = Qt::XButton1, + QtXButton2 = Qt::XButton2 +}; + enum QtScrollBarPolicy { QtScrollBarAsNeeded = Qt::ScrollBarAsNeeded, QtScrollBarAlwaysOff = Qt::ScrollBarAlwaysOff,