From 79b7654924b1d40e932a07ac7ab9b52e0f844913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 9 Apr 2016 11:58:09 +0200 Subject: [PATCH] Show comic info in InfoComicsView --- YACReaderLibrary/qml/InfoComicsView.qml | 43 ++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/YACReaderLibrary/qml/InfoComicsView.qml b/YACReaderLibrary/qml/InfoComicsView.qml index a172e61f..878c1282 100644 --- a/YACReaderLibrary/qml/InfoComicsView.qml +++ b/YACReaderLibrary/qml/InfoComicsView.qml @@ -1,7 +1,8 @@ -import QtQuick 2.3 +import QtQuick 2.5 import QtQuick.Controls 1.2 import QtGraphicalEffects 1.0 +import QtQuick.Controls.Styles 1.4 import com.yacreader.ComicModel 1.0 @@ -33,6 +34,7 @@ Rectangle { } Rectangle { + id: indicator_container width: parent.width y: 250 @@ -49,14 +51,47 @@ Rectangle { fillMode: Image.TileHorizontally } } + Rectangle { id: info_container width: parent.width y: flow.height + flow.additionalBottomSpace - 6 - height: parent.height + height: parent.height - y color: "#2e2e2e" + + ScrollView { + anchors.fill: parent + anchors.margins: 0 + + horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff + + style: ScrollViewStyle { + transientScrollBars: false + incrementControl: Item {} + decrementControl: Item {} + handle: Item { + implicitWidth: 10 + implicitHeight: 26 + Rectangle { + color: "#424246" + anchors.fill: parent + anchors.topMargin: 6 + anchors.leftMargin: 4 + anchors.rightMargin: 4 + anchors.bottomMargin: 6 + } + } + + scrollBarBackground: Item { + implicitWidth: 14 + implicitHeight: 26 + } + } + + ComicInfo { + width: info_container.width - 14 + } + } } - - }