diff options
Diffstat (limited to 'kvoctrain/kvoctrain/statistik-dialogs/StatistikPage.cpp')
-rw-r--r-- | kvoctrain/kvoctrain/statistik-dialogs/StatistikPage.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kvoctrain/kvoctrain/statistik-dialogs/StatistikPage.cpp b/kvoctrain/kvoctrain/statistik-dialogs/StatistikPage.cpp index 7453b75c..f634b4dd 100644 --- a/kvoctrain/kvoctrain/statistik-dialogs/StatistikPage.cpp +++ b/kvoctrain/kvoctrain/statistik-dialogs/StatistikPage.cpp @@ -47,10 +47,10 @@ #define TB_LESSON 3 -class GradeListItem : public QListViewItem +class GradeListItem : public TQListViewItem { public: - inline GradeListItem (TQListView* parent, int _lesson): TQListViewItem(parent), lesson(_lesson) {} + inline GradeListItem (TQListView* tqparent, int _lesson): TQListViewItem(tqparent), lesson(_lesson) {} inline int getLesson() const { return lesson; } private: @@ -58,8 +58,8 @@ private: }; -StatistikPage::StatistikPage(int col, kvoctrainDoc *_doc, TQWidget *parent, const char *name) - : StatistikPageForm( parent, name ), doc(_doc) +StatistikPage::StatistikPage(int col, kvoctrainDoc *_doc, TQWidget *tqparent, const char *name) + : StatistikPageForm( tqparent, name ), doc(_doc) { StatListView->setColumnWidth(0, SIZE_GRADE + 10); StatListView->setColumnWidth(1, SIZE_GRADE + 10); @@ -74,8 +74,8 @@ StatistikPage::StatistikPage(int col, kvoctrainDoc *_doc, TQWidget *parent, con // accumulate numbers of grades per lesson for (int i = 0; i < (int) doc->numEntries(); i++) { kvoctrainExpr *expr = doc->getEntry(i); - int fg = QMIN(KV_MAX_GRADE, expr->getGrade(col, false)); - int tg = QMIN(KV_MAX_GRADE, expr->getGrade(col, true)); + int fg = TQMIN(KV_MAX_GRADE, expr->getGrade(col, false)); + int tg = TQMIN(KV_MAX_GRADE, expr->getGrade(col, true)); int l = expr->getLesson(); if (l >= 0 && l <= (int) lesson.size() ) { fsc[l].grade[fg]++; @@ -123,7 +123,7 @@ void StatistikPage::setupPixmaps() } else { --num; - widths[j] = QMAX(MIN_COL_WIDTH, fsc[entry].grade[j] * maxw / fsc[entry].num); + widths[j] = TQMAX(MIN_COL_WIDTH, fsc[entry].grade[j] * maxw / fsc[entry].num); w -= widths[j]; } } @@ -181,7 +181,7 @@ void StatistikPage::setupPixmaps() } else { --num; - widths[j] = QMAX(MIN_COL_WIDTH, tsc[entry].grade[j] * maxw / tsc[entry].num); + widths[j] = TQMAX(MIN_COL_WIDTH, tsc[entry].grade[j] * maxw / tsc[entry].num); w -= widths[j]; } } |