diff --git a/scriptengines/javascript/appletinterface.h b/scriptengines/javascript/appletinterface.h index 832148478..ead99a27e 100644 --- a/scriptengines/javascript/appletinterface.h +++ b/scriptengines/javascript/appletinterface.h @@ -22,6 +22,7 @@ #define APPLETINTERFACE_H #include +#include #include #include @@ -45,6 +46,7 @@ class AppletInterface : public QObject Q_ENUMS(AspectRatioMode) Q_ENUMS(QtOrientation) Q_ENUMS(QtAnchorPoint) + Q_ENUMS(QtSizePolicy) Q_ENUMS(QtAlignment) Q_PROPERTY(QString activeConfig WRITE setActiveConfig READ activeConfig) Q_PROPERTY(bool busy WRITE setBusy READ isBusy) @@ -111,6 +113,16 @@ enum QtAnchorPoint { QtAnchorVerticalCenter = Qt::AnchorVerticalCenter }; +enum QtSizePolicy { + QSizePolicyFixed = QSizePolicy::Fixed, + QSizePolicyMinimum = QSizePolicy::Minimum, + QSizePolicyMaximum = QSizePolicy::Maximum, + QSizePolicyPreferred = QSizePolicy::Preferred, + QSizePolicyExpanding = QSizePolicy::Expanding, + QSizePolicyMinimumExpanding = QSizePolicy::MinimumExpanding, + QSizePolicyIgnored = QSizePolicy::Ignored +}; + enum QtAlignment { QtAlignLeft = 0x0001, QtAlignRight = 0x0002,