Commit 4550eab7 authored by Camilo Higuita's avatar Camilo Higuita

better use kirigami icon instead of pixbutton for folder view delegate #4

parent 3e4e30d7
import QtQuick 2.0
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import "../../../view_models"
import org.kde.kirigami 2.2 as Kirigami
ItemDelegate
{
......@@ -9,17 +11,31 @@ ItemDelegate
height: folderSize*2
width: folderSize*2
PixButton
ColumnLayout
{
anchors.centerIn: parent
iconSize: folderSize
iconName: "folder"
text: folder
display: AbstractButton.TextUnderIcon
flat: true
height: parent.height
width: parent.width
anchors.fill: parent
Kirigami.Icon
{
Layout.fillHeight: true
Layout.fillWidth: true
Layout.alignment: Qt.AlignCenter
source: "folder"
height: folderSize
}
Label
{
text: folder
width: parent.width
Layout.fillWidth: true
horizontalAlignment: Qt.AlignHCenter
elide: Qt.ElideRight
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment