summaryrefslogtreecommitdiffstats
path: root/kugar
diff options
context:
space:
mode:
Diffstat (limited to 'kugar')
-rw-r--r--kugar/kudesigner/kudesigner_doc.cpp8
-rw-r--r--kugar/kudesigner/kudesigner_doc.h4
-rw-r--r--kugar/kudesigner/kudesigner_factory.cpp8
-rw-r--r--kugar/kudesigner/kudesigner_factory.h4
-rw-r--r--kugar/kudesigner/kudesigner_view.cpp4
-rw-r--r--kugar/kudesigner/kudesigner_view.h2
-rw-r--r--kugar/kudesigner_lib/plugin.cpp2
-rw-r--r--kugar/kudesigner_lib/plugin.h2
-rw-r--r--kugar/kudesigner_lib/structurewidget.cpp12
-rw-r--r--kugar/kudesigner_lib/structurewidget.h2
-rw-r--r--kugar/kudesigner_lib/view.cpp4
-rw-r--r--kugar/kudesigner_lib/view.h2
-rw-r--r--kugar/lib/inputmask.cpp30
-rw-r--r--kugar/lib/inputmask.h12
-rw-r--r--kugar/lib/mfieldobject.cpp2
-rw-r--r--kugar/lib/mfieldobject.h2
-rw-r--r--kugar/lib/mpagecollection.cpp2
-rw-r--r--kugar/lib/mpagecollection.h2
-rw-r--r--kugar/lib/mpagedisplay.cpp2
-rw-r--r--kugar/lib/mpagedisplay.h2
-rw-r--r--kugar/lib/mreportviewer.cpp4
-rw-r--r--kugar/lib/mreportviewer.h4
-rw-r--r--kugar/part/kugar_factory.cpp6
-rw-r--r--kugar/part/kugar_factory.h4
-rw-r--r--kugar/part/kugar_part.cpp8
-rw-r--r--kugar/part/kugar_part.h4
-rw-r--r--kugar/part/kugar_view.cpp4
-rw-r--r--kugar/part/kugar_view.h2
28 files changed, 72 insertions, 72 deletions
diff --git a/kugar/kudesigner/kudesigner_doc.cpp b/kugar/kudesigner/kudesigner_doc.cpp
index 28ed36d1..0e7355b2 100644
--- a/kugar/kudesigner/kudesigner_doc.cpp
+++ b/kugar/kudesigner/kudesigner_doc.cpp
@@ -41,8 +41,8 @@
#include "kudesigner_view.h"
-KudesignerDoc::KudesignerDoc( TQWidget *parentWidget, const char *widgetName, TQObject* tqparent, const char* name, bool singleViewMode )
- : KoDocument( parentWidget, widgetName, tqparent, name, singleViewMode ), m_plugin( 0 ), m_propPos( DockRight ), m_modified( false )
+KudesignerDoc::KudesignerDoc( TQWidget *parentWidget, const char *widgetName, TQObject* parent, const char* name, bool singleViewMode )
+ : KoDocument( parentWidget, widgetName, parent, name, singleViewMode ), m_plugin( 0 ), m_propPos( DockRight ), m_modified( false )
{
setInstance( KudesignerFactory::global(), false );
setTemplateType("kudesigner_template");
@@ -121,9 +121,9 @@ void KudesignerDoc::initEmpty()
setModified(false);
}
-KoView* KudesignerDoc::createViewInstance( TQWidget* tqparent, const char* name )
+KoView* KudesignerDoc::createViewInstance( TQWidget* parent, const char* name )
{
- return new KudesignerView( this, tqparent, name );
+ return new KudesignerView( this, parent, name );
}
bool KudesignerDoc::loadOasis( const TQDomDocument&, KoOasisStyles&, const TQDomDocument&, KoStore* )
diff --git a/kugar/kudesigner/kudesigner_doc.h b/kugar/kudesigner/kudesigner_doc.h
index 659b3e1c..1085a975 100644
--- a/kugar/kudesigner/kudesigner_doc.h
+++ b/kugar/kudesigner/kudesigner_doc.h
@@ -39,7 +39,7 @@ class KudesignerDoc: public KoDocument
Q_OBJECT
TQ_OBJECT
public:
- KudesignerDoc( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject* tqparent = 0, const char* name = 0, bool singleViewMode = false );
+ KudesignerDoc( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject* parent = 0, const char* name = 0, bool singleViewMode = false );
~KudesignerDoc();
@@ -77,7 +77,7 @@ public slots:
virtual void initEmpty();
protected:
- virtual KoView* createViewInstance( TQWidget* tqparent, const char* name );
+ virtual KoView* createViewInstance( TQWidget* parent, const char* name );
virtual bool completeSaving( KoStore* store );
virtual bool completeLoading( KoStore* store );
diff --git a/kugar/kudesigner/kudesigner_factory.cpp b/kugar/kudesigner/kudesigner_factory.cpp
index f8712f03..1f5a8740 100644
--- a/kugar/kudesigner/kudesigner_factory.cpp
+++ b/kugar/kudesigner/kudesigner_factory.cpp
@@ -29,8 +29,8 @@
KInstance* KudesignerFactory::s_global = 0L;
KAboutData* KudesignerFactory::s_aboutData = 0L;
-KudesignerFactory::KudesignerFactory( TQObject* tqparent, const char* name )
- : KoFactory( tqparent, name )
+KudesignerFactory::KudesignerFactory( TQObject* parent, const char* name )
+ : KoFactory( parent, name )
{
global();
}
@@ -43,13 +43,13 @@ KudesignerFactory::~KudesignerFactory()
s_global = 0L;
}
-KParts::Part* KudesignerFactory::createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject* tqparent, const char* name, const char* classname, const TQStringList & data )
+KParts::Part* KudesignerFactory::createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject* parent, const char* name, const char* classname, const TQStringList & data )
{
// 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.
- KudesignerDoc *part = new KudesignerDoc( parentWidget, widgetName, tqparent, name, !bWantKoDocument );
+ KudesignerDoc *part = new KudesignerDoc( parentWidget, widgetName, parent, name, !bWantKoDocument );
if ( !bWantKoDocument )
part->setReadWrite( false );
diff --git a/kugar/kudesigner/kudesigner_factory.h b/kugar/kudesigner/kudesigner_factory.h
index fd8956f6..1cf4e103 100644
--- a/kugar/kudesigner/kudesigner_factory.h
+++ b/kugar/kudesigner/kudesigner_factory.h
@@ -30,10 +30,10 @@ class KUGARDESIGNER_EXPORT KudesignerFactory : public KoFactory
Q_OBJECT
TQ_OBJECT
public:
- KudesignerFactory( TQObject* tqparent = 0, const char* name = 0 );
+ KudesignerFactory( TQObject* parent = 0, const char* name = 0 );
~KudesignerFactory();
- 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/kugar/kudesigner/kudesigner_view.cpp b/kugar/kudesigner/kudesigner_view.cpp
index 4533813d..991d8304 100644
--- a/kugar/kudesigner/kudesigner_view.cpp
+++ b/kugar/kudesigner/kudesigner_view.cpp
@@ -68,8 +68,8 @@
using namespace Kudesigner;
-KudesignerView::KudesignerView( KudesignerDoc* part, TQWidget* tqparent, const char* name )
- : KoView( part, tqparent, name ), m_propertyEditor( 0 ), m_doc( part )
+KudesignerView::KudesignerView( KudesignerDoc* part, TQWidget* parent, const char* name )
+ : KoView( part, parent, name ), m_propertyEditor( 0 ), m_doc( part )
{
setInstance( KudesignerFactory::global() );
if ( !part->isReadWrite() ) // readonly case, e.g. when embedded into konqueror
diff --git a/kugar/kudesigner/kudesigner_view.h b/kugar/kudesigner/kudesigner_view.h
index 2b1cc752..26cd9648 100644
--- a/kugar/kudesigner/kudesigner_view.h
+++ b/kugar/kudesigner/kudesigner_view.h
@@ -61,7 +61,7 @@ class KudesignerView: public KoView
friend class Kudesigner::View;
public:
- KudesignerView( KudesignerDoc* part, TQWidget* tqparent = 0, const char* name = 0 );
+ KudesignerView( KudesignerDoc* part, TQWidget* parent = 0, const char* name = 0 );
virtual ~KudesignerView();
Kudesigner::View *view()
diff --git a/kugar/kudesigner_lib/plugin.cpp b/kugar/kudesigner_lib/plugin.cpp
index 880fc37f..c92cee57 100644
--- a/kugar/kudesigner_lib/plugin.cpp
+++ b/kugar/kudesigner_lib/plugin.cpp
@@ -17,7 +17,7 @@
#include "plugin.h"
-KuDesignerPlugin::KuDesignerPlugin( TQObject *tqparent, const char *name, const TQStringList& ) : TQObject( tqparent, name )
+KuDesignerPlugin::KuDesignerPlugin( TQObject *parent, const char *name, const TQStringList& ) : TQObject( parent, name )
{}
KuDesignerPlugin::~KuDesignerPlugin()
{}
diff --git a/kugar/kudesigner_lib/plugin.h b/kugar/kudesigner_lib/plugin.h
index ce912275..0b074d97 100644
--- a/kugar/kudesigner_lib/plugin.h
+++ b/kugar/kudesigner_lib/plugin.h
@@ -36,7 +36,7 @@ class KuDesignerPlugin: public TQObject
Q_OBJECT
TQ_OBJECT
public:
- KuDesignerPlugin( TQObject *tqparent, const char* name, const TQStringList& args );
+ KuDesignerPlugin( TQObject *parent, const char* name, const TQStringList& args );
virtual ~KuDesignerPlugin();
virtual bool acceptsDrops()
{
diff --git a/kugar/kudesigner_lib/structurewidget.cpp b/kugar/kudesigner_lib/structurewidget.cpp
index 945d3b71..f7d2aed1 100644
--- a/kugar/kudesigner_lib/structurewidget.cpp
+++ b/kugar/kudesigner_lib/structurewidget.cpp
@@ -45,11 +45,11 @@ using namespace KoProperty;
class StructureItem: public KListViewItem
{
public:
- StructureItem( KListView *tqparent, const TQString &name )
- : KListViewItem( tqparent, name ), m_bold( false )
+ StructureItem( KListView *parent, const TQString &name )
+ : KListViewItem( parent, name ), m_bold( false )
{}
- StructureItem( KListViewItem *tqparent, const TQString &name )
- : KListViewItem( tqparent, name ), m_bold( false )
+ StructureItem( KListViewItem *parent, const TQString &name )
+ : KListViewItem( parent, name ), m_bold( false )
{}
void setBold( bool b )
{
@@ -75,8 +75,8 @@ private:
bool m_bold;
};
-StructureWidget::StructureWidget( TQWidget* tqparent, const char* name )
- : KListView( tqparent, name )
+StructureWidget::StructureWidget( TQWidget* parent, const char* name )
+ : KListView( parent, name )
{
setFullWidth( true );
addColumn( tr( "Report Structure" ) );
diff --git a/kugar/kudesigner_lib/structurewidget.h b/kugar/kudesigner_lib/structurewidget.h
index 1bb3302f..842b6986 100644
--- a/kugar/kudesigner_lib/structurewidget.h
+++ b/kugar/kudesigner_lib/structurewidget.h
@@ -39,7 +39,7 @@ class StructureWidget: public KListView
Q_OBJECT
TQ_OBJECT
public:
- StructureWidget( TQWidget* tqparent = 0, const char* name = 0 );
+ StructureWidget( TQWidget* parent = 0, const char* name = 0 );
public slots:
void refresh();
diff --git a/kugar/kudesigner_lib/view.cpp b/kugar/kudesigner_lib/view.cpp
index 70bf22ca..a7b3ca1f 100644
--- a/kugar/kudesigner_lib/view.cpp
+++ b/kugar/kudesigner_lib/view.cpp
@@ -93,8 +93,8 @@ void SelectionRect::draw( TQPainter & painter )
-View::View( Canvas *canvas, TQWidget *tqparent, const char *name, WFlags f ) :
- TQCanvasView( canvas, tqparent, name, f ), selectionBuf( 0 ), m_plugin( 0 ), m_canvas( canvas )
+View::View( Canvas *canvas, TQWidget *parent, const char *name, WFlags f ) :
+ TQCanvasView( canvas, parent, name, f ), selectionBuf( 0 ), m_plugin( 0 ), m_canvas( canvas )
{
itemToInsert = 0;
moving = 0;
diff --git a/kugar/kudesigner_lib/view.h b/kugar/kudesigner_lib/view.h
index 5b4ebe40..9e71633f 100644
--- a/kugar/kudesigner_lib/view.h
+++ b/kugar/kudesigner_lib/view.h
@@ -60,7 +60,7 @@ class View: public TQCanvasView
Q_OBJECT
TQ_OBJECT
public:
- View( Canvas *canvas, TQWidget *tqparent, const char *name = 0, WFlags f = 0 );
+ View( Canvas *canvas, TQWidget *parent, const char *name = 0, WFlags f = 0 );
int itemToInsert;
diff --git a/kugar/lib/inputmask.cpp b/kugar/lib/inputmask.cpp
index 6fb49220..923323cb 100644
--- a/kugar/lib/inputmask.cpp
+++ b/kugar/lib/inputmask.cpp
@@ -17,12 +17,12 @@
namespace Kugar
{
-InputMask::InputMask( TQObject *tqparent, const char *name )
- : TQObject( tqparent, name ),
+InputMask::InputMask( TQObject *parent, const char *name )
+ : TQObject( parent, name ),
m_text( TQString() ),
m_maxLength( 32767 ),
m_blank( ' ' ),
- m_tqmask( TQString() ),
+ m_mask( TQString() ),
m_maskData( 0L )
{}
@@ -31,14 +31,14 @@ InputMask::~InputMask()
delete [] m_maskData;
}
-TQString InputMask::tqmask() const
+TQString InputMask::mask() const
{
- return ( m_maskData ? m_tqmask + ';' + m_blank : TQString() );
+ return ( m_maskData ? m_mask + ';' + m_blank : TQString() );
}
-void InputMask::setMask( const TQString &tqmask )
+void InputMask::setMask( const TQString &mask )
{
- parseInputMask( tqmask );
+ parseInputMask( mask );
}
TQString InputMask::formatText( const TQString &txt )
@@ -59,7 +59,7 @@ void InputMask::parseInputMask( const TQString &maskFields )
return ;
}
- m_tqmask = maskFields.section( ';', 0, 0 );
+ m_mask = maskFields.section( ';', 0, 0 );
m_blank = maskFields.section( ';', 1, 1 ).at( 0 );
if ( m_blank.isNull() )
m_blank = ' ';
@@ -68,10 +68,10 @@ void InputMask::parseInputMask( const TQString &maskFields )
m_maxLength = 0;
TQChar c = 0;
uint i;
- for ( i = 0; i < m_tqmask.length(); i++ )
+ for ( i = 0; i < m_mask.length(); i++ )
{
- c = m_tqmask.at( i );
- if ( i > 0 && m_tqmask.at( i - 1 ) == '\\' )
+ c = m_mask.at( i );
+ if ( i > 0 && m_mask.at( i - 1 ) == '\\' )
{
m_maxLength++;
continue;
@@ -91,9 +91,9 @@ void InputMask::parseInputMask( const TQString &maskFields )
bool s;
bool escape = FALSE;
int index = 0;
- for ( i = 0; i < m_tqmask.length(); i++ )
+ for ( i = 0; i < m_mask.length(); i++ )
{
- c = m_tqmask.at( i );
+ c = m_mask.at( i );
if ( escape )
{
s = TRUE;
@@ -153,9 +153,9 @@ void InputMask::parseInputMask( const TQString &maskFields )
}
}
-bool InputMask::isValidInput( TQChar key, TQChar tqmask ) const
+bool InputMask::isValidInput( TQChar key, TQChar mask ) const
{
- switch ( tqmask )
+ switch ( mask )
{
case 'A':
if ( key.isLetter() && key != m_blank )
diff --git a/kugar/lib/inputmask.h b/kugar/lib/inputmask.h
index 93889a16..f1f0886f 100644
--- a/kugar/lib/inputmask.h
+++ b/kugar/lib/inputmask.h
@@ -25,18 +25,18 @@ class InputMask : public TQObject
Q_OBJECT
TQ_OBJECT
public:
- InputMask( TQObject *tqparent = 0, const char *name = 0 );
+ InputMask( TQObject *parent = 0, const char *name = 0 );
~InputMask();
- TQString tqmask() const;
- void setMask( const TQString &tqmask );
+ TQString mask() const;
+ void setMask( const TQString &mask );
TQString formatText( const TQString &txt );
private:
void parseInputMask( const TQString &maskFields );
- bool isValidInput( TQChar key, TQChar tqmask ) const;
+ bool isValidInput( TQChar key, TQChar mask ) const;
TQString maskString( uint pos, const TQString &str, bool clear = FALSE ) const;
TQString clearString( uint pos, uint len ) const;
TQString stripString( const TQString &str ) const;
@@ -46,11 +46,11 @@ private:
TQString m_text;
int m_maxLength;
TQChar m_blank;
- TQString m_tqmask;
+ TQString m_mask;
struct MaskInputData
{
enum Casemode { NoCaseMode, Upper, Lower };
- TQChar maskChar; // either the separator char or the inputtqmask
+ TQChar maskChar; // either the separator char or the inputmask
bool separator;
Casemode caseMode;
};
diff --git a/kugar/lib/mfieldobject.cpp b/kugar/lib/mfieldobject.cpp
index 7f7b994a..3444d5b7 100644
--- a/kugar/lib/mfieldobject.cpp
+++ b/kugar/lib/mfieldobject.cpp
@@ -140,7 +140,7 @@ void MFieldObject::setText( const TQString txt )
TQString MFieldObject::getInputMask() const
{
- return m_inputMask->tqmask();
+ return m_inputMask->mask();
}
void MFieldObject::setInputMask( const TQString &inputMask )
diff --git a/kugar/lib/mfieldobject.h b/kugar/lib/mfieldobject.h
index d04fca39..aa62a12f 100644
--- a/kugar/lib/mfieldobject.h
+++ b/kugar/lib/mfieldobject.h
@@ -55,7 +55,7 @@ protected:
TQColor saveColor;
/** Field's comma flag */
int comma;
- /** Input tqmask */
+ /** Input mask */
TQString inputMask;
public:
diff --git a/kugar/lib/mpagecollection.cpp b/kugar/lib/mpagecollection.cpp
index 22618656..60aa0f5e 100644
--- a/kugar/lib/mpagecollection.cpp
+++ b/kugar/lib/mpagecollection.cpp
@@ -15,7 +15,7 @@ namespace Kugar
{
/** Constructor */
-MPageCollection::MPageCollection( TQObject *tqparent ) : TQObject( tqparent )
+MPageCollection::MPageCollection( TQObject *parent ) : TQObject( parent )
{
// Set page list to AutoDelete
pages.setAutoDelete( true );
diff --git a/kugar/lib/mpagecollection.h b/kugar/lib/mpagecollection.h
index c4b78cee..a5de1e66 100644
--- a/kugar/lib/mpagecollection.h
+++ b/kugar/lib/mpagecollection.h
@@ -26,7 +26,7 @@ class MPageCollection : public TQObject
public:
/** Constructor */
- MPageCollection( TQObject *tqparent );
+ MPageCollection( TQObject *parent );
/** Copy constructor */
MPageCollection( const MPageCollection& mPageCollection );
/** Assignment operator */
diff --git a/kugar/lib/mpagedisplay.cpp b/kugar/lib/mpagedisplay.cpp
index 75ff2999..12eac741 100644
--- a/kugar/lib/mpagedisplay.cpp
+++ b/kugar/lib/mpagedisplay.cpp
@@ -12,7 +12,7 @@ namespace Kugar
{
/** Constructor */
-MPageDisplay::MPageDisplay( TQWidget *tqparent, const char *name ) : TQWidget( tqparent, name )
+MPageDisplay::MPageDisplay( TQWidget *parent, const char *name ) : TQWidget( parent, name )
{
buffer.resize( 1, 1 );
}
diff --git a/kugar/lib/mpagedisplay.h b/kugar/lib/mpagedisplay.h
index db4f7f74..65a419d5 100644
--- a/kugar/lib/mpagedisplay.h
+++ b/kugar/lib/mpagedisplay.h
@@ -28,7 +28,7 @@ class MPageDisplay : public TQWidget
TQ_OBJECT
public:
/** Constructor */
- MPageDisplay( TQWidget *tqparent = 0, const char *name = 0 );
+ MPageDisplay( TQWidget *parent = 0, const char *name = 0 );
/** Destructor */
virtual ~MPageDisplay();
diff --git a/kugar/lib/mreportviewer.cpp b/kugar/lib/mreportviewer.cpp
index c0e91656..a3fd9ab5 100644
--- a/kugar/lib/mreportviewer.cpp
+++ b/kugar/lib/mreportviewer.cpp
@@ -19,14 +19,14 @@ namespace Kugar
{
/** Constructor */
-MReportViewer::MReportViewer( MReportEngine *engine, TQWidget *tqparent, const char *name ) : TQWidget( tqparent, name ), progress( 0 )
+MReportViewer::MReportViewer( MReportEngine *engine, TQWidget *parent, const char *name ) : TQWidget( parent, name ), progress( 0 )
{
rptEngine = engine;
rptEngine->addRef();
init();
}
-MReportViewer::MReportViewer( TQWidget *tqparent, const char *name ) : TQWidget( tqparent, name ), progress( 0 )
+MReportViewer::MReportViewer( TQWidget *parent, const char *name ) : TQWidget( parent, name ), progress( 0 )
{
// Create the scrollview
rptEngine = new MReportEngine();
diff --git a/kugar/lib/mreportviewer.h b/kugar/lib/mreportviewer.h
index 4927f28d..599e22db 100644
--- a/kugar/lib/mreportviewer.h
+++ b/kugar/lib/mreportviewer.h
@@ -44,8 +44,8 @@ class KUGAR_EXPORT MReportViewer : public TQWidget
TQ_OBJECT
public:
- MReportViewer( TQWidget *tqparent = 0, const char *name = 0 );
- MReportViewer( MReportEngine* engine, TQWidget *tqparent = 0, const char *name = 0 );
+ MReportViewer( TQWidget *parent = 0, const char *name = 0 );
+ MReportViewer( MReportEngine* engine, TQWidget *parent = 0, const char *name = 0 );
virtual ~MReportViewer();
bool setReportData( const TQString & );
diff --git a/kugar/part/kugar_factory.cpp b/kugar/part/kugar_factory.cpp
index cc7631e3..f0206802 100644
--- a/kugar/part/kugar_factory.cpp
+++ b/kugar/part/kugar_factory.cpp
@@ -29,7 +29,7 @@ K_EXPORT_COMPONENT_FACTORY( libkugarpart, KugarFactory )
// The factory ctor.
-KugarFactory::KugarFactory( TQObject *tqparent, const char* name ) : KoFactory( tqparent, name )
+KugarFactory::KugarFactory( TQObject *parent, const char* name ) : KoFactory( parent, name )
{
global();
}
@@ -66,7 +66,7 @@ KAboutData *KugarFactory::aboutData()
// Create a new part.
KParts::Part* KugarFactory::createPartObject( TQWidget *parentWidget, const char *widgetName,
- TQObject* tqparent, const char* name, const char* classname, const TQStringList & data )
+ TQObject* parent, const char* name, const char* classname, const TQStringList & data )
{
TQString forcedUserTemplate;
for ( TQStringList::const_iterator it = data.begin();it != data.end();++it )
@@ -78,7 +78,7 @@ KParts::Part* KugarFactory::createPartObject( TQWidget *parentWidget, const char
bool bWantKoDocument = ( strcmp( classname, "KoDocument" ) == 0 );
// parentWidget and widgetName are used by KoDocument for the "readonly+singleView" case.
- KugarPart *part = new KugarPart( parentWidget, widgetName, tqparent, name, !bWantKoDocument );
+ KugarPart *part = new KugarPart( parentWidget, widgetName, parent, name, !bWantKoDocument );
// if ( !bWantKoDocument )
part->setReadWrite( false );
diff --git a/kugar/part/kugar_factory.h b/kugar/part/kugar_factory.h
index 390b21df..7b313aa7 100644
--- a/kugar/part/kugar_factory.h
+++ b/kugar/part/kugar_factory.h
@@ -18,11 +18,11 @@ class KugarFactory : public KoFactory
Q_OBJECT
TQ_OBJECT
public:
- KugarFactory( TQObject* tqparent = 0, const char* name = 0 );
+ KugarFactory( TQObject* parent = 0, const char* name = 0 );
~KugarFactory();
virtual KParts::Part *createPartObject( TQWidget *parentWidget = 0, const char *widgetName = 0,
- TQObject *tqparent = 0, const char *name = 0, const char *classname = "KoDocument",
+ TQObject *parent = 0, const char *name = 0, const char *classname = "KoDocument",
const TQStringList &args = TQStringList() );
static KInstance* global();
diff --git a/kugar/part/kugar_part.cpp b/kugar/part/kugar_part.cpp
index c8249505..38ac5257 100644
--- a/kugar/part/kugar_part.cpp
+++ b/kugar/part/kugar_part.cpp
@@ -31,8 +31,8 @@
#include <KoFilterManager.h>
KugarPart::KugarPart( TQWidget *parentWidget, const char *widgetName,
- TQObject* tqparent, const char* name, bool singleViewMode )
- : KoDocument( parentWidget, widgetName, tqparent, name, singleViewMode ),
+ TQObject* parent, const char* name, bool singleViewMode )
+ : KoDocument( parentWidget, widgetName, parent, name, singleViewMode ),
m_templateOk( false )
{
setInstance( KugarFactory::global(), false );
@@ -138,9 +138,9 @@ bool KugarPart::initDoc( InitDocFlags /*flags*/, TQWidget* /*parentWidget*/ )
return TRUE;
}
-KoView* KugarPart::createViewInstance( TQWidget* tqparent, const char* name )
+KoView* KugarPart::createViewInstance( TQWidget* parent, const char* name )
{
- KugarView * v = new KugarView( this, tqparent, name );
+ KugarView * v = new KugarView( this, parent, name );
if ( m_templateOk )
v->renderReport();
return v;
diff --git a/kugar/part/kugar_part.h b/kugar/part/kugar_part.h
index e489ceb0..31e25355 100644
--- a/kugar/part/kugar_part.h
+++ b/kugar/part/kugar_part.h
@@ -21,7 +21,7 @@ class KugarPart: public KoDocument
public:
KugarPart( TQWidget *parentWidget = 0, const char *widgetName = 0,
- TQObject* tqparent = 0,
+ TQObject* parent = 0,
const char* name = 0, bool singleViewMode = false );
virtual ~KugarPart();
@@ -47,7 +47,7 @@ public:
}
protected:
- virtual KoView* createViewInstance( TQWidget* tqparent, const char* name );
+ virtual KoView* createViewInstance( TQWidget* parent, const char* name );
public slots:
void setForcedUserTemplate( const TQString &/*name*/ )
diff --git a/kugar/part/kugar_view.cpp b/kugar/part/kugar_view.cpp
index 28f0d871..ddd8dfe1 100644
--- a/kugar/part/kugar_view.cpp
+++ b/kugar/part/kugar_view.cpp
@@ -28,8 +28,8 @@
// The view ctor.
-KugarView::KugarView( KugarPart *part, TQWidget *tqparent, const char *name )
- : KoView( part, tqparent, name )
+KugarView::KugarView( KugarPart *part, TQWidget *parent, const char *name )
+ : KoView( part, parent, name )
{
setInstance( KugarFactory::global() );
diff --git a/kugar/part/kugar_view.h b/kugar/part/kugar_view.h
index b29ea624..6507f74a 100644
--- a/kugar/part/kugar_view.h
+++ b/kugar/part/kugar_view.h
@@ -18,7 +18,7 @@ class KugarView: public KoView
TQ_OBJECT
public:
- KugarView( KugarPart *part, TQWidget *tqparent, const char *name );
+ KugarView( KugarPart *part, TQWidget *parent, const char *name );
virtual ~KugarView();
void setForcedUserTemplate( const TQString &name );