~carla-sella/sudoku-app/settingsTab

« back to all changes in this revision

Viewing changes to components/SudokuBlocksGrid.qml

  • Committer: Dinko Osmankovic
  • Date: 2013-07-13 06:51:17 UTC
  • mfrom: (76.1.2 fix-bug-1200732)
  • Revision ID: dinko.metalac@gmail.com-20130713065117-okorzntokt28eyft
MergedĀ lp:~fredoust/sudoku-app/fix-bug-1200732

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
            grid.setValue(hintColumn, hintRow, solution.getValue(hintColumn, hintRow));
86
86
            buttonsGrid.itemAt(hintRow*9 + hintColumn).buttonText = solution.getValue(hintColumn, hintRow);
87
87
            buttonsGrid.itemAt(hintRow*9 + hintColumn).buttonColor = defaultHintColor;
 
88
            buttonsGrid.itemAt(hintRow*9 + hintColumn).hinted = true;
88
89
        }
89
90
 
90
91
    }
175
176
                buttonsGrid.itemAt(i*9 + j).boldText = boldText;
176
177
                buttonsGrid.itemAt(i*9 + j).border.color = defaultBorderColor;
177
178
                buttonsGrid.itemAt(i*9 + j).enabled = true;
 
179
                buttonsGrid.itemAt(i*9 + j).hinted = false;
178
180
            }
179
181
        }
180
182
 
317
319
                                grid.setValue(column,row, 0);
318
320
                                buttonsGrid.itemAt(currentX).buttonColor = defaultColor;
319
321
                                buttonsGrid.itemAt(currentX).boldText = false;
 
322
                                 buttonsGrid.itemAt(currentX).hinted = false
320
323
                                buttonsGrid.redrawGrid()
321
324
                                PopupUtils.close(dialogue)
322
325
                            }
342
345
 
343
346
                                    onTriggered: {
344
347
                                        buttonsGrid.itemAt(currentX).buttonText = index+1
 
348
                                        buttonsGrid.itemAt(currentX).hinted = false
345
349
                                        numberOfActions++;
346
350
 
347
351
                                        var row = Math.floor(currentX/9);