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 c58031671..6b2868174 100644
--- a/knotes/knoteprinter.cpp
+++ b/knotes/knoteprinter.cpp
@@ -46,14 +46,14 @@ TQFont KNotePrinter::font() const
return m_font;
}
-void KNotePrinter::setColorGroup( const TQColorGroup& colorGroup )
+void KNotePrinter::tqsetColorGroup( const TQColorGroup& tqcolorGroup )
{
- m_colorGroup = colorGroup;
+ m_tqcolorGroup = tqcolorGroup;
}
-TQColorGroup KNotePrinter::colorGroup() const
+TQColorGroup KNotePrinter::tqcolorGroup() const
{
- return m_colorGroup;
+ return m_tqcolorGroup;
}
void KNotePrinter::setStyleSheet( TQStyleSheet* styleSheet )
@@ -71,7 +71,7 @@ void KNotePrinter::doPrint( KPrinter& printer, TQPainter& painter,
{
const int margin = 40; // pt
- TQPaintDeviceMetrics metrics( painter.device() );
+ TQPaintDeviceMetrics metrics( painter.tqdevice() );
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_colorGroup );
+ text.draw( &painter, body.left(), body.top(), view, m_tqcolorGroup );
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").arg(name) ) )
+ if ( !printer.setup( 0, i18n("Print %1").tqarg(name) ) )
return;
TQPainter painter;
painter.begin( &printer );