summaryrefslogtreecommitdiffstats
path: root/kwordquiz/src/multipleview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kwordquiz/src/multipleview.cpp')
-rw-r--r--kwordquiz/src/multipleview.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kwordquiz/src/multipleview.cpp b/kwordquiz/src/multipleview.cpp
index 3920c12a..e61097ef 100644
--- a/kwordquiz/src/multipleview.cpp
+++ b/kwordquiz/src/multipleview.cpp
@@ -27,17 +27,17 @@
#include "multipleview.h"
#include "prefs.h"
-MultipleView::MultipleView(TQWidget *parent, const char *name, WFlags f)
- : MultipleViewBase(parent, name, f)
+MultipleView::MultipleView(TQWidget *tqparent, const char *name, WFlags f)
+ : MultipleViewBase(tqparent, name, f)
{
- m_score = new WQScore();
+ m_score = new WTQScore();
}
MultipleView::~MultipleView()
{}
-void MultipleView::setQuiz(WQQuiz *quiz)
+void MultipleView::setQuiz(WTQQuiz *quiz)
{
m_quiz = quiz;
}
@@ -77,7 +77,7 @@ void MultipleView::init()
picYourAnswer->clear();
picCorrectAnswer->clear();
- KWordQuizApp *win=(KWordQuizApp *) parent();
+ KWordQuizApp *win=(KWordQuizApp *) tqparent();
win->actionCollection()->action("quiz_check")->setEnabled(true);
win->actionCollection()->action("quiz_repeat_errors")->setEnabled(false);
@@ -87,7 +87,7 @@ void MultipleView::init()
void MultipleView::slotCheck()
{
- KWordQuizApp *win=(KWordQuizApp *) parent();
+ KWordQuizApp *win=(KWordQuizApp *) tqparent();
if (win->actionCollection()->action("quiz_check")->isEnabled())
{
@@ -124,7 +124,7 @@ void MultipleView::slotCheck()
lblCorrectHeader->clear();
picCorrectAnswer->clear();
lblCorrect->clear();
- m_score->countIncrement(WQScore::cdCorrect);
+ m_score->countIncrement(WTQScore::cdCorrect);
updateScore();
KNotifyClient::event(winId(), "QuizCorrect", i18n("Your answer was correct!"));
}
@@ -138,7 +138,7 @@ void MultipleView::slotCheck()
//lblCorrect->setFont(m_quiz->fontAnswer(m_question));
picCorrectAnswer->setPixmap(KGlobal::iconLoader()->loadIcon("check", KIcon::Panel));
lblCorrectHeader->setText(i18n("Correct Answer"));
- m_score->countIncrement(WQScore::cdError);
+ m_score->countIncrement(WTQScore::cdError);
updateScore();
KNotifyClient::event(winId(), "QuizError", i18n("Your answer was incorrect."));
}
@@ -253,7 +253,7 @@ void MultipleView::showQuestion(int i)
lblQuestion -> setText(m_quiz ->question(i));
//lblQuestion -> setFont(m_quiz->fontQuestion(i));
- picQuestion->setPixmap(KGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiLeftCol), KIcon::Panel));
+ picQuestion->setPixmap(KGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WTQQuiz::qiLeftCol), KIcon::Panel));
lblAnswerLanguage -> setText(m_quiz ->langAnswer(i));
@@ -278,7 +278,7 @@ void MultipleView::showQuestion(int i)
opt2->setChecked(false);
opt3->setChecked(false);
- picAnswer->setPixmap(KGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiRightCol), KIcon::Panel));
+ picAnswer->setPixmap(KGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WTQQuiz::qiRightCol), KIcon::Panel));
}
void MultipleView::slotApplySettings( )