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

List:       kde-commits
Subject:    branches/work/kwordquiz/src
From:       Peter Hedlund <peter () peterandlinda ! com>
Date:       2005-07-14 2:56:17
Message-ID: 1121309777.082370.24962.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 434429 by hedlund:

Change function names from getMyProperty() to myProperty() per Qt/KDE standards.

 M  +6 -6      keduvocdocument.cpp  
 M  +2 -2      keduvocdocument.h  
 M  +1 -1      kwordquiz.cpp  
 M  +2 -2      wqquiz.cpp  


--- branches/work/kwordquiz/src/keduvocdocument.cpp #434428:434429
@@ -95,7 +95,7 @@
   m_font = NULL;
 
   activeLeitnerSystem = false;
-  leitnerSystem = NULL;
+  m_leitnerSystem = NULL;
 }
 
 
@@ -695,7 +695,7 @@
 {
 	if( yes )
 	{
-		if( leitnerSystem == 0 )
+		if (m_leitnerSystem == 0)
 			createStandardLeitnerSystem(); //if nothing is loaded yet
 
 		activeLeitnerSystem = true;
@@ -731,20 +731,20 @@
 	tmpSystem->setCorrectBox( "Box 5", "Box 1" );
 	tmpSystem->setWrongBox( "Box 5", "Box 1" );
 
-	leitnerSystem = tmpSystem;
+	m_leitnerSystem = tmpSystem;
 }
 
 void KEduVocDocument::setLeitnerSystem( LeitnerSystem* system )
 {
-	leitnerSystem = system;
+	m_leitnerSystem = system;
 
 	/*KWordQuizApp* app = (KWordQuizApp*) parent();
 	app->slotLeitnerSystem();*/
 }
 
-LeitnerSystem* KEduVocDocument::getLeitnerSystem()
+LeitnerSystem* KEduVocDocument::leitnerSystem()
 {
-	return leitnerSystem;
+	return m_leitnerSystem;
 }
 
 
--- branches/work/kwordquiz/src/keduvocdocument.h #434428:434429
@@ -610,7 +610,7 @@
   void setLeitnerSystemActive(bool yes);
   void createStandardLeitnerSystem();
   void setLeitnerSystem( LeitnerSystem* system );
-  LeitnerSystem* getLeitnerSystem();
+  LeitnerSystem* leitnerSystem();
 
   bool unknownAttribute (int line, const QString &name, const QString &attr);
   void unknownElement (int line, const QString &elem );
@@ -696,7 +696,7 @@
   vector<Article>        articles;
   vector<Conjugation>    conjugations;
 
-  LeitnerSystem* 	       leitnerSystem;
+  LeitnerSystem* 	       m_leitnerSystem;
   bool			             activeLeitnerSystem;
 };
 
--- branches/work/kwordquiz/src/kwordquiz.cpp #434428:434429
@@ -1357,7 +1357,7 @@
 
 void KWordQuizApp::slotConfigLeitner()
 {
-	PrefLeitner* config = new PrefLeitner( this, "configLeitner", 0, doc->getLeitnerSystem() );
+	PrefLeitner* config = new PrefLeitner( this, "configLeitner", 0, doc->leitnerSystem() );
 	if( config->exec() == QDialog::Accepted )
 		doc->setLeitnerSystem( config->getSystem() );
 
--- branches/work/kwordquiz/src/wqquiz.cpp #434428:434429
@@ -285,11 +285,11 @@
 
   if (!result)
   {
-    m_doc->entry(li->oneOp())->setLeitnerBox(m_doc->getLeitnerSystem()->wrongBox( tmpLeitner ));
+    m_doc->entry(li->oneOp())->setLeitnerBox(m_doc->leitnerSystem()->wrongBox( tmpLeitner ));
     m_errorList -> append(li);
   }
   else
-    m_doc->entry(li->oneOp())->setLeitnerBox(m_doc->getLeitnerSystem()->correctBox( tmpLeitner ));
+    m_doc->entry(li->oneOp())->setLeitnerBox(m_doc->leitnerSystem()->correctBox( tmpLeitner ));
 
   return result;
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

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