2019-03-13 18:38:12 +00:00
|
|
|
import QtQuick 2.4
|
|
|
|
import Ubuntu.Components 1.3
|
2019-03-15 16:53:40 +00:00
|
|
|
import "../styles"
|
2019-03-13 18:38:12 +00:00
|
|
|
|
|
|
|
Component {
|
|
|
|
Rectangle {
|
2019-03-15 16:53:40 +00:00
|
|
|
width: parent.width
|
2019-03-13 18:38:12 +00:00
|
|
|
height: units.gu(5)
|
2019-03-13 20:32:10 +00:00
|
|
|
|
2019-03-13 18:38:12 +00:00
|
|
|
Text {
|
|
|
|
text: fileBaseName
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: units.gu(1)
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
}
|
2019-03-13 20:32:10 +00:00
|
|
|
|
2019-03-13 18:38:12 +00:00
|
|
|
Icon {
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
width: units.gu(4)
|
|
|
|
height: units.gu(4)
|
|
|
|
name: fileIsDir ? "go-next" : "lock"
|
2019-03-15 16:53:40 +00:00
|
|
|
color: Theme.raisin_black
|
2019-03-13 18:38:12 +00:00
|
|
|
}
|
2019-03-13 20:32:10 +00:00
|
|
|
|
|
|
|
MouseArea {
|
2019-03-13 18:38:12 +00:00
|
|
|
anchors.fill: parent
|
|
|
|
onClicked: { if (fileIsDir){ folderModel.folder = folderModel.folder + "/" + fileName ; backAction.visible = true;} }
|
|
|
|
}
|
2019-03-13 20:32:10 +00:00
|
|
|
|
|
|
|
CustomBorder {
|
2019-03-13 18:38:12 +00:00
|
|
|
commonBorder: false
|
|
|
|
lBorderwidth: 0
|
|
|
|
rBorderwidth: 0
|
|
|
|
tBorderwidth: 0
|
|
|
|
bBorderwidth: 1
|
|
|
|
borderColor: UbuntuColors.warmGrey
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|