aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates/qquickscrollview_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates/qquickscrollview_p.h')
-rw-r--r--src/quicktemplates/qquickscrollview_p.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/quicktemplates/qquickscrollview_p.h b/src/quicktemplates/qquickscrollview_p.h
index 927de4365c..6cdafd5199 100644
--- a/src/quicktemplates/qquickscrollview_p.h
+++ b/src/quicktemplates/qquickscrollview_p.h
@@ -22,14 +22,19 @@ QT_BEGIN_NAMESPACE
class QQuickScrollViewPrivate;
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickScrollView : public QQuickPane
+class Q_QUICKTEMPLATES2_EXPORT QQuickScrollView : public QQuickPane
{
Q_OBJECT
QML_NAMED_ELEMENT(ScrollView)
QML_ADDED_IN_VERSION(2, 2)
+ Q_PROPERTY(qreal effectiveScrollBarWidth READ effectiveScrollBarWidth NOTIFY effectiveScrollBarWidthChanged FINAL REVISION(6, 6))
+ Q_PROPERTY(qreal effectiveScrollBarHeight READ effectiveScrollBarHeight NOTIFY effectiveScrollBarHeightChanged FINAL REVISION(6, 6))
public:
explicit QQuickScrollView(QQuickItem *parent = nullptr);
+ ~QQuickScrollView();
+ qreal effectiveScrollBarWidth();
+ qreal effectiveScrollBarHeight();
protected:
bool childMouseEventFilter(QQuickItem *item, QEvent *event) override;
@@ -44,6 +49,10 @@ protected:
QAccessible::Role accessibleRole() const override;
#endif
+Q_SIGNALS:
+ Q_REVISION(6, 6) void effectiveScrollBarWidthChanged();
+ Q_REVISION(6, 6) void effectiveScrollBarHeightChanged();
+
private:
Q_DISABLE_COPY(QQuickScrollView)
Q_DECLARE_PRIVATE(QQuickScrollView)
@@ -51,6 +60,4 @@ private:
QT_END_NAMESPACE
-QML_DECLARE_TYPE(QQuickScrollView)
-
#endif // QQUICKSCROLLVIEW_P_H