summaryrefslogtreecommitdiffstats
path: root/kwordquiz/src/flashview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /kwordquiz/src/flashview.cpp
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwordquiz/src/flashview.cpp')
-rw-r--r--kwordquiz/src/flashview.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kwordquiz/src/flashview.cpp b/kwordquiz/src/flashview.cpp
index eafa5294..6db1916f 100644
--- a/kwordquiz/src/flashview.cpp
+++ b/kwordquiz/src/flashview.cpp
@@ -25,10 +25,10 @@
#include "prefs.h"
-FlashView::FlashView(TQWidget *parent, const char *name, WFlags f)
- : FlashViewBase(parent, name, f)
+FlashView::FlashView(TQWidget *tqparent, const char *name, WFlags f)
+ : FlashViewBase(tqparent, name, f)
{
- m_score = new WQScore();
+ m_score = new WTQScore();
m_timer = new TQTimer(this);
connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimer()));
}
@@ -39,7 +39,7 @@ FlashView::~FlashView()
}
-void FlashView::setQuiz(WQQuiz *quiz)
+void FlashView::setQuiz(WTQQuiz *quiz)
{
m_quiz = quiz;
}
@@ -57,7 +57,7 @@ void FlashView::init()
updateScore();
- KWordQuizApp *win=(KWordQuizApp *) parent();
+ KWordQuizApp *win=(KWordQuizApp *) tqparent();
win->actionCollection()->action("quiz_check")->setEnabled(true);
win->actionCollection()->action("flash_know")->setEnabled(true);
win->actionCollection()->action("flash_dont_know")->setEnabled(true);
@@ -84,7 +84,7 @@ void FlashView::keepDiscardCard(bool keep)
{
if (!keep)
{
- m_score->countIncrement(WQScore::cdCorrect);
+ m_score->countIncrement(WTQScore::cdCorrect);
updateScore();
KNotifyClient::event(winId(), "QuizCorrect", i18n("Your answer was correct!"));
}
@@ -92,7 +92,7 @@ void FlashView::keepDiscardCard(bool keep)
{
m_error++;
m_quiz->checkAnswer(m_question, "");
- m_score->countIncrement(WQScore::cdError);
+ m_score->countIncrement(WTQScore::cdError);
updateScore();
KNotifyClient::event(winId(), "QuizError", i18n("Your answer was incorrect."));
}
@@ -106,7 +106,7 @@ void FlashView::keepDiscardCard(bool keep)
else
{
m_quiz->finish();
- KWordQuizApp *win=(KWordQuizApp *) parent();
+ KWordQuizApp *win=(KWordQuizApp *) tqparent();
win->actionCollection()->action("quiz_check")->setEnabled(false);
win->actionCollection()->action("flash_know")->setEnabled(false);
win->actionCollection()->action("flash_dont_know")->setEnabled(false);