diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
commit | 0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch) | |
tree | 2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kbruch/src/taskwidget.cpp | |
parent | 83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff) | |
download | tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbruch/src/taskwidget.cpp')
-rw-r--r-- | kbruch/src/taskwidget.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kbruch/src/taskwidget.cpp b/kbruch/src/taskwidget.cpp index 378b7afb..1807283e 100644 --- a/kbruch/src/taskwidget.cpp +++ b/kbruch/src/taskwidget.cpp @@ -22,9 +22,9 @@ #include <klocale.h> /* these includes are needed for Qt support */ -#include <qpainter.h> +#include <tqpainter.h> -TaskWidget::TaskWidget(QWidget * parent = 0, const char * name = 0, +TaskWidget::TaskWidget(TQWidget * parent = 0, const char * name = 0, const task para_task = *new task()) : FractionBaseWidget(parent, name), m_task(para_task) { @@ -46,31 +46,31 @@ void TaskWidget::setTask(const task para_task) update(); } -void TaskWidget::paintEvent(QPaintEvent* /* p_paintEvent */) +void TaskWidget::paintEvent(TQPaintEvent* /* p_paintEvent */) { // our x position, we paint from left to right; // we don't want to start directly on the border, so add the margin int old_x = _MARGIN_X; // strings holding numerator, denominator and the operation sign - QString str_numerator, str_denominator, str_operation; + TQString str_numerator, str_denominator, str_operation; // operation sign as number short tmp_operation; // start the painter - QPainter paint(this); + TQPainter paint(this); // ratios and operation signs are painted with the same font paint.setFont(m_font); // set the pen for painting - QPen pen(Qt::SolidLine); + TQPen pen(Qt::SolidLine); pen.setWidth(0); paint.setPen(pen); // get the font height; the font height doesn't change while painting - QFontMetrics fm(paint.fontMetrics()); + TQFontMetrics fm(paint.fontMetrics()); // now we can correctly set the height of the widget setMinimumHeight(2 * fm.lineSpacing() + 10); |