summaryrefslogtreecommitdiffstats
path: root/kwordquiz/src/qaview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:15:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:15:51 -0600
commit8cb8ba0f957e8a164cdcfbc2685b14d8d0a5c9a5 (patch)
tree896beb3aed9d9d27eb560459a9ab05d1230c018a /kwordquiz/src/qaview.cpp
parentc44bd981877cabab2b021987eb29ef00fbba9e82 (diff)
downloadtdeedu-8cb8ba0f957e8a164cdcfbc2685b14d8d0a5c9a5.tar.gz
tdeedu-8cb8ba0f957e8a164cdcfbc2685b14d8d0a5c9a5.zip
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'kwordquiz/src/qaview.cpp')
-rw-r--r--kwordquiz/src/qaview.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kwordquiz/src/qaview.cpp b/kwordquiz/src/qaview.cpp
index 049b4e19..6a5af0aa 100644
--- a/kwordquiz/src/qaview.cpp
+++ b/kwordquiz/src/qaview.cpp
@@ -150,7 +150,7 @@ void QAView::slotCheck()
if (fIsCorrect)
{
- picYourAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", KIcon::Panel));
+ picYourAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", TDEIcon::Panel));
lblYourAnswer->setText(m_quiz->yourAnswer(m_question, txtAnswer->text()));
lblCorrectHeader->clear();
picCorrectAnswer->clear();
@@ -163,10 +163,10 @@ void QAView::slotCheck()
{
m_error++;
- picYourAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", KIcon::Panel));
+ picYourAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", TDEIcon::Panel));
lblYourAnswer->setText(highlightError(m_quiz->answer(m_question), m_quiz->yourAnswer(m_question, txtAnswer->text())));
lblCorrect->setText(m_quiz->answer(m_question));
- picCorrectAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", KIcon::Panel));
+ picCorrectAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", TDEIcon::Panel));
lblCorrectHeader->setText(i18n("Correct Answer"));
m_score->countIncrement(WTQScore::cdError);
updateScore();
@@ -175,7 +175,7 @@ void QAView::slotCheck()
lblPreviousQuestionHeader->setText(i18n("Previous Question"));
lblPreviousQuestion->setText(m_quiz->question(m_question));
- picPrevious->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", KIcon::Panel));
+ picPrevious->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", TDEIcon::Panel));
lblYourAnswerHeader->setText(i18n("Your Answer"));
if (++m_question < m_quiz->questionCount())
@@ -194,7 +194,7 @@ void QAView::slotCheck()
lblAnswerLanguage->clear();
lblAnswerBlank->hide();
txtAnswer->hide();
- picQuestion->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", KIcon::Panel));
+ picQuestion->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", TDEIcon::Panel));
picAnswer->clear();
}
}
@@ -245,22 +245,22 @@ void QAView::updateScore()
TQString s;
s = s.setNum(m_quiz->questionCount(), 10);
lblScoreCount->setText(s);
- picCount->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", KIcon::Panel));
+ picCount->setPixmap(TDEGlobal::iconLoader()->loadIcon("kwordquiz", TDEIcon::Panel));
s = m_score->answerText();
lblScoreAnswered->setText(s);
if (!s.isEmpty())
- picAnswered->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", KIcon::Panel));
+ picAnswered->setPixmap(TDEGlobal::iconLoader()->loadIcon("question", TDEIcon::Panel));
s = m_score->correctText();
lblScoreCorrect->setText(s);
if (!s.isEmpty())
- picCorrect->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", KIcon::Panel));
+ picCorrect->setPixmap(TDEGlobal::iconLoader()->loadIcon("check", TDEIcon::Panel));
s = m_score->errorText();
lblScoreError->setText(s);
if (!s.isEmpty())
- picError->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", KIcon::Panel));
+ picError->setPixmap(TDEGlobal::iconLoader()->loadIcon("error", TDEIcon::Panel));
}
@@ -274,7 +274,7 @@ void QAView::showQuestion(int i)
lblQuestion -> setText(m_quiz ->question(i));
//lblQuestion -> setFont(m_quiz->fontQuestion(i));
- picQuestion->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiLeftCol), KIcon::Panel));
+ picQuestion->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiLeftCol), TDEIcon::Panel));
lblAnswerLanguage -> setText(m_quiz ->langAnswer(i));
@@ -290,7 +290,7 @@ void QAView::showQuestion(int i)
//txtAnswer->setFont(m_quiz->fontAnswer(i));
txtAnswer -> setText("");
- picAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiRightCol), KIcon::Panel));
+ picAnswer->setPixmap(TDEGlobal::iconLoader()->loadIcon(m_quiz->quizIcon(i, WQQuiz::qiRightCol), TDEIcon::Panel));
//@todo handle keyboard layouts
}