@ -150,7 +150,7 @@ void QAView::slotCheck()
if ( fIsCorrect )
if ( fIsCorrect )
{
{
picYourAnswer - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " check " , K Icon: : Panel ) ) ;
picYourAnswer - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " check " , TDE Icon: : Panel ) ) ;
lblYourAnswer - > setText ( m_quiz - > yourAnswer ( m_question , txtAnswer - > text ( ) ) ) ;
lblYourAnswer - > setText ( m_quiz - > yourAnswer ( m_question , txtAnswer - > text ( ) ) ) ;
lblCorrectHeader - > clear ( ) ;
lblCorrectHeader - > clear ( ) ;
picCorrectAnswer - > clear ( ) ;
picCorrectAnswer - > clear ( ) ;
@ -163,10 +163,10 @@ void QAView::slotCheck()
{
{
m_error + + ;
m_error + + ;
picYourAnswer - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " error " , K Icon: : Panel ) ) ;
picYourAnswer - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " error " , TDE Icon: : Panel ) ) ;
lblYourAnswer - > setText ( highlightError ( m_quiz - > answer ( m_question ) , m_quiz - > yourAnswer ( m_question , txtAnswer - > text ( ) ) ) ) ;
lblYourAnswer - > setText ( highlightError ( m_quiz - > answer ( m_question ) , m_quiz - > yourAnswer ( m_question , txtAnswer - > text ( ) ) ) ) ;
lblCorrect - > setText ( m_quiz - > answer ( m_question ) ) ;
lblCorrect - > setText ( m_quiz - > answer ( m_question ) ) ;
picCorrectAnswer - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " check " , K Icon: : Panel ) ) ;
picCorrectAnswer - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " check " , TDE Icon: : Panel ) ) ;
lblCorrectHeader - > setText ( i18n ( " Correct Answer " ) ) ;
lblCorrectHeader - > setText ( i18n ( " Correct Answer " ) ) ;
m_score - > countIncrement ( WTQScore : : cdError ) ;
m_score - > countIncrement ( WTQScore : : cdError ) ;
updateScore ( ) ;
updateScore ( ) ;
@ -175,7 +175,7 @@ void QAView::slotCheck()
lblPreviousQuestionHeader - > setText ( i18n ( " Previous Question " ) ) ;
lblPreviousQuestionHeader - > setText ( i18n ( " Previous Question " ) ) ;
lblPreviousQuestion - > setText ( m_quiz - > question ( m_question ) ) ;
lblPreviousQuestion - > setText ( m_quiz - > question ( m_question ) ) ;
picPrevious - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " question " , K Icon: : Panel ) ) ;
picPrevious - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " question " , TDE Icon: : Panel ) ) ;
lblYourAnswerHeader - > setText ( i18n ( " Your Answer " ) ) ;
lblYourAnswerHeader - > setText ( i18n ( " Your Answer " ) ) ;
if ( + + m_question < m_quiz - > questionCount ( ) )
if ( + + m_question < m_quiz - > questionCount ( ) )
@ -194,7 +194,7 @@ void QAView::slotCheck()
lblAnswerLanguage - > clear ( ) ;
lblAnswerLanguage - > clear ( ) ;
lblAnswerBlank - > hide ( ) ;
lblAnswerBlank - > hide ( ) ;
txtAnswer - > hide ( ) ;
txtAnswer - > hide ( ) ;
picQuestion - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " kwordquiz " , K Icon: : Panel ) ) ;
picQuestion - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " kwordquiz " , TDE Icon: : Panel ) ) ;
picAnswer - > clear ( ) ;
picAnswer - > clear ( ) ;
}
}
}
}
@ -245,22 +245,22 @@ void QAView::updateScore()
TQString s ;
TQString s ;
s = s . setNum ( m_quiz - > questionCount ( ) , 10 ) ;
s = s . setNum ( m_quiz - > questionCount ( ) , 10 ) ;
lblScoreCount - > setText ( s ) ;
lblScoreCount - > setText ( s ) ;
picCount - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " kwordquiz " , K Icon: : Panel ) ) ;
picCount - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " kwordquiz " , TDE Icon: : Panel ) ) ;
s = m_score - > answerText ( ) ;
s = m_score - > answerText ( ) ;
lblScoreAnswered - > setText ( s ) ;
lblScoreAnswered - > setText ( s ) ;
if ( ! s . isEmpty ( ) )
if ( ! s . isEmpty ( ) )
picAnswered - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " question " , K Icon: : Panel ) ) ;
picAnswered - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " question " , TDE Icon: : Panel ) ) ;
s = m_score - > correctText ( ) ;
s = m_score - > correctText ( ) ;
lblScoreCorrect - > setText ( s ) ;
lblScoreCorrect - > setText ( s ) ;
if ( ! s . isEmpty ( ) )
if ( ! s . isEmpty ( ) )
picCorrect - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " check " , K Icon: : Panel ) ) ;
picCorrect - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " check " , TDE Icon: : Panel ) ) ;
s = m_score - > errorText ( ) ;
s = m_score - > errorText ( ) ;
lblScoreError - > setText ( s ) ;
lblScoreError - > setText ( s ) ;
if ( ! s . isEmpty ( ) )
if ( ! s . isEmpty ( ) )
picError - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " error " , K Icon: : Panel ) ) ;
picError - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " error " , TDE Icon: : Panel ) ) ;
}
}
@ -274,7 +274,7 @@ void QAView::showQuestion(int i)
lblQuestion - > setText ( m_quiz - > question ( i ) ) ;
lblQuestion - > setText ( m_quiz - > question ( i ) ) ;
//lblQuestion -> setFont(m_quiz->fontQuestion(i));
//lblQuestion -> setFont(m_quiz->fontQuestion(i));
picQuestion - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( m_quiz - > quizIcon ( i , WQQuiz : : qiLeftCol ) , K Icon: : Panel ) ) ;
picQuestion - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( m_quiz - > quizIcon ( i , WQQuiz : : qiLeftCol ) , TDE Icon: : Panel ) ) ;
lblAnswerLanguage - > setText ( m_quiz - > langAnswer ( i ) ) ;
lblAnswerLanguage - > setText ( m_quiz - > langAnswer ( i ) ) ;
@ -290,7 +290,7 @@ void QAView::showQuestion(int i)
//txtAnswer->setFont(m_quiz->fontAnswer(i));
//txtAnswer->setFont(m_quiz->fontAnswer(i));
txtAnswer - > setText ( " " ) ;
txtAnswer - > setText ( " " ) ;
picAnswer - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( m_quiz - > quizIcon ( i , WQQuiz : : qiRightCol ) , K Icon: : Panel ) ) ;
picAnswer - > setPixmap ( TDEGlobal : : iconLoader ( ) - > loadIcon ( m_quiz - > quizIcon ( i , WQQuiz : : qiRightCol ) , TDE Icon: : Panel ) ) ;
//@todo handle keyboard layouts
//@todo handle keyboard layouts
}
}