summaryrefslogtreecommitdiffstats
path: root/kugar/lib/mpagedisplay.h
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.h
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.h')
-rw-r--r--kugar/lib/mpagedisplay.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/kugar/lib/mpagedisplay.h b/kugar/lib/mpagedisplay.h
index ffaa49213..db4f7f74b 100644
--- a/kugar/lib/mpagedisplay.h
+++ b/kugar/lib/mpagedisplay.h
@@ -9,11 +9,11 @@
#ifndef MPAGEDISPLAY_H
#define MPAGEDISPLAY_H
-#include <qwidget.h>
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qpicture.h>
-#include <qsize.h>
+#include <tqwidget.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
+#include <tqpicture.h>
+#include <tqsize.h>
/**Kugar page display widget
*@author Mutiny Bay Software
@@ -22,31 +22,32 @@
namespace Kugar
{
-class MPageDisplay : public QWidget
+class MPageDisplay : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
/** Constructor */
- MPageDisplay( QWidget *parent = 0, const char *name = 0 );
+ MPageDisplay( TQWidget *tqparent = 0, const char *name = 0 );
/** Destructor */
virtual ~MPageDisplay();
private:
/** Page Widget's image buffer */
- QPixmap buffer;
+ TQPixmap buffer;
public:
/** Sets the page image */
- void setPage( QPicture* image );
+ void setPage( TQPicture* image );
/** Sets the page display dimensions */
- void setPageDimensions( QSize size );
+ void setPageDimensions( TQSize size );
- QSize sizeHint() const;
- QSizePolicy sizePolicy() const;
+ TQSize tqsizeHint() const;
+ TQSizePolicy sizePolicy() const;
protected:
/** Page widget's's paint event */
- void paintEvent( QPaintEvent* event );
+ void paintEvent( TQPaintEvent* event );
};