diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
commit | a374efce3a207b39514be3c52264091400ce297e (patch) | |
tree | 77bdf654b55826d4f59b53a5621310206bcaead1 /kbruch/src/fractionbasewidget.cpp | |
parent | f81a494f3957d5cf38c787973415597941934727 (diff) | |
download | tdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip |
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbruch/src/fractionbasewidget.cpp')
-rw-r--r-- | kbruch/src/fractionbasewidget.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kbruch/src/fractionbasewidget.cpp b/kbruch/src/fractionbasewidget.cpp index 07f60c84..0e1d4d0b 100644 --- a/kbruch/src/fractionbasewidget.cpp +++ b/kbruch/src/fractionbasewidget.cpp @@ -21,13 +21,13 @@ /* these includes are needed for KDE support */ #include <kglobalsettings.h> -/* these includes are needed for Qt support */ +/* these includes are needed for TQt support */ #include <tqpainter.h> #include "settingsclass.h" -FractionBaseWidget::FractionBaseWidget(TQWidget * parent = 0, const char * name = 0) : - TQWidget(parent, name) +FractionBaseWidget::FractionBaseWidget(TQWidget * tqparent = 0, const char * name = 0) : + TQWidget(tqparent, name) { #ifdef DEBUG kdDebug() << "constructor FractionBaseWidget" << endl; @@ -68,14 +68,14 @@ void FractionBaseWidget::paintRatio(TQPainter & paint, ratio tmp_ratio, int & x_ // 5 5 int_numerator = tmp_ratio.numerator(); int_denominator = tmp_ratio.denominator(); - if (show_mixed == true && QABS(int_numerator) >= QABS(int_denominator)) + if (show_mixed == true && TQABS(int_numerator) >= TQABS(int_denominator)) { // calculate the mixed number int_mixed = int(int_numerator / int_denominator); // the negative sign is in front of the mixed number - int_numerator = QABS(int_numerator); - int_denominator = QABS(int_denominator); + int_numerator = TQABS(int_numerator); + int_denominator = TQABS(int_denominator); // we have to reduce the numerator by the mixed number * denominator int_numerator = int_numerator % int_denominator; @@ -92,7 +92,7 @@ void FractionBaseWidget::paintRatio(TQPainter & paint, ratio tmp_ratio, int & x_ // don't show the ratio as mixed number str_numerator.setNum(int_numerator); str_denominator.setNum(int_denominator); - } // if (show_mixed == true && QABS(int_numerator) > QABS(int_denominator)) + } // if (show_mixed == true && TQABS(int_numerator) > TQABS(int_denominator)) // get the text width of the current ratio fontWidth = fm.width(str_numerator); @@ -161,7 +161,7 @@ void FractionBaseWidget::setColorAndFont() /* set font */ m_font = SettingsClass::taskFont(); - // repaint + // tqrepaint update(); return; |