2024-02-29 09:07:35 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
// Component implementing the common ShowcaseDelegate interface needed for the ProfileShowcasePanel
|
|
|
|
// Workaround until the all plafroms support public inline components.
|
|
|
|
// Linux and windows needs to be upgraded to qt 5.15.8+
|
|
|
|
// https://bugreports.qt.io/browse/QTBUG-89180
|
|
|
|
|
|
|
|
// TODO: Revert this commit once the inline componets are supported
|
|
|
|
// Remove this file and use the inline component once all platforms are upgraded to 5.15.8+
|
|
|
|
ShowcaseDelegate {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
// required property modelData
|
|
|
|
// required property dragKeysData
|
|
|
|
// required property dragParentData
|
|
|
|
// required property visualIndexData
|
|
|
|
|
|
|
|
readonly property var model: modelData
|
2024-03-04 22:07:09 +00:00
|
|
|
readonly property var key: model ? model.showcaseKey : null
|
2024-02-29 09:07:35 +00:00
|
|
|
|
|
|
|
Drag.keys: dragKeysData
|
|
|
|
|
|
|
|
dragParent: dragParentData
|
|
|
|
visualIndex: visualIndexData
|
|
|
|
dragAxis: Drag.YAxis
|
2024-03-04 22:07:09 +00:00
|
|
|
showcaseVisibility: model ? model.showcaseVisibility ?? Constants.ShowcaseVisibility.NoOne :
|
2024-02-29 09:07:35 +00:00
|
|
|
Constants.ShowcaseVisibility.NoOne
|
|
|
|
}
|