diff options
Diffstat (limited to 'src/quicktemplates2/qquickswipeview.cpp')
-rw-r--r-- | src/quicktemplates2/qquickswipeview.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quicktemplates2/qquickswipeview.cpp b/src/quicktemplates2/qquickswipeview.cpp index ce586363..5f84f93e 100644 --- a/src/quicktemplates2/qquickswipeview.cpp +++ b/src/quicktemplates2/qquickswipeview.cpp @@ -415,12 +415,6 @@ QQuickSwipeViewAttached::QQuickSwipeViewAttached(QObject *parent) qmlWarning(parent) << "SwipeView: attached properties must be accessed from within a child item"; } -QQuickSwipeView *QQuickSwipeViewAttached::view() const -{ - Q_D(const QQuickSwipeViewAttached); - return d->swipeView; -} - int QQuickSwipeViewAttached::index() const { Q_D(const QQuickSwipeViewAttached); @@ -433,6 +427,12 @@ bool QQuickSwipeViewAttached::isCurrentItem() const return d->index != -1 && d->currentIndex != -1 && d->index == d->currentIndex; } +QQuickSwipeView *QQuickSwipeViewAttached::view() const +{ + Q_D(const QQuickSwipeViewAttached); + return d->swipeView; +} + bool QQuickSwipeViewAttached::isNextItem() const { Q_D(const QQuickSwipeViewAttached); |