Commit cda4da32 authored by Denis Kuplyakov's avatar Denis Kuplyakov
Browse files

Added wrapper to access KgItem.

Added wrapper with already set provider property and changed all KgItem
references to wrapper useing.
parent ecd70f79
......@@ -16,7 +16,6 @@
*/
import QtQuick 1.1
import org.kde.games.core 0.1 as KgCore
import "globals.js" as Globals
Item {
......@@ -44,18 +43,16 @@ Item {
}
KgCore.KgItem {
CanvasItem {
id: boardBackground
anchors.fill: parent
provider: themeProvider
spriteKey: "board"
}
KgCore.KgItem {
CanvasItem {
id: boardLabels
anchors.fill: parent
visible: isShowingLabels
provider: themeProvider
spriteKey: "board_numbers"
}
......
import QtQuick 1.1
import org.kde.games.core 0.1 as KgCore
KgCore.KgItem {
provider: themeProvider
}
......@@ -16,7 +16,6 @@
*/
import QtQuick 1.1
import org.kde.games.core 0.1 as KgCore
Item {
id: cellContainer
......@@ -28,11 +27,10 @@ Item {
property int chipAnimationTime: boardContainer.chipsAnimationTime
property string chipState: ""
KgCore.KgItem {
CanvasItem {
id: cellLegalImage
anchors.fill: parent
visible: isLegal
provider: themeProvider
spriteKey: "move_hint"
}
......
......@@ -16,7 +16,6 @@
*/
import QtQuick 1.1
import org.kde.games.core 0.1 as KgCore
Item {
id: chipContainer
......@@ -27,11 +26,10 @@ Item {
signal clicked
KgCore.KgItem {
CanvasItem {
id: chipImage
anchors.fill: parent
visible: false
provider: themeProvider
spriteKey: imagePrefix + currentFrame
}
......
......@@ -16,7 +16,6 @@
*/
import QtQuick 1.1
import org.kde.games.core 0.1 as KgCore
import org.kde.plasma.core 0.1 as PlasmaCore
Rectangle {
......
......@@ -16,7 +16,6 @@
*/
import QtQuick 1.1
import org.kde.games.core 0.1 as KgCore
import "globals.js" as Globals
Item {
......@@ -49,10 +48,9 @@ Item {
popup.show(text);
}
KgCore.KgItem {
CanvasItem {
id: table_background
anchors.fill: parent
provider: themeProvider
spriteKey: "background"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment