From c3e15c6ae11c7affa1e225220592323eec4f5233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 14 Dec 2022 21:15:13 +0800 Subject: Classic detail is a flickable too --- ClassicDetailFlickable.ui.qml | 17 +++++++++++++++++ ClassicDetailScrollView.ui.qml | 15 --------------- 2 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 ClassicDetailFlickable.ui.qml delete mode 100644 ClassicDetailScrollView.ui.qml diff --git a/ClassicDetailFlickable.ui.qml b/ClassicDetailFlickable.ui.qml new file mode 100644 index 0000000..8bbdb0f --- /dev/null +++ b/ClassicDetailFlickable.ui.qml @@ -0,0 +1,17 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 + +Flickable { + property string cardImageSource + contentHeight: card.height + + DetailCardItem { + id: card + imageSource: cardImageSource + anchors { + top: parent.top + left: parent.left + right: parent.right + } + } +} diff --git a/ClassicDetailScrollView.ui.qml b/ClassicDetailScrollView.ui.qml deleted file mode 100644 index 802c739..0000000 --- a/ClassicDetailScrollView.ui.qml +++ /dev/null @@ -1,15 +0,0 @@ -import QtQuick 2.15 -import QtQuick.Controls 2.15 - -ScrollView { - property string cardImageSource - - DetailCardItem { - imageSource: cardImageSource - anchors { - top: parent.top - left: parent.left - right: parent.right - } - } -} -- cgit v1.2.3