diff --git a/src/gui/qml/FileList.qml b/src/gui/qml/FileList.qml index 4a6656a..71c8443 100644 --- a/src/gui/qml/FileList.qml +++ b/src/gui/qml/FileList.qml @@ -1,25 +1,29 @@ import QtQuick 2.1 Item { + id: rootItem + Component { id: listDelegate + Rectangle { - width: parent.width - //height: imageSize.height + width: rootItem.width + height: 64 + //color: "transparent" + border.color: "red" + border.width: 2 + radius: 5 Image { id: itemIcon - width: 64 - height: parent.height - anchors.left: parent.left + fillMode: Image.PreserveAspectFit source: model.decoration } Text { id: itemDesc - anchors.left: itemIcon.right anchors.leftMargin: 20 - anchors.verticalCenter: parent.verticalCenter + anchors.left: itemIcon.right font.pixelSize: 40 text: model.display } @@ -33,6 +37,5 @@ Item { model: resultListModel delegate: listDelegate spacing: 4 - orientation: ListView.Horizontal } } diff --git a/src/gui/qml/mainwin.qml b/src/gui/qml/mainwin.qml index d16caf3..d30e87b 100644 --- a/src/gui/qml/mainwin.qml +++ b/src/gui/qml/mainwin.qml @@ -27,18 +27,23 @@ ApplicationWindow { } } - Rectangle { + RowLayout { id: rectagleMain - TextField { - id: searchBox - maximumLength: 256 - placeholderText: qsTr("Locate glob"); - text: "*.ogg" - onEditingFinished: if (text.length >= 1) { locate(text); } - } - } - FileList { + Row { + TextField { + id: searchBox + maximumLength: 256 + placeholderText: qsTr("Locate glob"); + text: "*.ogg" + onEditingFinished: if (text.length >= 1) { locate(text); } + } + } + + Row { + FileList { + } + } } statusBar: StatusBar {