diff options
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 |