summaryrefslogtreecommitdiffstats
path: root/knotes/knoteprinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knotes/knoteprinter.cpp')
-rw-r--r--knotes/knoteprinter.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/knotes/knoteprinter.cpp b/knotes/knoteprinter.cpp
index 6b2868174..c58031671 100644
--- a/knotes/knoteprinter.cpp
+++ b/knotes/knoteprinter.cpp
@@ -46,14 +46,14 @@ TQFont KNotePrinter::font() const
return m_font;
}
-void KNotePrinter::tqsetColorGroup( const TQColorGroup& tqcolorGroup )
+void KNotePrinter::setColorGroup( const TQColorGroup& colorGroup )
{
- m_tqcolorGroup = tqcolorGroup;
+ m_colorGroup = colorGroup;
}
-TQColorGroup KNotePrinter::tqcolorGroup() const
+TQColorGroup KNotePrinter::colorGroup() const
{
- return m_tqcolorGroup;
+ return m_colorGroup;
}
void KNotePrinter::setStyleSheet( TQStyleSheet* styleSheet )
@@ -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;
@@ -93,7 +93,7 @@ void KNotePrinter::doPrint( KPrinter& printer, TQPainter& painter,
for (;;)
{
- text.draw( &painter, body.left(), body.top(), view, m_tqcolorGroup );
+ text.draw( &painter, body.left(), body.top(), view, m_colorGroup );
view.moveBy( 0, body.height() );
painter.translate( 0, -body.height() );
@@ -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 );