diff options
Diffstat (limited to 'knotes/knoteprinter.cpp')
-rw-r--r-- | knotes/knoteprinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/knotes/knoteprinter.cpp b/knotes/knoteprinter.cpp index a94e46310..c58031671 100644 --- a/knotes/knoteprinter.cpp +++ b/knotes/knoteprinter.cpp @@ -71,7 +71,7 @@ void KNotePrinter::doPrint( KPrinter& printer, TQPainter& painter, { const int margin = 40; // pt - TQPaintDeviceMetrics metrics( painter.tqdevice() ); + TQPaintDeviceMetrics metrics( painter.device() ); int marginX = margin * metrics.logicalDpiX() / 72; int marginY = margin * metrics.logicalDpiY() / 72; @@ -117,7 +117,7 @@ void KNotePrinter::printNote( const TQString& name, const TQString& content ) co KPrinter printer; printer.setFullPage( true ); - if ( !printer.setup( 0, i18n("Print %1").tqarg(name) ) ) + if ( !printer.setup( 0, i18n("Print %1").arg(name) ) ) return; TQPainter painter; painter.begin( &printer ); |