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:
parent
2960f5abcb
commit
e5c899aa78
2 changed files with 26 additions and 18 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,8 +27,10 @@ ApplicationWindow {
|
|||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
RowLayout {
|
||||
id: rectagleMain
|
||||
|
||||
Row {
|
||||
TextField {
|
||||
id: searchBox
|
||||
maximumLength: 256
|
||||
|
@ -38,8 +40,11 @@ ApplicationWindow {
|
|||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
FileList {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
statusBar: StatusBar {
|
||||
RowLayout {
|
||||
|
|
Loading…
Reference in a new issue