22 property bool available:
true
23 property bool shown:
true
30 property bool created:
true
31 property bool required
32 property bool __shouldShow:
false
33 property bool __skipShowAnimation:
false
35 property list<QtObject> hides
36 property var showAnimation
37 property var hideAnimation
41 onShowAnimationChanged:
if (showAnimation) showAnimation[
"target"] = showable
42 onHideAnimationChanged:
if (hideAnimation) hideAnimation[
"target"] = showable
44 Component.onCompleted: required = shown;
46 function __hideOthers() {
48 for (i=0; i<hides.length; i++) {
63 __skipShowAnimation =
true;
68 if (created && __shouldShow) {
74 function __reallyShow() {
76 __skipShowAnimation =
false;
82 if (hideAnimation != undefined && hideAnimation.running) {
86 if (showAnimation != undefined) {
87 if (!showAnimation.running) {
88 showAnimation.restart()
90 if (__skipShowAnimation) {
91 showAnimation.complete();
98 __skipShowAnimation =
false;
103 if (showAnimation != undefined && showAnimation.running) {
106 if (hideAnimation != undefined) {
107 if (!hideAnimation.running) {
108 hideAnimation.restart()
119 target: hideAnimation ? hideAnimation: null
121 if (!hideAnimation.running) {