summaryrefslogtreecommitdiffstats
path: root/kbruch/src/statisticsview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:55:10 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:55:10 -0600
commit746abe84406ed1ec1a8dc68f29ce0ab8322ccc80 (patch)
tree34a73ef7b8771de54099eeffb941117e49a8865e /kbruch/src/statisticsview.cpp
parent999f961ff5278b84c8ffd8a91addb9343e589cf0 (diff)
downloadtdeedu-746abe84406ed1ec1a8dc68f29ce0ab8322ccc80.tar.gz
tdeedu-746abe84406ed1ec1a8dc68f29ce0ab8322ccc80.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'kbruch/src/statisticsview.cpp')
-rw-r--r--kbruch/src/statisticsview.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kbruch/src/statisticsview.cpp b/kbruch/src/statisticsview.cpp
index 6c73b2b8..9dfabd01 100644
--- a/kbruch/src/statisticsview.cpp
+++ b/kbruch/src/statisticsview.cpp
@@ -150,14 +150,14 @@ void StatisticsView::addCorrect()
{
++m_count;
++m_correct;
- (void) calc(); /* tqrepaint the statistics */
+ (void) calc(); /* repaint the statistics */
}
/* called, if a task was solved wrong */
void StatisticsView::addWrong()
{
++m_count;
- (void) calc(); /* tqrepaint the statistics */
+ (void) calc(); /* repaint the statistics */
}
@@ -169,7 +169,7 @@ void StatisticsView::calc()
TQString new_text;
TQString number;
- new_text = TQString("<b>%1</b>").tqarg(m_count);
+ new_text = TQString("<b>%1</b>").arg(m_count);
result1Label->setText(new_text);
/* we have to be careful with division by 0 */
@@ -179,11 +179,11 @@ void StatisticsView::calc()
result3Label->setText("- (- %)");
} else {
/* set the correct label */
- new_text = TQString("%1 (%2 %)").tqarg(m_correct).tqarg(int(double(m_correct) / m_count * 100));
+ new_text = TQString("%1 (%2 %)").arg(m_correct).arg(int(double(m_correct) / m_count * 100));
result2Label->setText(new_text);
/* set the incorrect label */
- new_text = TQString("%1 (%2 %)").tqarg(m_count - m_correct).tqarg(int(double(m_count - m_correct) / m_count * 100));
+ new_text = TQString("%1 (%2 %)").arg(m_count - m_correct).arg(int(double(m_count - m_correct) / m_count * 100));
result3Label->setText(new_text);
}
}