|
@@ -1,25 +1,11 @@
|
|
import QtQuick 2.5
|
|
import QtQuick 2.5
|
|
-import Box2D 2.0
|
|
|
|
import Qt.labs.settings 1.0
|
|
import Qt.labs.settings 1.0
|
|
|
|
|
|
import ".."
|
|
import ".."
|
|
|
|
|
|
-Item {
|
|
|
|
|
|
+View {
|
|
id: root
|
|
id: root
|
|
|
|
|
|
- signal togglePause
|
|
|
|
- signal next
|
|
|
|
-
|
|
|
|
- property var pictureDelegate: Component {
|
|
|
|
- ArtImage {}
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- property var effectDelegate: Component {
|
|
|
|
- VisualEffect {}
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- anchors.fill: parent
|
|
|
|
-
|
|
|
|
Settings {
|
|
Settings {
|
|
id: basicSettings
|
|
id: basicSettings
|
|
category: "Basic"
|
|
category: "Basic"
|
|
@@ -28,15 +14,6 @@ Item {
|
|
property int easingType: Easing.Linear
|
|
property int easingType: Easing.Linear
|
|
}
|
|
}
|
|
|
|
|
|
- QtObject {
|
|
|
|
- id: d
|
|
|
|
- property var columnArray: []
|
|
|
|
-
|
|
|
|
- function reset() {
|
|
|
|
- columnArray = []
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
Component {
|
|
Component {
|
|
id: columnComponent
|
|
id: columnComponent
|
|
|
|
|
|
@@ -58,7 +35,7 @@ Item {
|
|
property bool initialized: false
|
|
property bool initialized: false
|
|
|
|
|
|
Component.onCompleted: {
|
|
Component.onCompleted: {
|
|
- d.columnArray.push(this)
|
|
|
|
|
|
+ columnArray.push(this)
|
|
}
|
|
}
|
|
|
|
|
|
onFullChanged: {
|
|
onFullChanged: {
|
|
@@ -132,29 +109,9 @@ Item {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- Connections {
|
|
|
|
- target: root
|
|
|
|
- onTogglePause: deathTimer.running = !deathTimer.running
|
|
|
|
- onNext: deathTimer.triggered()
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- Timer {
|
|
|
|
- id: globalDeathTimer
|
|
|
|
- running: generalSettings.commonFeed && globalUtil.primed
|
|
|
|
- repeat: true
|
|
|
|
- interval: globalUtil.adjustedInterval
|
|
|
|
- onTriggered: d.columnArray[globalUtil.columnSelection()].shift()
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- Repeater {
|
|
|
|
- model: globalUtil.columnCount
|
|
|
|
- delegate: columnComponent
|
|
|
|
- onModelChanged: d.reset()
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
Keys.onUpPressed: generalSettings.interval++
|
|
Keys.onUpPressed: generalSettings.interval++
|
|
Keys.onDownPressed: generalSettings.interval = Math.max(0, generalSettings.interval - 1)
|
|
Keys.onDownPressed: generalSettings.interval = Math.max(0, generalSettings.interval - 1)
|
|
}
|
|
}
|