diff options
Diffstat (limited to 'kugar/lib/mpagedisplay.cpp')
-rw-r--r-- | kugar/lib/mpagedisplay.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kugar/lib/mpagedisplay.cpp b/kugar/lib/mpagedisplay.cpp index c3a5d587..75ff2999 100644 --- a/kugar/lib/mpagedisplay.cpp +++ b/kugar/lib/mpagedisplay.cpp @@ -12,7 +12,7 @@ namespace Kugar { /** Constructor */ -MPageDisplay::MPageDisplay( QWidget *parent, const char *name ) : QWidget( parent, name ) +MPageDisplay::MPageDisplay( TQWidget *tqparent, const char *name ) : TQWidget( tqparent, name ) { buffer.resize( 1, 1 ); } @@ -22,21 +22,21 @@ MPageDisplay::~MPageDisplay() {} /** Sets the report page image */ -void MPageDisplay::setPage( QPicture* image ) +void MPageDisplay::setPage( TQPicture* image ) { buffer.fill( white ); - QPainter p( &buffer ); + TQPainter p( &buffer ); image->play( &p ); } /** Display object's paint event */ -void MPageDisplay::paintEvent( QPaintEvent* event ) +void MPageDisplay::paintEvent( TQPaintEvent* event ) { bitBlt( this, 0, 0, &buffer ); } /** Sets the page display dimensions */ -void MPageDisplay::setPageDimensions( QSize size ) +void MPageDisplay::setPageDimensions( TQSize size ) { buffer.resize( size ); resize( size ); @@ -45,7 +45,7 @@ void MPageDisplay::setPageDimensions( QSize size ) // Return the preferred size of the display. -QSize MPageDisplay::sizeHint() const +TQSize MPageDisplay::tqsizeHint() const { return buffer.size(); } @@ -53,9 +53,9 @@ QSize MPageDisplay::sizeHint() const // Return the size policy. -QSizePolicy MPageDisplay::sizePolicy() const +TQSizePolicy MPageDisplay::sizePolicy() const { - return QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ); + return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); } } |