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

List:       kde-commits
Subject:    KDE/kdeedu/parley/src
From:       Frederik Gladhorn <frederik.gladhorn () gmx ! de>
Date:       2008-03-02 19:57:34
Message-ID: 1204487854.707348.10862.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 781406 by gladhorn:

cleanup a little, increase krazy happyness


 M  +1 -1      parley.h  
 M  +1 -1      parleydocument.cpp  
 M  +1 -1      parleydocument.h  
 M  +1 -1      practice/testentrymanager.h  
 M  +15 -15    practice/writtenpracticedialog.cpp  
 M  +1 -1      vocabulary/containermodel.h  
 M  +1 -1      vocabulary/vocabularymodel.cpp  
 M  +1 -1      vocabulary/vocabularymodel.h  


--- trunk/KDE/kdeedu/parley/src/parley.h #781405:781406
@@ -70,7 +70,7 @@
 
 public:
     /** construtor with appName (executable name) and filename to open */
-    ParleyApp(const QString& appName, const KUrl &filename = KUrl());
+    explicit ParleyApp(const QString& appName, const KUrl &filename = KUrl());
 
     /** destructor */
     ~ParleyApp();
--- trunk/KDE/kdeedu/parley/src/parleydocument.cpp #781405:781406
@@ -1,6 +1,6 @@
 /***************************************************************************
 
-    Copyright: 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
+    Copyright 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
 
  ***************************************************************************/
 
--- trunk/KDE/kdeedu/parley/src/parleydocument.h #781405:781406
@@ -1,6 +1,6 @@
 /***************************************************************************
 
-    Copyright: 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
+    Copyright 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
 
  ***************************************************************************/
 
--- trunk/KDE/kdeedu/parley/src/practice/testentrymanager.h #781405:781406
@@ -50,7 +50,7 @@
      * Create a collection of entries to be practiced.
      * @param doc
      */
-    TestEntryManager(KEduVocDocument *doc, QObject * parent = 0);
+    explicit TestEntryManager(KEduVocDocument *doc, QObject * parent = 0);
     /**
      * Default ctor
      */
