diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 03:40:30 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 03:40:30 +0000 |
commit | e81150b9a05511335d58a7d0e3906531b417bd8c (patch) | |
tree | e4ac08cad3a60d0e09209aa41036c25738433243 /kwordquiz/src/qaview.cpp | |
parent | 56a9ebb65c99f639320c13148fe85d2b1e2a7562 (diff) | |
download | tdeedu-e81150b9a05511335d58a7d0e3906531b417bd8c.tar.gz tdeedu-e81150b9a05511335d58a7d0e3906531b417bd8c.zip |
Fix kwordquiz compilation
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236956 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwordquiz/src/qaview.cpp')
-rw-r--r-- | kwordquiz/src/qaview.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kwordquiz/src/qaview.cpp b/kwordquiz/src/qaview.cpp index c1339f75..4d7a23b0 100644 --- a/kwordquiz/src/qaview.cpp +++ b/kwordquiz/src/qaview.cpp @@ -63,23 +63,23 @@ TQString highlightError(const TQString & c, const TQString & e) } -TQAView::TQAView(TQWidget *tqparent, const char *name, WFlags f):QAViewBase(tqparent, name, f) +QAView::QAView(TQWidget *tqparent, const char *name, WFlags f):QAViewBase(tqparent, name, f) { m_score = new WTQScore(); } -TQAView::~TQAView() +QAView::~QAView() { delete txtAnswer; //Fixes #122110 on PCLOS and Ubuntu } -void TQAView::setQuiz(WQQuiz *quiz) +void QAView::setQuiz(WQQuiz *quiz) { m_quiz = quiz; } -void TQAView::init() +void QAView::init() { m_score -> setQuestionCount(m_quiz->questionCount()); m_score -> setAsPercent(Prefs::percent()); @@ -127,7 +127,7 @@ void TQAView::init() txtAnswer->setFocus(); } -void TQAView::slotCheck() +void QAView::slotCheck() { KWordQuizApp *win=(KWordQuizApp *) tqparent(); if (win->actionCollection()->action("quiz_check")->isEnabled()) @@ -200,7 +200,7 @@ void TQAView::slotCheck() } } -void TQAView::slotHint() +void QAView::slotHint() { TQString answer = txtAnswer->text(); TQString correctAnswer = m_quiz->hint(m_question); @@ -228,19 +228,19 @@ void TQAView::slotHint() m_hintUsed = true; } -void TQAView::slotRestart() +void QAView::slotRestart() { m_quiz->activateBaseList(); init(); } -void TQAView::slotRepeat() +void QAView::slotRepeat() { m_quiz->activateErrorList(); init(); } -void TQAView::updateScore() +void QAView::updateScore() { TQString s; s = s.setNum(m_quiz->questionCount(), 10); @@ -265,9 +265,9 @@ void TQAView::updateScore() /*! - \fn TQAView::showQuestion(int i) + \fn QAView::showQuestion(int i) */ -void TQAView::showQuestion(int i) +void QAView::showQuestion(int i) { //m_quiz->setColumn(i); lblQuestionLanguage -> setText(m_quiz ->langQuestion(i)); @@ -295,13 +295,13 @@ void TQAView::showQuestion(int i) //@todo handle keyboard tqlayouts } -void TQAView::slotApplySettings( ) +void QAView::slotApplySettings( ) { m_score ->setAsPercent(Prefs::percent()); updateScore(); } -void TQAView::slotSpecChar( const TQChar & c) +void QAView::slotSpecChar( const TQChar & c) { if (txtAnswer->hasFocus()) { |