[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [khangman] src/harmattan: Clean up the GamePage, remove the button from the middle and so on
From: Laszlo Papp <lpapp () kde ! org>
Date: 2012-03-01 3:01:09
Message-ID: 20120301030109.7D9D0A60A9 () git ! kde ! org
[Download RAW message or body]
Git commit 9fc8c685eafa48646d6eb05d3df49771c3a6b078 by Laszlo Papp.
Committed on 01/03/2012 at 06:00.
Pushed by lpapp into branch 'master'.
Clean up the GamePage, remove the button from the middle and so on
M +0 -46 src/harmattan/GamePage.qml
http://commits.kde.org/khangman/9fc8c685eafa48646d6eb05d3df49771c3a6b078
diff --git a/src/harmattan/GamePage.qml b/src/harmattan/GamePage.qml
index 2d2cca0..c0a82fa 100644
--- a/src/harmattan/GamePage.qml
+++ b/src/harmattan/GamePage.qml
@@ -237,36 +237,6 @@ Page {
spacing: 10;
Repeater {
id: originalWordLetterRepeater;
- model: anagram;
- LetterElement {
- id: originalWordLetterId;
- color: originalWordLetterRectangleColor;
- letterText: originalWordStatus == \
originalWordStatusEnumeration.init ? "_" : modelData;
- }
- }
- }
-
- Button {
- text: categorySelectionDialog.model[categorySelectionDialog.selectedIndex];
-
- anchors {
- horizontalCenter: parent.horizontalCenter;
- }
-
- onClicked: {
- categorySelectionDialog.open();
- }
- }
-
- Row {
- id: originalWordRow;
- anchors {
- horizontalCenter: parent.horizontalCenter;
- }
-
- spacing: 10;
- Repeater {
- id: originalWordLetterRepeater;
model: alphabet;
LetterElement {
id: originalWordLetterId;
@@ -279,22 +249,6 @@ Page {
onClicked: {
if (originalWordStatus != \
originalWordStatusEnumeration.resolved) {
- if (anagramLetterId.letterText != "")
- {
- originalWordStatus = \
originalWordStatusEnumeration.active;
-
- originalWordLetterRepeater.model =
- \
khangmanEngineHelper.insertInCurrentOriginalWord(currentOriginalWordIndex, \
anagramLetterId.letterText);
-
- ++currentOriginalWordIndex;
-
- var tmpAnagramLetterRepeaterModel = \
anagramLetterRepeater.model;
- tmpAnagramLetterRepeaterModel[[index]] = "";
- anagramLetterRepeater.model = \
tmpAnagramLetterRepeaterModel;
-
- \
MyArray.sourceDestinationLetterIndexHash.push(index);
- }
-
if (currentOriginalWordIndex == \
originalWordLetterRepeater.model.length) {
khangmanResultTimer.start();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic