summaryrefslogtreecommitdiffstats
path: root/kdeprint/cups/imageposition.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/cups/imageposition.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/cups/imageposition.cpp')
-rw-r--r--kdeprint/cups/imageposition.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kdeprint/cups/imageposition.cpp b/kdeprint/cups/imageposition.cpp
index 0489b5079..bc2b207fd 100644
--- a/kdeprint/cups/imageposition.cpp
+++ b/kdeprint/cups/imageposition.cpp
@@ -19,10 +19,10 @@
#include "imageposition.h"
-#include <qpainter.h>
+#include <tqpainter.h>
#include <kstandarddirs.h>
-static void draw3DPage(QPainter *p, QRect r)
+static void draw3DPage(TQPainter *p, TQRect r)
{
// draw white page
p->fillRect(r,Qt::white);
@@ -40,12 +40,12 @@ static void draw3DPage(QPainter *p, QRect r)
p->lineTo(r.right()-1,r.top()+1);
}
-ImagePosition::ImagePosition(QWidget *parent, const char *name)
- : QWidget(parent,name)
+ImagePosition::ImagePosition(TQWidget *parent, const char *name)
+ : TQWidget(parent,name)
{
position_ = Center;
setMinimumSize(sizeHint());
- setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));
+ setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding));
pix_.load(locate("data", "kdeprint/preview-mini.png"));
}
@@ -82,7 +82,7 @@ void ImagePosition::setPosition(int horiz, int vert)
setPosition((PositionType)type);
}
-QString ImagePosition::positionString() const
+TQString ImagePosition::positionString() const
{
switch (position_) {
case TopLeft: return "top-left";
@@ -98,7 +98,7 @@ QString ImagePosition::positionString() const
return "center";
}
-void ImagePosition::paintEvent(QPaintEvent*)
+void ImagePosition::paintEvent(TQPaintEvent*)
{
int horiz, vert, x, y;
int margin = 5;
@@ -131,7 +131,7 @@ void ImagePosition::paintEvent(QPaintEvent*)
case 1: y = (page.top()+page.bottom()-img.height())/2; break;
case 2: y = page.bottom()-margin-img.height(); break;
}
- img.moveTopLeft(QPoint(x,y));
+ img.moveTopLeft(TQPoint(x,y));
// draw page
QPainter p(this);
@@ -147,7 +147,7 @@ void ImagePosition::paintEvent(QPaintEvent*)
p.end();
}
-QSize ImagePosition::sizeHint() const
+TQSize ImagePosition::sizeHint() const
{
- return QSize(60, 80);
+ return TQSize(60, 80);
}