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

List:       kde-commits
Subject:    branches/work/kdeedu_parley/parley/src/entry-dialogs
From:       Frederik Gladhorn <frederik.gladhorn () gmx ! de>
Date:       2008-01-05 0:11:16
Message-ID: 1199491876.219084.1446.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 757453 by gladhorn:

some cleanup - there is a difference between adjective/adverb it seems

 M  +6 -6      comparisonwidget.cpp  


--- branches/work/kdeedu_parley/parley/src/entry-dialogs/comparisonwidget.cpp #757452:757453
@@ -78,9 +78,9 @@
     }
 
     // find an adjective container
-    KEduVocContainer* container = m_doc->wordTypeContainer()->childOfType(KEduVocWordType::Adjective);
+    KEduVocWordType* container = m_doc->wordTypeContainer()->childOfType(KEduVocWordType::Adjective);
     if (container) {
-        m_translation->setWordType(static_cast<KEduVocWordType*>(container));
+        m_translation->setWordType(container);
         comparativeLineEdit->setEnabled(true);
         superlativeLineEdit->setEnabled(true);
         comparativeLineEdit->setFocus();
@@ -96,16 +96,16 @@
         return;
     }
 
-    // find an adjective container
-    KEduVocContainer* container = m_doc->wordTypeContainer()->childOfType(KEduVocWordType::Adverb);
+    // find an adverb container
+    KEduVocWordType* container = m_doc->wordTypeContainer()->childOfType(KEduVocWordType::Adverb);
     if (container) {
-        m_translation->setWordType(static_cast<KEduVocWordType*>(container));
+        m_translation->setWordType(container);
         comparativeLineEdit->setEnabled(true);
         superlativeLineEdit->setEnabled(true);
         comparativeLineEdit->setFocus();
     } else {
         ///@todo better message
-        KMessageBox::information(this, i18n("Could not determine word type of adjectives"));
+        KMessageBox::information(this, i18n("Could not determine word type of adverbs"));
     }
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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