diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
commit | aa3a1ca934bc541bddd3fa136a85f106f7da266e (patch) | |
tree | 9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kcron/ktprint.cpp | |
parent | b10cf7066791a2f362495890cd50c984e8025412 (diff) | |
download | tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcron/ktprint.cpp')
-rw-r--r-- | kcron/ktprint.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kcron/ktprint.cpp b/kcron/ktprint.cpp index 423b6a1..b1de5c6 100644 --- a/kcron/ktprint.cpp +++ b/kcron/ktprint.cpp @@ -11,9 +11,9 @@ * (at your option) any later version. * ***************************************************************************/ -#include <qpainter.h> -#include <qstring.h> -#include <qpaintdevicemetrics.h> +#include <tqpainter.h> +#include <tqstring.h> +#include <tqpaintdevicemetrics.h> #include <ktprintopt.h> #include <klocale.h> @@ -80,12 +80,12 @@ bool KTPrint:: start () if (prnt->setup(0L, i18n("Print Cron Tab"))) { //Setup a printer if (paint!=NULL) delete paint; - paint = new QPainter (); + paint = new TQPainter (); paint->begin(prnt); paint->setTabStops(20); // Setup a defualt tab stop size //Get the information about the page size - QPaintDeviceMetrics metrics (prnt); + TQPaintDeviceMetrics metrics (prnt); width = metrics.width () - (leftMargin + rightMargin); height = metrics.height () - (topMargin + bottomMargin); return true; @@ -94,17 +94,17 @@ bool KTPrint:: start () return false; } -void KTPrint :: setFont (const QFont &font) +void KTPrint :: setFont (const TQFont &font) { paint->setFont(font); } -QFont KTPrint :: getFont () const +TQFont KTPrint :: getFont () const { return paint->font(); } -void KTPrint :: print (const QString &str, int col, int alignment, bool wordWrap) +void KTPrint :: print (const TQString &str, int col, int alignment, bool wordWrap) { //Prints the string str into the column col using //the remaining arguments as format flags @@ -132,7 +132,7 @@ void KTPrint :: print (const QString &str, int col, int alignment, bool wordWrap //Whats left of the page int remainder (height - columns[col-1]->height); - QRect rect=paint->boundingRect(columns[col-1]->start,columns[col-1]->height, columns[col-1]->width(), remainder,format, str); + TQRect rect=paint->boundingRect(columns[col-1]->start,columns[col-1]->height, columns[col-1]->width(), remainder,format, str); if (rect.height() <= remainder) { |