diff options
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) { |