-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NodeEditor: ObjectGraph styling fixes.
MacOS deployment configuration.
- Loading branch information
Showing
7 changed files
with
93 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import QtQuick 2.7 | ||
|
||
Rectangle { | ||
id: selectionItem | ||
|
||
// QuickQanava global selection properties support: see qan::Selectable, | ||
// qan::Graph::configureSelectionItem() and qan::Graph::createSelectionItem() for documentation | ||
property real selectionMargin: 3 | ||
property color selectionColor: "#999" | ||
property real selectionWeight: 1 | ||
|
||
anchors.margins: selectionMargin | ||
border { | ||
width: selectionWeight | ||
color: selectionColor | ||
} | ||
opacity: 0.1 | ||
color: Qt.rgba(0.,0.,0.,0.) | ||
clip: true | ||
radius: 4 | ||
visible: true | ||
|
||
transformOrigin: Item.Center // scale is used in transitions | ||
|
||
// States Management //---------------------------------------------------- | ||
states: [ | ||
State { | ||
name: "UNSELECTED" | ||
PropertyChanges { target: selectionItem; opacity : 0.; scale : 0.99 } | ||
}, | ||
State { | ||
name: "SELECTED" | ||
PropertyChanges { target: selectionItem; opacity : 0.8; scale : 1. } | ||
} | ||
] | ||
transitions: [ | ||
Transition { | ||
from: "UNSELECTED"; to: "SELECTED" | ||
SequentialAnimation { | ||
ScriptAction { script: selectionItem.visible = true } | ||
ParallelAnimation { | ||
NumberAnimation { target: selectionItem; properties: "opacity"; duration: 300 } | ||
NumberAnimation { target: selectionItem; properties: "scale"; | ||
easing.overshoot: 30.; easing.type: Easing.OutBack; duration: 300 } | ||
} | ||
} | ||
}, | ||
Transition { | ||
from: "SELECTED"; to: "UNSELECTED" | ||
SequentialAnimation { | ||
ParallelAnimation { | ||
NumberAnimation { target: selectionItem; properties: "opacity"; duration: 300 } | ||
NumberAnimation { target: selectionItem; properties: "scale"; | ||
easing.type: Easing.InBack; | ||
easing.overshoot: 30.; | ||
duration: 300 } | ||
} | ||
ScriptAction { script: selectionItem.visible = false } | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.