remove old files
This commit is contained in:
parent
40a190e324
commit
ef9c0c9261
2 changed files with 0 additions and 97 deletions
|
@ -1,94 +0,0 @@
|
|||
import QtQuick 2.0
|
||||
import QtQuick.Controls 2.0
|
||||
import QtQuick.Controls.Material 2.0
|
||||
|
||||
ItemDelegate {
|
||||
id: control
|
||||
|
||||
property bool expanded: false
|
||||
property Component expandedComponent: Component {
|
||||
Rectangle {
|
||||
implicitHeight: 100
|
||||
color: "red"
|
||||
}
|
||||
}
|
||||
|
||||
height: 70 + expandedItemContainer.height
|
||||
|
||||
contentItem: Item {}
|
||||
|
||||
state: expanded ? "open":"closed"
|
||||
|
||||
Item {
|
||||
id: expandedItemContainer
|
||||
|
||||
anchors {
|
||||
bottom: parent.bottom
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
margins: 5
|
||||
}
|
||||
|
||||
clip: true
|
||||
|
||||
height: control.state === "open" && expandedItemLoader.status === Loader.Ready && expandedItemLoader.item !== undefined ? expandedItemLoader.item.implicitHeight:0
|
||||
|
||||
Behavior on height {
|
||||
NumberAnimation {
|
||||
duration: 200
|
||||
}
|
||||
}
|
||||
|
||||
Loader {
|
||||
id: expandedItemLoader
|
||||
|
||||
anchors.centerIn: parent
|
||||
|
||||
width: parent.width
|
||||
|
||||
onEnabledChanged: {
|
||||
if(enabled){
|
||||
sourceComponent = control.expandedComponent
|
||||
}
|
||||
else {
|
||||
hideDelayPa.start()
|
||||
}
|
||||
}
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
PauseAnimation {
|
||||
id: hideDelayPa
|
||||
|
||||
duration: 200
|
||||
|
||||
onRunningChanged: {
|
||||
if(!running && !expandedItemLoader.enabled){
|
||||
expandedItemLoader.sourceComponent = undefined
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
states: [
|
||||
State {
|
||||
name: "closed"
|
||||
|
||||
PropertyChanges {
|
||||
target: expandedItemLoader
|
||||
enabled: false
|
||||
}
|
||||
},
|
||||
State {
|
||||
name: "opened"
|
||||
|
||||
PropertyChanges {
|
||||
target: expandedItemLoader
|
||||
enabled: true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
<?xml version="1.0" ?>
|
||||
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" name="testChart">
|
||||
</scxml>
|
Loading…
Reference in a new issue