mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2024-11-25 00:53:43 +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,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 {
|
||||
|
|
Loading…
Reference in a new issue