From ef9c0c9261e30bb62e61f420acab741de04f2127 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Thu, 15 Oct 2020 12:50:40 +0200 Subject: [PATCH] remove old files --- .../qml/CollapsableItemDelegate.qml | 94 ------------------- OmobiDisplayApp/testChart.scxml | 3 - 2 files changed, 97 deletions(-) delete mode 100644 OmobiDisplayApp/ressources/qml/CollapsableItemDelegate.qml delete mode 100644 OmobiDisplayApp/testChart.scxml diff --git a/OmobiDisplayApp/ressources/qml/CollapsableItemDelegate.qml b/OmobiDisplayApp/ressources/qml/CollapsableItemDelegate.qml deleted file mode 100644 index 6ba6faa..0000000 --- a/OmobiDisplayApp/ressources/qml/CollapsableItemDelegate.qml +++ /dev/null @@ -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 - } - } - ] -} diff --git a/OmobiDisplayApp/testChart.scxml b/OmobiDisplayApp/testChart.scxml deleted file mode 100644 index 5ea579d..0000000 --- a/OmobiDisplayApp/testChart.scxml +++ /dev/null @@ -1,3 +0,0 @@ - - -