summaryrefslogtreecommitdiffstats
path: root/kugar/lib/mpagedisplay.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kugar/lib/mpagedisplay.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kugar/lib/mpagedisplay.cpp')
-rw-r--r--kugar/lib/mpagedisplay.cpp16
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 );
}
}