1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-29 01:33:46 +00:00

Horsing around with the qml, but it still doesn't look ok.

This commit is contained in:
King_DuckZ 2016-10-16 12:42:33 +01:00
parent 2960f5abcb
commit e5c899aa78
2 changed files with 26 additions and 18 deletions

View file

@ -1,25 +1,29 @@
import QtQuick 2.1 import QtQuick 2.1
Item { Item {
id: rootItem
Component { Component {
id: listDelegate id: listDelegate
Rectangle { Rectangle {
width: parent.width width: rootItem.width
//height: imageSize.height height: 64
//color: "transparent"
border.color: "red"
border.width: 2
radius: 5
Image { Image {
id: itemIcon id: itemIcon
width: 64 fillMode: Image.PreserveAspectFit
height: parent.height
anchors.left: parent.left
source: model.decoration source: model.decoration
} }
Text { Text {
id: itemDesc id: itemDesc
anchors.left: itemIcon.right
anchors.leftMargin: 20 anchors.leftMargin: 20
anchors.verticalCenter: parent.verticalCenter anchors.left: itemIcon.right
font.pixelSize: 40 font.pixelSize: 40
text: model.display text: model.display
} }
@ -33,6 +37,5 @@ Item {
model: resultListModel model: resultListModel
delegate: listDelegate delegate: listDelegate
spacing: 4 spacing: 4
orientation: ListView.Horizontal
} }
} }

View file

@ -27,8 +27,10 @@ ApplicationWindow {
} }
} }
Rectangle { RowLayout {
id: rectagleMain id: rectagleMain
Row {
TextField { TextField {
id: searchBox id: searchBox
maximumLength: 256 maximumLength: 256
@ -38,8 +40,11 @@ ApplicationWindow {
} }
} }
Row {
FileList { FileList {
} }
}
}
statusBar: StatusBar { statusBar: StatusBar {
RowLayout { RowLayout {