--- trunk/KDE/kdeedu/parley/src/practice/writtenpracticedialog.cpp #781405:781406
@@ -173,54 +173,54 @@
     QString errorText;
 
     if ( m_entry->lastErrors() & TestEntry::Correct ) {
-        errorText.append(i18n("<font color=\"#188C18\">You are right!</font>") + \
"\n"); +        errorText.append(i18n("<font color=\"#188C18\">You are \
right!</font>") + '\n');  }
     if ( m_entry->lastErrors() & TestEntry::CapitalizationMistake ) {
-        errorText.append(i18n("<font color=\"#222978\">Watch your \
capitalization!</font>") + "\n"); +        errorText.append(i18n("<font \
color=\"#222978\">Watch your capitalization!</font>") + '\n');  }
     if ( m_entry->lastErrors() & TestEntry::SpellingMistake ) {
-        errorText.append(i18n("<font color=\"#8C1818\">I think you made a spelling \
mistake. But the word is right.</font>") + "\n"); +        \
errorText.append(i18n("<font color=\"#8C1818\">I think you made a spelling mistake. \
But the word is right.</font>") + '\n');  }
     if ( m_entry->lastErrors() & TestEntry::UnknownMistake ) {
-        errorText.append(i18n("<font color=\"#8C1818\">You made a mistake.</font>") \
+ "\n"); +        errorText.append(i18n("<font color=\"#8C1818\">You made a \
mistake.</font>") + '\n');  }
     if ( m_entry->lastErrors() & TestEntry::AccentMistake ) {
-        errorText.append(i18n("<font color=\"#222978\">Your accentuation was \
wrong.</font>") + "\n"); +        errorText.append(i18n("<font color=\"#222978\">Your \
accentuation was wrong.</font>") + '\n');  }
     if ( m_entry->lastErrors() & TestEntry::ArticleWrong ) {
-        errorText.append(i18n("<font color=\"#222978\">The article is \
wrong.</font>") + "\n"); +        errorText.append(i18n("<font color=\"#222978\">The \
article is wrong.</font>") + '\n');  }
     if ( m_entry->lastErrors() & TestEntry::ArticleMissing ) {
-        errorText.append(i18n("<font color=\"#222978\">The article is \
missing.</font>") + "\n"); +        errorText.append(i18n("<font \
color=\"#222978\">The article is missing.</font>") + '\n');  }
     if ( m_entry->lastErrors() & TestEntry::FalseFriend ) {
-        errorText.append(i18n("<font color=\"#8C1818\">Watch out! This is a false \
friend!</font>") + "\n"); +        errorText.append(i18n("<font \
color=\"#8C1818\">Watch out! This is a false friend!</font>") + '\n');  }
     if ( m_entry->lastErrors() & TestEntry::Synonym ) {
-        errorText.append(i18n("<font color=\"#8C1818\">Great, you entered a \
synonym.</font>") + "\n"); +        errorText.append(i18n("<font \
color=\"#8C1818\">Great, you entered a synonym.</font>") + '\n');  }
     if ( m_entry->lastErrors() & TestEntry::Empty ) {
-        errorText.append(i18n("<font color=\"#8C8C18\">Please enter something for me \
to check.</font>") + "\n"); +        errorText.append(i18n("<font \
color=\"#8C8C18\">Please enter something for me to check.</font>") + '\n');  }
     if ( m_entry->lastErrors() & TestEntry::UnrelatedWord ) {
-        errorText.append(i18n("<font color=\"#8C1818\">I know that word, but are you \
sure it's the right one here?</font>") + "\n"); +        errorText.append(i18n("<font \
color=\"#8C1818\">I know that word, but are you sure it is the right one \
here?</font>") + '\n');  }
 
     if ( errorText.isEmpty() ) {
-        errorText.append(i18n("There is a mistake.") + " " + \
QString::number(m_entry->lastErrors())); +        errorText.append(i18n("There is a \
mistake.") + ' ' + QString::number(m_entry->lastErrors()));  }
 
     if ( Prefs::ignoreCapitalizationMistakes() ) {
         if (m_entry->lastErrors() == TestEntry::CapitalizationMistake && \
!userAnswer.isEmpty()) {  result = 1.0;
-            errorText.append(" (" + userAnswer + ")");
+            errorText.append(" (" + userAnswer + ')');
         }
     }
 
     if ( Prefs::ignoreAccentMistakes() ) {
         if (m_entry->lastErrors() == TestEntry::AccentMistake && \
!userAnswer.isEmpty()) {  result = 1.0;
-            errorText.append(" (" + userAnswer + ")");
+            errorText.append(" (" + userAnswer + ')');
         }
     }
 
@@ -229,7 +229,7 @@
         showContinueButton(true);
     } else {
         if(!userAnswer.isEmpty())
-            errorText.append(" (" + userAnswer + ")");
+            errorText.append(" (" + userAnswer + ')');
         setWidgetStyle(mw->answerLineEdit, NegativeResult);
         // the percentage is very vague anyway, don't show floats...
 //         mw->status->setText(i18n("That was wrong. (%1%)", (int)(result*100)));
--- trunk/KDE/kdeedu/parley/src/vocabulary/containermodel.h #781405:781406
@@ -45,7 +45,7 @@
     };
 
 
-    ContainerModel(KEduVocLesson::EnumContainerType type, QObject *parent = 0);
+    explicit ContainerModel(KEduVocLesson::EnumContainerType type, QObject *parent = \
0);  ~ContainerModel(); // no need for cleanup - the doc will do that
 
     QVariant data(const QModelIndex &index, int role) const;
--- trunk/KDE/kdeedu/parley/src/vocabulary/vocabularymodel.cpp #781405:781406
@@ -1,6 +1,6 @@
 /***************************************************************************
 
-    Copyright: 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
+    Copyright 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
 
  ***************************************************************************/
 
--- trunk/KDE/kdeedu/parley/src/vocabulary/vocabularymodel.h #781405:781406
@@ -1,6 +1,6 @@
 /***************************************************************************
 
-    Copyright: 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
+    Copyright 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
 
  ***************************************************************************/
 


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

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