diff options
Diffstat (limited to 'kwordquiz/src/flashview.cpp')
-rw-r--r-- | kwordquiz/src/flashview.cpp | 16 |
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); |