diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
commit | bab40890696ec68c337dc290880423a0602b83c7 (patch) | |
tree | 6ba03f720b1fa88235ba339e7aedb4455430357e /kdeprint/marginpreview.cpp | |
parent | f7e71d47719ab6094cf4a9fafffa5ea351973522 (diff) | |
download | tdelibs-bab40890696ec68c337dc290880423a0602b83c7.tar.gz tdelibs-bab40890696ec68c337dc290880423a0602b83c7.zip |
Finished remaining porting to new TQt API
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/marginpreview.cpp')
-rw-r--r-- | kdeprint/marginpreview.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kdeprint/marginpreview.cpp b/kdeprint/marginpreview.cpp index b41a14388..191d1850c 100644 --- a/kdeprint/marginpreview.cpp +++ b/kdeprint/marginpreview.cpp @@ -126,9 +126,9 @@ void MarginPreview::resizeEvent(TQResizeEvent *) void MarginPreview::paintEvent(TQPaintEvent *) { - QPainter p(this); + TQPainter p(this); - QRect pagebox(TQPoint(box_.left()-1,box_.top()-1),TQPoint(box_.right()+2,box_.bottom()+2)); + TQRect pagebox(TQPoint(box_.left()-1,box_.top()-1),TQPoint(box_.right()+2,box_.bottom()+2)); if (nopreview_) { @@ -212,22 +212,22 @@ void MarginPreview::mouseMoveEvent(TQMouseEvent *e) switch (state_) { case TMoving: - newpos = QMIN(QMAX(e->pos().y(), box_.top()), (symetric_ ? (box_.top()+box_.bottom())/2 : margbox_.bottom()+1)); + newpos = TQMIN(TQMAX(e->pos().y(), box_.top()), (symetric_ ? (box_.top()+box_.bottom())/2 : margbox_.bottom()+1)); break; case BMoving: - newpos = QMIN(QMAX(e->pos().y(), (symetric_? (box_.top()+box_.bottom()+1)/2 : margbox_.top()-1)), box_.bottom()); + newpos = TQMIN(TQMAX(e->pos().y(), (symetric_? (box_.top()+box_.bottom()+1)/2 : margbox_.top()-1)), box_.bottom()); break; case LMoving: - newpos = QMIN(QMAX(e->pos().x(), box_.left()), (symetric_ ? (box_.left()+box_.right())/2 : margbox_.right()+1)); + newpos = TQMIN(TQMAX(e->pos().x(), box_.left()), (symetric_ ? (box_.left()+box_.right())/2 : margbox_.right()+1)); break; case RMoving: - newpos = QMIN(QMAX(e->pos().x(), (symetric_ ? (box_.left()+box_.right()+1)/2 : margbox_.left()-1)), box_.right()); + newpos = TQMIN(TQMAX(e->pos().x(), (symetric_ ? (box_.left()+box_.right()+1)/2 : margbox_.left()-1)), box_.right()); break; } if (newpos != oldpos_) { - QPainter p(this); - p.setRasterOp(Qt::XorROP); + TQPainter p(this); + p.setRasterOp(TQt::XorROP); p.setPen(gray); for (int i=0; i<2; i++, oldpos_ = newpos) { @@ -275,8 +275,8 @@ void MarginPreview::mouseReleaseEvent(TQMouseEvent *e) { if (state_ > None) { - QPainter p(this); - p.setRasterOp(Qt::XorROP); + TQPainter p(this); + p.setRasterOp(TQt::XorROP); p.setPen(gray); if (oldpos_ >= 0) { |