diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /example/example_part.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-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 'example/example_part.cc')
-rw-r--r-- | example/example_part.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/example/example_part.cc b/example/example_part.cc index e459040a4..7d695a9b3 100644 --- a/example/example_part.cc +++ b/example/example_part.cc @@ -21,15 +21,15 @@ #include "example_factory.h" #include "example_view.h" -#include <qpainter.h> +#include <tqpainter.h> -ExamplePart::ExamplePart( QWidget *parentWidget, const char *widgetName, QObject* parent, const char* name, bool singleViewMode ) - : KoDocument( parentWidget, widgetName, parent, name, singleViewMode ) +ExamplePart::ExamplePart( TQWidget *tqparentWidget, const char *widgetName, TQObject* tqparent, const char* name, bool singleViewMode ) + : KoDocument( tqparentWidget, widgetName, tqparent, name, singleViewMode ) { setInstance( ExampleFactory::global(), false ); } -bool ExamplePart::initDoc(InitDocFlags flags, QWidget* parentWidget) +bool ExamplePart::initDoc(InitDocFlags flags, TQWidget* tqparentWidget) { // If nothing is loaded, do initialize here // Most KOffice applications use the template dialog here, with code like: @@ -46,27 +46,27 @@ bool ExamplePart::initDoc(InitDocFlags flags, QWidget* parentWidget) return TRUE; } -KoView* ExamplePart::createViewInstance( QWidget* parent, const char* name ) +KoView* ExamplePart::createViewInstance( TQWidget* tqparent, const char* name ) { - return new ExampleView( this, parent, name ); + return new ExampleView( this, tqparent, name ); } -bool ExamplePart::loadXML( QIODevice *, const QDomDocument & ) +bool ExamplePart::loadXML( TQIODevice *, const TQDomDocument & ) { - // TODO load the document from the QDomDocument + // TODO load the document from the TQDomDocument return true; } -QDomDocument ExamplePart::saveXML() +TQDomDocument ExamplePart::saveXML() { - // TODO save the document into a QDomDocument - return QDomDocument(); + // TODO save the document into a TQDomDocument + return TQDomDocument(); } -bool ExamplePart::loadOasis( const QDomDocument & doc, KoOasisStyles& oasisStyles, - const QDomDocument & settings, KoStore* store ) +bool ExamplePart::loadOasis( const TQDomDocument & doc, KoOasisStyles& oasisStyles, + const TQDomDocument & settings, KoStore* store ) { - // TODO load the document from the QDomDocument + // TODO load the document from the TQDomDocument return true; } @@ -76,7 +76,7 @@ bool ExamplePart::saveOasis( KoStore* store, KoXmlWriter* manifestWriter ) return true; } -void ExamplePart::paintContent( QPainter& painter, const QRect& rect, bool /*transparent*/, +void ExamplePart::paintContent( TQPainter& painter, const TQRect& rect, bool /*transparent*/, double /*zoomX*/, double /*zoomY*/ ) { // ####### handle transparency |