diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /example | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'example')
-rw-r--r-- | example/example_factory.cc | 8 | ||||
-rw-r--r-- | example/example_factory.h | 4 | ||||
-rw-r--r-- | example/example_part.cc | 8 | ||||
-rw-r--r-- | example/example_part.h | 4 | ||||
-rw-r--r-- | example/example_view.cc | 4 | ||||
-rw-r--r-- | example/example_view.h | 2 |
6 files changed, 15 insertions, 15 deletions
diff --git a/example/example_factory.cc b/example/example_factory.cc index ebba090d..261d75cd 100644 --- a/example/example_factory.cc +++ b/example/example_factory.cc @@ -30,8 +30,8 @@ K_EXPORT_COMPONENT_FACTORY( libexamplepart, ExampleFactory ) KInstance* ExampleFactory::s_global = 0L; KAboutData* ExampleFactory::s_aboutData = 0L; -ExampleFactory::ExampleFactory( TQObject* tqparent, const char* name ) - : KoFactory( tqparent, name ) +ExampleFactory::ExampleFactory( TQObject* parent, const char* name ) + : KoFactory( parent, name ) { global(); } @@ -44,14 +44,14 @@ ExampleFactory::~ExampleFactory() s_global = 0L; } -KParts::Part* ExampleFactory::createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject* tqparent, const char* name, const char* classname, const TQStringList & ) +KParts::Part* ExampleFactory::createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject* parent, const char* name, const char* classname, const TQStringList & ) { // If classname is "KoDocument", our host is a koffice application // otherwise, the host wants us as a simple part, so switch to readonly and single view. bool bWantKoDocument = ( strcmp( classname, "KoDocument" ) == 0 ); // parentWidget and widgetName are used by KoDocument for the "readonly+singleView" case. - ExamplePart *part = new ExamplePart( parentWidget, widgetName, tqparent, name, !bWantKoDocument ); + ExamplePart *part = new ExamplePart( parentWidget, widgetName, parent, name, !bWantKoDocument ); if ( !bWantKoDocument ) part->setReadWrite( false ); diff --git a/example/example_factory.h b/example/example_factory.h index 4ecc8b3a..762deb4b 100644 --- a/example/example_factory.h +++ b/example/example_factory.h @@ -30,10 +30,10 @@ class ExampleFactory : public KoFactory Q_OBJECT TQ_OBJECT public: - ExampleFactory( TQObject* tqparent = 0, const char* name = 0 ); + ExampleFactory( TQObject* parent = 0, const char* name = 0 ); ~ExampleFactory(); - virtual KParts::Part *createPartObject( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *tqparent = 0, const char *name = 0, const char *classname = "KoDocument", const TQStringList &args = TQStringList() ); + virtual KParts::Part *createPartObject( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KoDocument", const TQStringList &args = TQStringList() ); static KInstance* global(); diff --git a/example/example_part.cc b/example/example_part.cc index f71ff4f4..4afc46b0 100644 --- a/example/example_part.cc +++ b/example/example_part.cc @@ -23,8 +23,8 @@ #include <tqpainter.h> -ExamplePart::ExamplePart( TQWidget *parentWidget, const char *widgetName, TQObject* tqparent, const char* name, bool singleViewMode ) - : KoDocument( parentWidget, widgetName, tqparent, name, singleViewMode ) +ExamplePart::ExamplePart( TQWidget *parentWidget, const char *widgetName, TQObject* parent, const char* name, bool singleViewMode ) + : KoDocument( parentWidget, widgetName, parent, name, singleViewMode ) { setInstance( ExampleFactory::global(), false ); } @@ -46,9 +46,9 @@ bool ExamplePart::initDoc(InitDocFlags flags, TQWidget* parentWidget) return TRUE; } -KoView* ExamplePart::createViewInstance( TQWidget* tqparent, const char* name ) +KoView* ExamplePart::createViewInstance( TQWidget* parent, const char* name ) { - return new ExampleView( this, tqparent, name ); + return new ExampleView( this, parent, name ); } bool ExamplePart::loadXML( TQIODevice *, const TQDomDocument & ) diff --git a/example/example_part.h b/example/example_part.h index 4f551982..06157132 100644 --- a/example/example_part.h +++ b/example/example_part.h @@ -27,7 +27,7 @@ class ExamplePart : public KoDocument Q_OBJECT TQ_OBJECT public: - ExamplePart( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject* tqparent = 0, const char* name = 0, bool singleViewMode = false ); + ExamplePart( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject* parent = 0, const char* name = 0, bool singleViewMode = false ); virtual void paintContent( TQPainter& painter, const TQRect& rect, bool transparent = FALSE, double zoomX = 1.0, double zoomY = 1.0 ); @@ -41,7 +41,7 @@ public: virtual bool saveOasis( KoStore* store, KoXmlWriter* manifestWriter ); protected: - virtual KoView* createViewInstance( TQWidget* tqparent, const char* name ); + virtual KoView* createViewInstance( TQWidget* parent, const char* name ); }; #endif diff --git a/example/example_view.cc b/example/example_view.cc index b23412c6..fe15ba4f 100644 --- a/example/example_view.cc +++ b/example/example_view.cc @@ -28,8 +28,8 @@ #include <klocale.h> #include <kdebug.h> -ExampleView::ExampleView( ExamplePart* part, TQWidget* tqparent, const char* name ) - : KoView( part, tqparent, name ) +ExampleView::ExampleView( ExamplePart* part, TQWidget* parent, const char* name ) + : KoView( part, parent, name ) { setInstance( ExampleFactory::global() ); if ( !part->isReadWrite() ) // readonly case, e.g. when embedded into konqueror diff --git a/example/example_view.h b/example/example_view.h index 3f4866f7..abafea8e 100644 --- a/example/example_view.h +++ b/example/example_view.h @@ -32,7 +32,7 @@ class ExampleView : public KoView Q_OBJECT TQ_OBJECT public: - ExampleView( ExamplePart* part, TQWidget* tqparent = 0, const char* name = 0 ); + ExampleView( ExamplePart* part, TQWidget* parent = 0, const char* name = 0 ); protected slots: void cut(); |