[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeedu/klatin/klatin
From:       Anne-Marie Mahfouf <annma () kde ! org>
Date:       2004-07-10 13:24:04
Message-ID: 20040710132404.782D716B1A () office ! kde ! org
[Download RAW message or body]

CVS commit by annma: 

use a bool in that case instead of a int


  M +7 -7      klatinvocab.cpp   1.32
  M +1 -1      klatinvocab.h   1.18


--- kdeedu/klatin/klatin/klatinvocab.cpp  #1.31:1.32
@@ -47,5 +47,5 @@ KLatinVocab::KLatinVocab(QWidget* parent
         QuestionNumber = 0;
         QuestionNumber2 = 0;
-        dialogShown = 1;
+        dialogShown = true;
         
         // Parse the kvtml vocab file
@@ -253,5 +253,5 @@ void KLatinVocab::NewQuestion()
 void KLatinVocab::GoBack()
 {
-        if (dialogShown == 0)
+        if (!dialogShown)
                 ResultsDialog();
 
@@ -264,5 +264,5 @@ void KLatinVocab::GoBack()
 void KLatinVocab::checkAnswer1()
 {
-        dialogShown = 0;
+        dialogShown = false;
 
         if (MultipleWords[0] == MultipleWords[4]) {
@@ -289,5 +289,5 @@ void KLatinVocab::checkAnswer1()
 void KLatinVocab::checkAnswer2()
 {
-        dialogShown = 0;
+        dialogShown = false;
 
         if (MultipleWords[1] == MultipleWords[4]) {
@@ -314,5 +314,5 @@ void KLatinVocab::checkAnswer2()
 void KLatinVocab::checkAnswer3()
 {
-        dialogShown = 0;
+        dialogShown = false;
 
         if (MultipleWords[2] == MultipleWords[4]) {
@@ -339,5 +339,5 @@ void KLatinVocab::checkAnswer3()
 void KLatinVocab::checkAnswer4()
 {
-        dialogShown = 0;
+        dialogShown = false;
 
         if (MultipleWords[3] == MultipleWords[4]) {
@@ -400,5 +400,5 @@ void KLatinVocab::ResultsDialog()
 
         // Set some variables.
-        dialogShown = 1;
+        dialogShown = true;
         QuestionNumber = 0;
         QuestionNumber2 = 0;

--- kdeedu/klatin/klatin/klatinvocab.h  #1.17:1.18
@@ -89,5 +89,5 @@ private:
         int lastAnswerNumber;
         /// Determines whether the results dialog is currently shown or not
-        int dialogShown;
+        bool dialogShown;
         float TotalCorrect;
         float Total;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic