From bab40890696ec68c337dc290880423a0602b83c7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 16 Jan 2011 02:40:35 +0000 Subject: 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 --- kdeprint/cups/ippreportdlg.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kdeprint/cups/ippreportdlg.cpp') diff --git a/kdeprint/cups/ippreportdlg.cpp b/kdeprint/cups/ippreportdlg.cpp index 20882d8c4..b7ef270bd 100644 --- a/kdeprint/cups/ippreportdlg.cpp +++ b/kdeprint/cups/ippreportdlg.cpp @@ -48,20 +48,20 @@ void IppReportDlg::slotUser1() printer.setDocName(caption()); if (printer.setup(this)) { - QPainter painter(&printer); - QPaintDeviceMetrics metrics(&printer); + TQPainter painter(&printer); + TQPaintDeviceMetrics metrics(&printer); - // report is printed using QSimpleRichText - QSimpleRichText rich(m_edit->text(), font()); + // report is printed using TQSimpleRichText + TQSimpleRichText rich(m_edit->text(), font()); rich.setWidth(&painter, metrics.width()); int margin = (int)(1.5 / 2.54 * metrics.logicalDpiY()); // 1.5 cm - QRect r(margin, margin, metrics.width()-2*margin, metrics.height()-2*margin); + TQRect r(margin, margin, metrics.width()-2*margin, metrics.height()-2*margin); int hh = rich.height(), page(1); while (1) { rich.draw(&painter, margin, margin, r, tqcolorGroup()); - QString s = caption() + ": " + TQString::number(page); - QRect br = painter.fontMetrics().boundingRect(s); + TQString s = caption() + ": " + TQString::number(page); + TQRect br = painter.fontMetrics().boundingRect(s); painter.drawText(r.right()-br.width()-5, r.top()-br.height()-4, br.width()+5, br.height()+4, Qt::AlignRight|Qt::AlignTop, s); r.moveBy(0, r.height()-10); painter.translate(0, -(r.height()-10)); @@ -78,8 +78,8 @@ void IppReportDlg::slotUser1() void IppReportDlg::report(IppRequest *req, int group, const TQString& caption) { - QString str_report; - QTextStream t(&str_report, IO_WriteOnly); + TQString str_report; + TQTextStream t(&str_report, IO_WriteOnly); if (req->htmlReport(group, t)) { -- cgit v1.2.1