2019-10-04 02:10:46 +03:00
|
|
|
import QtQuick 2.6
|
2019-10-06 13:12:29 +03:00
|
|
|
import QtQuick.Layouts 1.2
|
2019-10-04 02:10:46 +03:00
|
|
|
|
2020-04-09 01:10:08 +03:00
|
|
|
Item {
|
2019-10-06 00:11:20 +03:00
|
|
|
height: row.height + 24
|
2019-10-28 00:01:40 +03:00
|
|
|
width: parent ? parent.width : undefined
|
2019-10-04 02:10:46 +03:00
|
|
|
|
2019-10-06 00:11:20 +03:00
|
|
|
RowLayout {
|
2019-10-04 02:10:46 +03:00
|
|
|
id: row
|
|
|
|
|
2019-10-06 00:11:20 +03:00
|
|
|
anchors.centerIn: parent
|
|
|
|
width: parent.width - 24
|
|
|
|
|
2019-10-04 02:10:46 +03:00
|
|
|
spacing: 15
|
|
|
|
|
|
|
|
Rectangle {
|
2019-10-06 00:11:20 +03:00
|
|
|
id: button
|
2019-10-04 02:10:46 +03:00
|
|
|
color: colors.light
|
|
|
|
radius: 22
|
|
|
|
height: 44
|
|
|
|
width: 44
|
|
|
|
Image {
|
|
|
|
id: img
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
|
|
|
source: "qrc:/icons/icons/ui/arrow-pointing-down.png"
|
|
|
|
fillMode: Image.Pad
|
|
|
|
|
|
|
|
}
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
2020-01-11 16:07:51 +03:00
|
|
|
onClicked: timelineManager.timeline.saveMedia(model.data.id)
|
2019-10-04 02:10:46 +03:00
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
}
|
|
|
|
}
|
2019-10-06 00:11:20 +03:00
|
|
|
ColumnLayout {
|
|
|
|
id: col
|
|
|
|
|
|
|
|
Text {
|
2020-04-09 00:38:58 +03:00
|
|
|
id: filename
|
2019-10-06 00:11:20 +03:00
|
|
|
Layout.fillWidth: true
|
2020-09-19 23:55:25 +03:00
|
|
|
text: model.data.filename
|
2019-10-06 00:11:20 +03:00
|
|
|
textFormat: Text.PlainText
|
|
|
|
elide: Text.ElideRight
|
2019-10-04 02:10:46 +03:00
|
|
|
color: colors.text
|
|
|
|
}
|
2019-10-06 00:11:20 +03:00
|
|
|
Text {
|
2020-04-09 00:38:58 +03:00
|
|
|
id: filesize
|
2019-10-06 00:11:20 +03:00
|
|
|
Layout.fillWidth: true
|
2020-01-11 16:07:51 +03:00
|
|
|
text: model.data.filesize
|
2019-10-06 00:11:20 +03:00
|
|
|
textFormat: Text.PlainText
|
|
|
|
elide: Text.ElideRight
|
2019-10-04 02:10:46 +03:00
|
|
|
color: colors.text
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-04-09 00:38:58 +03:00
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
color: colors.dark
|
|
|
|
z: -1
|
|
|
|
radius: 10
|
|
|
|
height: row.height + 24
|
|
|
|
width: 44 + 24 + 24 + Math.max(Math.min(filesize.width, filesize.implicitWidth), Math.min(filename.width, filename.implicitWidth))
|
|
|
|
}
|
|
|
|
|
2019-10-04 02:10:46 +03:00
|
|
|
}
|