Remove the tq in front of these incorrectly TQt4-converted methods/data members:

tqrepaint[...]
tqinvalidate[...]
tqparent[...]
tqmask[...]
tqlayout[...]
tqalignment[...]


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 9c49a74a16
commit 1dcbbe821d

@ -652,7 +652,7 @@ notification about a change in tqalignment.
<H4>KPanelApplet</H4> <H4>KPanelApplet</H4>
<p>The virtual methods orientationChange() and popupDirectionChange() are deprecated. <p>The virtual methods orientationChange() and popupDirectionChange() are deprecated.
Instead you should reimplement positionChange() and tqalignmentChange() to be Instead you should reimplement positionChange() and alignmentChange() to be
notified of changes in the position and tqalignment of the panel on which your applet notified of changes in the position and tqalignment of the panel on which your applet
resides. In addition, the popupDirection() method and the Direction enum are resides. In addition, the popupDirection() method and the Direction enum are
deprecated. Instead you should use the position() method and Position enum. Applets that use deprecated. Instead you should use the position() method and Position enum. Applets that use
@ -661,7 +661,7 @@ a future version.
<H4>KPanelExtension</H4> <H4>KPanelExtension</H4>
<p>There is a new method tqalignmentChange() that your extension should reimplement if <p>There is a new method alignmentChange() that your extension should reimplement if
it needs to know about changes in tqalignment. it needs to know about changes in tqalignment.
<H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4> <H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4>

@ -56,7 +56,7 @@ public:
/** This constructor is what to use when a GUI is required, as in the /** This constructor is what to use when a GUI is required, as in the
* case of a KMediaPlayer/Player. * case of a KMediaPlayer/Player.
*/ */
Player(TQWidget *tqparentWidget, const char *widgetName, TQObject *parent, const char *name); Player(TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name);
virtual ~Player(void); virtual ~Player(void);

@ -58,7 +58,7 @@ class KTEXTEDITOR_EXPORT Editor : public KParts::ReadWritePart
unsigned int myEditorNumber; unsigned int myEditorNumber;
}; };
KTEXTEDITOR_EXPORT Editor *createEditor ( const char* libname, TQWidget *tqparentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0 ); KTEXTEDITOR_EXPORT Editor *createEditor ( const char* libname, TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0 );
} }

@ -130,7 +130,7 @@ KTextEditor::Document *EditorChooser::createDocument(TQObject *parent,const char
return 0; return 0;
} }
KTextEditor::Editor *EditorChooser::createEditor(TQWidget *tqparentWidget,TQObject *parent,const char* widgetName, KTextEditor::Editor *EditorChooser::createEditor(TQWidget *parentWidget,TQObject *parent,const char* widgetName,
const char* name,const TQString& postfix,bool fallBackToKatePart){ const char* name,const TQString& postfix,bool fallBackToKatePart){
KTextEditor::Editor *tmpEd=0; KTextEditor::Editor *tmpEd=0;
@ -151,11 +151,11 @@ KTextEditor::Editor *EditorChooser::createEditor(TQWidget *tqparentWidget,TQObje
KService::Ptr serv=KService::serviceByDesktopName(editor); KService::Ptr serv=KService::serviceByDesktopName(editor);
if (serv) if (serv)
{ {
tmpEd=KTextEditor::createEditor(serv->library().latin1(),tqparentWidget,widgetName,parent,name); tmpEd=KTextEditor::createEditor(serv->library().latin1(),parentWidget,widgetName,parent,name);
if (tmpEd) return tmpEd; if (tmpEd) return tmpEd;
} }
if (fallBackToKatePart) if (fallBackToKatePart)
return KTextEditor::createEditor("libkatepart",tqparentWidget,widgetName,parent,name); return KTextEditor::createEditor("libkatepart",parentWidget,widgetName,parent,name);
return 0; return 0;
} }

@ -28,7 +28,7 @@ class KTEXTEDITOR_EXPORT EditorChooser: public TQWidget
void writeAppSetting(const TQString& postfix=TQString::null); void writeAppSetting(const TQString& postfix=TQString::null);
static KTextEditor::Document *createDocument(TQObject* parent=0,const char *name=0,const TQString& postfix=TQString::null, bool fallBackToKatePart=true); static KTextEditor::Document *createDocument(TQObject* parent=0,const char *name=0,const TQString& postfix=TQString::null, bool fallBackToKatePart=true);
static KTextEditor::Editor *createEditor(TQWidget *tqparentWidget,TQObject *parent,const char* widgetName=0,const char* name=0,const TQString& postfix=TQString::null,bool fallBackToKatePart=true); static KTextEditor::Editor *createEditor(TQWidget *parentWidget,TQObject *parent,const char* widgetName=0,const char* name=0,const TQString& postfix=TQString::null,bool fallBackToKatePart=true);
private: private:
class PrivateEditorChooser *d; class PrivateEditorChooser *d;
}; };

@ -206,9 +206,9 @@ unsigned int Editor::editorNumber () const
return myEditorNumber; return myEditorNumber;
} }
Editor *KTextEditor::createEditor ( const char* libname, TQWidget *tqparentWidget, const char *widgetName, TQObject *parent, const char *name ) Editor *KTextEditor::createEditor ( const char* libname, TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name )
{ {
return KParts::ComponentFactory::createPartInstanceFromLibrary<Editor>( libname, tqparentWidget, widgetName, parent, name ); return KParts::ComponentFactory::createPartInstanceFromLibrary<Editor>( libname, parentWidget, widgetName, parent, name );
} }
Document *KTextEditor::createDocument ( const char* libname, TQObject *parent, const char *name ) Document *KTextEditor::createDocument ( const char* libname, TQObject *parent, const char *name )

@ -849,7 +849,7 @@ void KateBuffer::setTabWidth (uint w)
m_tabWidth = w; m_tabWidth = w;
if (m_highlight && m_highlight->foldingIndentationSensitive()) if (m_highlight && m_highlight->foldingIndentationSensitive())
tqinvalidateHighlighting(); invalidateHighlighting();
} }
} }
@ -881,7 +881,7 @@ void KateBuffer::setHighlight(uint hlMode)
m_highlight = h; m_highlight = h;
if (tqinvalidate) if (tqinvalidate)
tqinvalidateHighlighting(); invalidateHighlighting();
// inform the document that the hl was really changed // inform the document that the hl was really changed
// needed to update attributes and more ;) // needed to update attributes and more ;)
@ -889,7 +889,7 @@ void KateBuffer::setHighlight(uint hlMode)
} }
} }
void KateBuffer::tqinvalidateHighlighting() void KateBuffer::invalidateHighlighting()
{ {
m_lineHighlightedMax = 0; m_lineHighlightedMax = 0;
m_lineHighlighted = 0; m_lineHighlighted = 0;
@ -977,7 +977,7 @@ bool KateBuffer::doHighlight (KateBufBlock *buf, uint startLine, uint endLine, b
{ {
if (KateHlManager::self()->resetDynamicCtxs()) if (KateHlManager::self()->resetDynamicCtxs())
{ {
kdDebug (13020) << "HL tqinvalidated - too many dynamic contexts ( >= " << m_maxDynamicContexts << ")" << endl; kdDebug (13020) << "HL invalidated - too many dynamic contexts ( >= " << m_maxDynamicContexts << ")" << endl;
// avoid recursive invalidation // avoid recursive invalidation
KateHlManager::self()->setForceNoDCReset(true); KateHlManager::self()->setForceNoDCReset(true);

@ -591,7 +591,7 @@ class KateBuffer : public TQObject
/** /**
* Invalidate highlighting of whole buffer. * Invalidate highlighting of whole buffer.
*/ */
void tqinvalidateHighlighting(); void invalidateHighlighting();
KateCodeFoldingTree *foldingTree () { return &m_regionTree; }; KateCodeFoldingTree *foldingTree () { return &m_regionTree; };

@ -91,7 +91,7 @@ class KatePartPluginItem
// KateDocument Constructor // KateDocument Constructor
// //
KateDocument::KateDocument ( bool bSingleViewMode, bool bBrowserView, KateDocument::KateDocument ( bool bSingleViewMode, bool bBrowserView,
bool bReadOnly, TQWidget *tqparentWidget, bool bReadOnly, TQWidget *parentWidget,
const char *widgetName, TQObject *parent, const char *name) const char *widgetName, TQObject *parent, const char *name)
: Kate::Document(parent, name), : Kate::Document(parent, name),
m_plugins (KateFactory::self()->plugins().count()), m_plugins (KateFactory::self()->plugins().count()),
@ -214,7 +214,7 @@ KateDocument::KateDocument ( bool bSingleViewMode, bool bBrowserView,
// if single view mode, like in the konqui embedding, create a default view ;) // if single view mode, like in the konqui embedding, create a default view ;)
if ( m_bSingleViewMode ) if ( m_bSingleViewMode )
{ {
KTextEditor::View *view = createView( tqparentWidget, widgetName ); KTextEditor::View *view = createView( parentWidget, widgetName );
insertChildClient( view ); insertChildClient( view );
view->show(); view->show();
setWidget( view ); setWidget( view );
@ -2872,7 +2872,7 @@ void KateDocument::makeAttribs(bool needInvalidate)
m_views.tqat(z)->renderer()->updateAttributes (); m_views.tqat(z)->renderer()->updateAttributes ();
if (needInvalidate) if (needInvalidate)
m_buffer->tqinvalidateHighlighting(); m_buffer->invalidateHighlighting();
tagAll (); tagAll ();
} }

@ -91,7 +91,7 @@ class KateDocument : public Kate::Document,
public: public:
KateDocument (bool bSingleViewMode=false, bool bBrowserView=false, bool bReadOnly=false, KateDocument (bool bSingleViewMode=false, bool bBrowserView=false, bool bReadOnly=false,
TQWidget *tqparentWidget = 0, const char *widgetName = 0, TQObject * = 0, const char * = 0); TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject * = 0, const char * = 0);
~KateDocument (); ~KateDocument ();
bool closeURL(); bool closeURL();

@ -48,7 +48,7 @@ class KateFactoryPublic : public KParts::Factory
public: public:
/** /**
* reimplemented create object method * reimplemented create object method
* @param tqparentWidget parent widget * @param parentWidget parent widget
* @param widgetName widget name * @param widgetName widget name
* @param parent TQObject parent * @param parent TQObject parent
* @param name object name * @param name object name
@ -56,9 +56,9 @@ class KateFactoryPublic : public KParts::Factory
* @param args additional arguments * @param args additional arguments
* @return constructed part object * @return constructed part object
*/ */
KParts::Part *createPartObject ( TQWidget *tqparentWidget, const char *widgetName, TQObject *parent, const char *name, const char *classname, const TQStringList &args ) KParts::Part *createPartObject ( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *classname, const TQStringList &args )
{ {
return KateFactory::self()->createPartObject (tqparentWidget, widgetName, parent, name, classname, args); return KateFactory::self()->createPartObject (parentWidget, widgetName, parent, name, classname, args);
} }
}; };
@ -206,14 +206,14 @@ KateFactory *KateFactory::self ()
return s_self; return s_self;
} }
KParts::Part *KateFactory::createPartObject ( TQWidget *tqparentWidget, const char *widgetName, TQObject *parent, const char *name, const char *_classname, const TQStringList & ) KParts::Part *KateFactory::createPartObject ( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *_classname, const TQStringList & )
{ {
TQCString classname( _classname ); TQCString classname( _classname );
bool bWantSingleView = ( classname != "KTextEditor::Document" && classname != "Kate::Document" ); bool bWantSingleView = ( classname != "KTextEditor::Document" && classname != "Kate::Document" );
bool bWantBrowserView = ( classname == "Browser/View" ); bool bWantBrowserView = ( classname == "Browser/View" );
bool bWantReadOnly = (bWantBrowserView || ( classname == "KParts::ReadOnlyPart" )); bool bWantReadOnly = (bWantBrowserView || ( classname == "KParts::ReadOnlyPart" ));
KParts::ReadWritePart *part = new KateDocument (bWantSingleView, bWantBrowserView, bWantReadOnly, tqparentWidget, widgetName, parent, name); KParts::ReadWritePart *part = new KateDocument (bWantSingleView, bWantBrowserView, bWantReadOnly, parentWidget, widgetName, parent, name);
part->setReadWrite( !bWantReadOnly ); part->setReadWrite( !bWantReadOnly );
return part; return part;

@ -71,7 +71,7 @@ class KateFactory
/** /**
* reimplemented create object method * reimplemented create object method
* @param tqparentWidget parent widget * @param parentWidget parent widget
* @param widgetName widget name * @param widgetName widget name
* @param parent TQObject parent * @param parent TQObject parent
* @param name object name * @param name object name
@ -79,7 +79,7 @@ class KateFactory
* @param args additional arguments * @param args additional arguments
* @return constructed part object * @return constructed part object
*/ */
KParts::Part *createPartObject ( TQWidget *tqparentWidget, const char *widgetName, KParts::Part *createPartObject ( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, const char *classname, TQObject *parent, const char *name, const char *classname,
const TQStringList &args ); const TQStringList &args );

@ -213,7 +213,7 @@ class KateHighlighting
inline bool noHighlighting () const { return noHl; }; inline bool noHighlighting () const { return noHl; };
// be carefull: all documents hl should be tqinvalidated after calling this method! // be carefull: all documents hl should be invalidated after calling this method!
void dropDynamicContexts(); void dropDynamicContexts();
TQString indentation () { return m_indentation; } TQString indentation () { return m_indentation; }
@ -377,7 +377,7 @@ class KateHlManager : public TQObject
uint countDynamicCtxs() { return dynamicCtxsCount; }; uint countDynamicCtxs() { return dynamicCtxsCount; };
void setForceNoDCReset(bool b) { forceNoDCReset = b; }; void setForceNoDCReset(bool b) { forceNoDCReset = b; };
// be carefull: all documents hl should be tqinvalidated after having successfully called this method! // be carefull: all documents hl should be invalidated after having successfully called this method!
bool resetDynamicCtxs(); bool resetDynamicCtxs();
signals: signals:

@ -351,7 +351,7 @@ KateSchemaConfigColorTab::KateSchemaConfigColorTab( TQWidget *parent, const char
blay->addStretch(); blay->addStretch();
// connect signal changed(); changed is emitted by a ColorButton change! // connect signal changed(); changed is emitted by a ColorButton change!
connect( this, TQT_SIGNAL( changed() ), parent->tqparentWidget(), TQT_SLOT( slotChanged() ) ); connect( this, TQT_SIGNAL( changed() ), parent->parentWidget(), TQT_SLOT( slotChanged() ) );
// TQWhatsThis help // TQWhatsThis help
TQWhatsThis::add(m_back, i18n("<p>Sets the background color of the editing area.</p>")); TQWhatsThis::add(m_back, i18n("<p>Sets the background color of the editing area.</p>"));
@ -545,7 +545,7 @@ KateSchemaConfigFontTab::KateSchemaConfigFontTab( TQWidget *parent, const char *
m_fontchooser->enableColumn(KFontChooser::StyleList, false); m_fontchooser->enableColumn(KFontChooser::StyleList, false);
grid->addWidget( m_fontchooser, 0, 0); grid->addWidget( m_fontchooser, 0, 0);
connect (this, TQT_SIGNAL( changed()), parent->tqparentWidget(), TQT_SLOT (slotChanged())); connect (this, TQT_SIGNAL( changed()), parent->parentWidget(), TQT_SLOT (slotChanged()));
m_schema = -1; m_schema = -1;
} }
@ -599,7 +599,7 @@ KateSchemaConfigFontColorTab::KateSchemaConfigFontColorTab( TQWidget *parent, co
m_defaultStyles = new KateStyleListView( this, false ); m_defaultStyles = new KateStyleListView( this, false );
grid->addWidget( m_defaultStyles, 0, 0); grid->addWidget( m_defaultStyles, 0, 0);
connect (m_defaultStyles, TQT_SIGNAL (changed()), parent->tqparentWidget(), TQT_SLOT (slotChanged())); connect (m_defaultStyles, TQT_SIGNAL (changed()), parent->parentWidget(), TQT_SLOT (slotChanged()));
TQWhatsThis::add( m_defaultStyles, i18n( TQWhatsThis::add( m_defaultStyles, i18n(
"This list displays the default styles for the current schema and " "This list displays the default styles for the current schema and "
@ -716,7 +716,7 @@ KateSchemaConfigHighlightTab::KateSchemaConfigHighlightTab( TQWidget *parent, co
"to edit from the popup menu.<p>You can unset the Background and Selected " "to edit from the popup menu.<p>You can unset the Background and Selected "
"Background colors from the context menu when appropriate.") ); "Background colors from the context menu when appropriate.") );
connect (m_styles, TQT_SIGNAL (changed()), parent->tqparentWidget(), TQT_SLOT (slotChanged())); connect (m_styles, TQT_SIGNAL (changed()), parent->parentWidget(), TQT_SLOT (slotChanged()));
} }
KateSchemaConfigHighlightTab::~KateSchemaConfigHighlightTab() KateSchemaConfigHighlightTab::~KateSchemaConfigHighlightTab()

@ -198,7 +198,7 @@ class KateSchemaConfigColorTab : public TQWidget
void schemaChanged( int newSchema ); void schemaChanged( int newSchema );
signals: signals:
void changed(); // connected to tqparentWidget()->tqparentWidget() TQT_SLOT(slotChanged) void changed(); // connected to parentWidget()->parentWidget() TQT_SLOT(slotChanged)
protected slots: protected slots:
void slotMarkerColorChanged(const TQColor&); void slotMarkerColorChanged(const TQColor&);
@ -223,7 +223,7 @@ class KateSchemaConfigFontTab : public TQWidget
void schemaChanged( int newSchema ); void schemaChanged( int newSchema );
signals: signals:
void changed(); // connected to tqparentWidget()->tqparentWidget() TQT_SLOT(slotChanged) void changed(); // connected to parentWidget()->parentWidget() TQT_SLOT(slotChanged)
private: private:
class KFontChooser *m_fontchooser; class KFontChooser *m_fontchooser;

@ -244,7 +244,7 @@ class KateCmdLnWhatsThis : public TQWhatsThis
Kate::Command *cmd = KateCmd::self()->queryCommand( name ); Kate::Command *cmd = KateCmd::self()->queryCommand( name );
if ( cmd ) if ( cmd )
{ {
if ( cmd->help( (Kate::View*)m_parent->tqparentWidget(), name, s ) ) if ( cmd->help( (Kate::View*)m_parent->parentWidget(), name, s ) )
return beg + name + mid + s + end; return beg + name + mid + s + end;
else else
return beg + name + mid + i18n("No help for '%1'").arg( name ) + end; return beg + name + mid + i18n("No help for '%1'").arg( name ) + end;
@ -380,7 +380,7 @@ void KateCmdLine::slotReturnPressed ( const TQString& text )
void KateCmdLine::hideMe () // unless i have focus ;) void KateCmdLine::hideMe () // unless i have focus ;)
{ {
if ( isVisibleTo(tqparentWidget()) && ! hasFocus() ) { if ( isVisibleTo(parentWidget()) && ! hasFocus() ) {
m_view->toggleCmdLine (); m_view->toggleCmdLine ();
} }
} }

@ -515,7 +515,7 @@ int main(int argc, char *argv[])
KateDocument *part = new KateDocument(/*bSingleViewMode*/true, KateDocument *part = new KateDocument(/*bSingleViewMode*/true,
/*bBrowserView*/false, /*bBrowserView*/false,
/*bReadOnly*/false, /*bReadOnly*/false,
/*tqparentWidget*/toplevel, /*parentWidget*/toplevel,
/*widgetName*/"testkate"); /*widgetName*/"testkate");
part->readConfig(&cfg); part->readConfig(&cfg);

@ -127,7 +127,7 @@ class KCertPartPrivate {
}; };
KCertPart::KCertPart(TQWidget *tqparentWidget, const char *widgetName, KCertPart::KCertPart(TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, TQObject *parent, const char *name,
const TQStringList & /*args*/ ) const TQStringList & /*args*/ )
: KParts::ReadWritePart(parent, name) { : KParts::ReadWritePart(parent, name) {
@ -149,7 +149,7 @@ _silentImport = false;
d = new KCertPartPrivate; d = new KCertPartPrivate;
d->browserExtension = new KParts::BrowserExtension(this); d->browserExtension = new KParts::BrowserExtension(this);
_frame = new TQFrame(tqparentWidget, widgetName); _frame = new TQFrame(parentWidget, widgetName);
setWidget(_frame); setWidget(_frame);
_baseGrid = new TQGridLayout(_frame, 15, 9, KDialog::marginHint(), _baseGrid = new TQGridLayout(_frame, 15, 9, KDialog::marginHint(),

@ -68,7 +68,7 @@ class KPKCS12Item : public KListViewItem {
class KCertPart : public KParts::ReadWritePart { class KCertPart : public KParts::ReadWritePart {
Q_OBJECT Q_OBJECT
public: public:
KCertPart(TQWidget *tqparentWidget, const char *widgetName, KCertPart(TQWidget *parentWidget, const char *widgetName,
TQObject *parent = 0L, const char *name = 0L, TQObject *parent = 0L, const char *name = 0L,
const TQStringList &args = TQStringList() ); const TQStringList &args = TQStringList() );
virtual ~KCertPart(); virtual ~KCertPart();

@ -133,7 +133,7 @@ KInstance *KGenericFactoryBase<T>::instance()
* const TQStringList &args);</code> * const TQStringList &args);</code>
* <li>If the class is derived from KParts::Part then it needs to have * <li>If the class is derived from KParts::Part then it needs to have
* a constructor like: * a constructor like:
* <code>MyPart( TQWidget *tqparentWidget, const char *widgetName, * <code>MyPart( TQWidget *parentWidget, const char *widgetName,
* TQObject *parent, const char *name, * TQObject *parent, const char *name,
* const TQStringList &args );</code> * const TQStringList &args );</code>
* </ul> * </ul>
@ -216,7 +216,7 @@ protected:
* const TQStringList &args);</code> * const TQStringList &args);</code>
* <li>If the class is derived from KParts::Part then it needs to have * <li>If the class is derived from KParts::Part then it needs to have
* a constructor like: * a constructor like:
* <code>MyPart( TQWidget *tqparentWidget, const char *widgetName, * <code>MyPart( TQWidget *parentWidget, const char *widgetName,
* TQObject *parent, const char *name, * TQObject *parent, const char *name,
* const TQStringList &args );</code> * const TQStringList &args );</code>
* </ul> * </ul>
@ -253,7 +253,7 @@ protected:
* { * {
* Q_ OBJECT * Q_ OBJECT
* public: * public:
* MyDialogComponent( TQWidget *tqparentWidget, const char *name, * MyDialogComponent( TQWidget *parentWidget, const char *name,
* const TQStringList &args ); * const TQStringList &args );
* ... * ...
* }; * };
@ -311,7 +311,7 @@ protected:
* const TQStringList &args);</code> * const TQStringList &args);</code>
* <li>If the class is derived from KParts::Part then it needs to have * <li>If the class is derived from KParts::Part then it needs to have
* a constructor like: * a constructor like:
* <code>MyPart( TQWidget *tqparentWidget, const char *widgetName, * <code>MyPart( TQWidget *parentWidget, const char *widgetName,
* TQObject *parent, const char *name, * TQObject *parent, const char *name,
* const TQStringList &args );</code> * const TQStringList &args );</code>
* </ul> * </ul>
@ -348,7 +348,7 @@ protected:
* { * {
* Q_ OBJECT * Q_ OBJECT
* public: * public:
* MyDialogComponent( TQWidget *tqparentWidget, const char *name, * MyDialogComponent( TQWidget *parentWidget, const char *name,
* const TQStringList &args ); * const TQStringList &args );
* ... * ...
* }; * };

@ -121,7 +121,7 @@ namespace KDEPrivate
typename If< TQWidgetInheritanceTest< Product >::Result, typename If< TQWidgetInheritanceTest< Product >::Result,
TQWidget, TQObject >::Result >::Result BaseType; TQWidget, TQObject >::Result >::Result BaseType;
static inline Product *create( TQWidget *tqparentWidget, const char *widgetName, static inline Product *create( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, TQObject *parent, const char *name,
const char *className, const TQStringList &args ) const char *className, const TQStringList &args )
{ {
@ -129,7 +129,7 @@ namespace KDEPrivate
while ( tqmetaObject ) while ( tqmetaObject )
{ {
if ( !qstrcmp( className, tqmetaObject->className() ) ) if ( !qstrcmp( className, tqmetaObject->className() ) )
return create( tqparentWidget, widgetName, return create( parentWidget, widgetName,
parent, name, args, Type2Type<BaseType>() ); parent, name, args, Type2Type<BaseType>() );
tqmetaObject = tqmetaObject->tqsuperClass(); tqmetaObject = tqmetaObject->tqsuperClass();
} }
@ -139,14 +139,14 @@ namespace KDEPrivate
typedef typename If< TQWidgetInheritanceTest<ParentType>::Result, typedef typename If< TQWidgetInheritanceTest<ParentType>::Result,
ParentType, TQWidget >::Result WidgetParentType; ParentType, TQWidget >::Result WidgetParentType;
static inline Product *create( TQWidget *tqparentWidget, const char *widgetName, static inline Product *create( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, TQObject *parent, const char *name,
const TQStringList &args, Type2Type<KParts::Part> ) const TQStringList &args, Type2Type<KParts::Part> )
{ {
return new Product( tqparentWidget, widgetName, parent, name, args ); return new Product( parentWidget, widgetName, parent, name, args );
} }
static inline Product *create( TQWidget* /*tqparentWidget*/, const char* /*widgetName*/, static inline Product *create( TQWidget* /*parentWidget*/, const char* /*widgetName*/,
TQObject *parent, const char *name, TQObject *parent, const char *name,
const TQStringList &args, Type2Type<TQWidget> ) const TQStringList &args, Type2Type<TQWidget> )
{ {
@ -157,7 +157,7 @@ namespace KDEPrivate
return new Product( p, name, args ); return new Product( p, name, args );
} }
static inline Product *create( TQWidget* /*tqparentWidget*/, const char* /*widgetName*/, static inline Product *create( TQWidget* /*parentWidget*/, const char* /*widgetName*/,
TQObject *parent, const char *name, TQObject *parent, const char *name,
const TQStringList &args, Type2Type<TQObject> ) const TQStringList &args, Type2Type<TQObject> )
{ {
@ -175,12 +175,12 @@ namespace KDEPrivate
class MultiFactory class MultiFactory
{ {
public: public:
inline static TQObject *create( TQWidget *tqparentWidget, const char *widgetName, inline static TQObject *create( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, TQObject *parent, const char *name,
const char *className, const char *className,
const TQStringList &args ) const TQStringList &args )
{ {
return static_cast<TQObject*>(static_cast<QObject*>(ConcreteFactory<Product, ParentType>::create( tqparentWidget, widgetName, return static_cast<TQObject*>(static_cast<QObject*>(ConcreteFactory<Product, ParentType>::create( parentWidget, widgetName,
parent, name, className, parent, name, className,
args ))); args )));
} }
@ -215,19 +215,19 @@ namespace KDEPrivate
class MultiFactory< KTypeList<Product, ProductListTail>, TQObject > class MultiFactory< KTypeList<Product, ProductListTail>, TQObject >
{ {
public: public:
inline static TQObject *create( TQWidget *tqparentWidget, const char *widgetName, inline static TQObject *create( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, TQObject *parent, const char *name,
const char *className, const char *className,
const TQStringList &args ) const TQStringList &args )
{ {
// try with the head of the typelist first. the head is always // try with the head of the typelist first. the head is always
// a concrete type. // a concrete type.
TQObject *object = MultiFactory<Product>::create( tqparentWidget, widgetName, TQObject *object = MultiFactory<Product>::create( parentWidget, widgetName,
parent, name, className, parent, name, className,
args ); args );
if ( !object ) if ( !object )
object = MultiFactory<ProductListTail>::create( tqparentWidget, widgetName, object = MultiFactory<ProductListTail>::create( parentWidget, widgetName,
parent, name, className, parent, name, className,
args ); args );
@ -241,7 +241,7 @@ namespace KDEPrivate
KTypeList<ParentType, ParentTypeListTail> > KTypeList<ParentType, ParentTypeListTail> >
{ {
public: public:
inline static TQObject *create( TQWidget *tqparentWidget, const char *widgetName, inline static TQObject *create( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, TQObject *parent, const char *name,
const char *className, const char *className,
const TQStringList &args ) const TQStringList &args )
@ -249,7 +249,7 @@ namespace KDEPrivate
// try with the head of the typelist first. the head is always // try with the head of the typelist first. the head is always
// a concrete type. // a concrete type.
TQObject *object = MultiFactory<Product, ParentType> TQObject *object = MultiFactory<Product, ParentType>
::create( tqparentWidget, widgetName, ::create( parentWidget, widgetName,
parent, name, className, args ); parent, name, className, args );
// if that failed continue by advancing the typelist, calling this // if that failed continue by advancing the typelist, calling this
@ -257,7 +257,7 @@ namespace KDEPrivate
// at the end we reach the nulltype specialization. // at the end we reach the nulltype specialization.
if ( !object ) if ( !object )
object = MultiFactory<ProductListTail, ParentTypeListTail> object = MultiFactory<ProductListTail, ParentTypeListTail>
::create( tqparentWidget, widgetName, ::create( parentWidget, widgetName,
parent, name, className, args ); parent, name, className, args );
return object; return object;

@ -40,7 +40,7 @@ class KMultipleDragPrivate;
* Sample code for this: * Sample code for this:
* *
* \code * \code
* KMultipleDrag *drag = new KMultipleDrag( tqparentWidget ); * KMultipleDrag *drag = new KMultipleDrag( parentWidget );
* drag->addDragObject( new TQImageDrag( someQImage, 0 ) ); * drag->addDragObject( new TQImageDrag( someQImage, 0 ) );
* drag->addDragObject( new KURLDrag( someKURL, 0 ) ); * drag->addDragObject( new KURLDrag( someKURL, 0 ) );
* drag->drag(); * drag->drag();

@ -177,7 +177,7 @@ rmtree(const TQCString& name)
* *
* Potential problems: * Potential problems:
* - opendir/readdir/closedir is not re-entrant * - opendir/readdir/closedir is not re-entrant
* - unlink and rmdir tqinvalidates a opendir/readdir/closedir * - unlink and rmdir invalidates a opendir/readdir/closedir
* - limited number of file descriptors for opendir/readdir/closedir * - limited number of file descriptors for opendir/readdir/closedir
*/ */
if ( ::closedir( dp ) ) if ( ::closedir( dp ) )

@ -311,7 +311,7 @@ void KWin::setMainWindow( TQWidget* subwindow, WId mainwindow )
Grmbl. See TQDialog::show(). That should get fixed in Qt somehow. Grmbl. See TQDialog::show(). That should get fixed in Qt somehow.
*/ */
if( tqqt_cast< TQDialog* >( subwindow ) != NULL if( tqqt_cast< TQDialog* >( subwindow ) != NULL
&& subwindow->tqparentWidget() == NULL && subwindow->parentWidget() == NULL
&& kapp->mainWidget() != NULL ) && kapp->mainWidget() != NULL )
{ {
kdWarning() << "KWin::setMainWindow(): There either mustn't be kapp->mainWidget()," kdWarning() << "KWin::setMainWindow(): There either mustn't be kapp->mainWidget(),"

@ -393,7 +393,7 @@ extern "C" {
defining INTERNAL_SIZE_T to be a 32 bit `unsigned int' at the defining INTERNAL_SIZE_T to be a 32 bit `unsigned int' at the
expense of not being able to handle more than 2^32 of malloced expense of not being able to handle more than 2^32 of malloced
space. If this limitation is acceptable, you are encouraged to set space. If this limitation is acceptable, you are encouraged to set
this unless you are on a platform requiring 16byte tqalignments. In this unless you are on a platform requiring 16byte alignments. In
this case the tqalignment requirements turn out to negate any this case the tqalignment requirements turn out to negate any
potential advantages of decreasing size_t word size. potential advantages of decreasing size_t word size.
@ -421,7 +421,7 @@ extern "C" {
/* /*
MALLOC_ALIGNMENT is the minimum tqalignment for malloc'ed chunks. MALLOC_ALIGNMENT is the minimum tqalignment for malloc'ed chunks.
It must be a power of two at least 2 * SIZE_SZ, even on machines It must be a power of two at least 2 * SIZE_SZ, even on machines
for which smaller tqalignments would suffice. It may be defined as for which smaller alignments would suffice. It may be defined as
larger than this though. Note however that code and data structures larger than this though. Note however that code and data structures
are optimized for the case of 8-byte tqalignment. are optimized for the case of 8-byte tqalignment.
*/ */
@ -1938,7 +1938,7 @@ nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Note that the `foot' of the current chunk is actually represented Note that the `foot' of the current chunk is actually represented
as the prev_size of the NEXT chunk. This makes it easier to as the prev_size of the NEXT chunk. This makes it easier to
deal with tqalignments etc but can be very confusing when trying deal with alignments etc but can be very confusing when trying
to extend or adapt this code. to extend or adapt this code.
The two exceptions to all this are The two exceptions to all this are
@ -3454,7 +3454,7 @@ static Void_t* sYSMALLOc(nb, av) INTERNAL_SIZE_T nb; mstate av;
double fencepost at old_top to prevent consolidation with space double fencepost at old_top to prevent consolidation with space
we don't own. These fenceposts are artificial chunks that are we don't own. These fenceposts are artificial chunks that are
marked as inuse and are in any case too small to use. We need marked as inuse and are in any case too small to use. We need
two to make sizes and tqalignments work out. two to make sizes and alignments work out.
*/ */
if (old_size != 0) { if (old_size != 0) {

@ -225,8 +225,8 @@ printf("[FIXME] *current = matrix * *current locks up under Qt4; bypassing for n
TQPtrList<TQDomNamedNodeMap> applyList; TQPtrList<TQDomNamedNodeMap> applyList;
applyList.setAutoDelete(true); applyList.setAutoDelete(true);
TQDomNode tqshape = node.tqparentNode(); TQDomNode tqshape = node.parentNode();
for(; !tqshape.isNull() ; tqshape = tqshape.tqparentNode()) for(; !tqshape.isNull() ; tqshape = tqshape.parentNode())
applyList.prepend(new TQDomNamedNodeMap(tqshape.attributes())); applyList.prepend(new TQDomNamedNodeMap(tqshape.attributes()));
// Apply parent attributes // Apply parent attributes

@ -364,7 +364,7 @@ void KStyle::drawKStylePrimitive( KStylePrimitive kpe,
else else
pix.resize( w-2, h-2 ); pix.resize( w-2, h-2 );
TQString title = wid->tqparentWidget()->caption(); TQString title = wid->parentWidget()->caption();
TQPainter p2; TQPainter p2;
p2.begin(&pix); p2.begin(&pix);
p2.fillRect(pix.rect(), cg.brush(TQColorGroup::Highlight)); p2.fillRect(pix.rect(), cg.brush(TQColorGroup::Highlight));
@ -569,7 +569,7 @@ void KStyle::tqdrawPrimitive( TQ_PrimitiveElement pe,
if (p && p->device()->devType() == TQInternal::Widget) { if (p && p->device()->devType() == TQInternal::Widget) {
widget = static_cast<TQWidget*>(p->device()); widget = static_cast<TQWidget*>(p->device());
parent = widget->tqparentWidget(); parent = widget->parentWidget();
} else } else
return; // Don't paint on non-widgets return; // Don't paint on non-widgets
@ -986,7 +986,7 @@ int KStyle::tqpixelMetric(PixelMetric m, const TQWidget* widget) const
TQWidget* parent = 0; TQWidget* parent = 0;
// Check that we are not a normal toolbar or a hidden dockwidget, // Check that we are not a normal toolbar or a hidden dockwidget,
// in which case we need to adjust the height for font size // in which case we need to adjust the height for font size
if (widget && (parent = widget->tqparentWidget() ) if (widget && (parent = widget->parentWidget() )
&& !parent->inherits(TQTOOLBAR_OBJECT_NAME_STRING) && !parent->inherits(TQTOOLBAR_OBJECT_NAME_STRING)
&& !parent->inherits(TQMAINWINDOW_OBJECT_NAME_STRING) && !parent->inherits(TQMAINWINDOW_OBJECT_NAME_STRING)
&& widget->inherits(TQDOCKWINDOWHANDLE_OBJECT_NAME_STRING) ) && widget->inherits(TQDOCKWINDOWHANDLE_OBJECT_NAME_STRING) )
@ -1200,10 +1200,10 @@ void KStyle::tqdrawComplexControl( TQ_ComplexControl control,
TQPainter p2; TQPainter p2;
p2.begin(&pix); p2.begin(&pix);
if ( slider->tqparentWidget() && if ( slider->parentWidget() &&
slider->tqparentWidget()->backgroundPixmap() && slider->parentWidget()->backgroundPixmap() &&
!slider->tqparentWidget()->backgroundPixmap()->isNull() ) { !slider->parentWidget()->backgroundPixmap()->isNull() ) {
TQPixmap pixmap = *(slider->tqparentWidget()->backgroundPixmap()); TQPixmap pixmap = *(slider->parentWidget()->backgroundPixmap());
p2.drawTiledPixmap(r, pixmap, slider->pos()); p2.drawTiledPixmap(r, pixmap, slider->pos());
} else } else
pix.fill(cg.background()); pix.fill(cg.background());

@ -59,7 +59,7 @@ void ImagePreview::paintEvent(TQPaintEvent*){
int x = (width()-tmpImage.width())/2, y = (height()-tmpImage.height())/2; int x = (width()-tmpImage.width())/2, y = (height()-tmpImage.height())/2;
QPixmap buffer(width(), height()); QPixmap buffer(width(), height());
buffer.fill(tqparentWidget(), 0, 0); buffer.fill(parentWidget(), 0, 0);
QPainter p(&buffer); QPainter p(&buffer);
p.drawImage(x,y,tmpImage); p.drawImage(x,y,tmpImage);
p.end(); p.end();

@ -31,33 +31,33 @@ public:
KPrintActionPrivate() KPrintActionPrivate()
{ {
type = All; type = All;
tqparentWidget = 0; parentWidget = 0;
} }
PrinterType type; PrinterType type;
QStringList printers; QStringList printers;
TQWidget *tqparentWidget; TQWidget *parentWidget;
}; };
KPrintAction::KPrintAction(const TQString& text, PrinterType type, TQWidget *tqparentWidget, TQObject *parent, const char *name) KPrintAction::KPrintAction(const TQString& text, PrinterType type, TQWidget *parentWidget, TQObject *parent, const char *name)
: KActionMenu(text, parent, name) : KActionMenu(text, parent, name)
{ {
d = new KPrintActionPrivate(); d = new KPrintActionPrivate();
initialize(type, tqparentWidget); initialize(type, parentWidget);
} }
KPrintAction::KPrintAction(const TQString& text, const TQIconSet& icon, PrinterType type, TQWidget *tqparentWidget, TQObject *parent, const char *name) KPrintAction::KPrintAction(const TQString& text, const TQIconSet& icon, PrinterType type, TQWidget *parentWidget, TQObject *parent, const char *name)
: KActionMenu(text, icon, parent, name) : KActionMenu(text, icon, parent, name)
{ {
d = new KPrintActionPrivate(); d = new KPrintActionPrivate();
initialize(type, tqparentWidget); initialize(type, parentWidget);
} }
KPrintAction::KPrintAction(const TQString& text, const TQString& icon, PrinterType type, TQWidget *tqparentWidget, TQObject *parent, const char *name) KPrintAction::KPrintAction(const TQString& text, const TQString& icon, PrinterType type, TQWidget *parentWidget, TQObject *parent, const char *name)
: KActionMenu(text, icon, parent, name) : KActionMenu(text, icon, parent, name)
{ {
d = new KPrintActionPrivate(); d = new KPrintActionPrivate();
initialize(type, tqparentWidget); initialize(type, parentWidget);
} }
KPrintAction::~KPrintAction() KPrintAction::~KPrintAction()
@ -65,13 +65,13 @@ KPrintAction::~KPrintAction()
delete d; delete d;
} }
void KPrintAction::initialize(PrinterType type, TQWidget *tqparentWidget) void KPrintAction::initialize(PrinterType type, TQWidget *parentWidget)
{ {
connect(popupMenu(), TQT_SIGNAL(aboutToShow()), TQT_SLOT(slotAboutToShow())); connect(popupMenu(), TQT_SIGNAL(aboutToShow()), TQT_SLOT(slotAboutToShow()));
connect(popupMenu(), TQT_SIGNAL(activated(int)), TQT_SLOT(slotActivated(int))); connect(popupMenu(), TQT_SIGNAL(activated(int)), TQT_SLOT(slotActivated(int)));
d->type = type; d->type = type;
d->tqparentWidget = tqparentWidget; d->parentWidget = parentWidget;
} }
void KPrintAction::slotAboutToShow() void KPrintAction::slotAboutToShow()
@ -105,26 +105,26 @@ void KPrintAction::slotActivated(int ID)
{ {
KPrinter printer(false); KPrinter printer(false);
KMPrinter *mprt = KMManager::self()->findPrinter(d->printers[ID]); KMPrinter *mprt = KMManager::self()->findPrinter(d->printers[ID]);
if (mprt && mprt->autoConfigure(&printer, d->tqparentWidget)) if (mprt && mprt->autoConfigure(&printer, d->parentWidget))
{ {
// emit the signal // emit the signal
emit print(&printer); emit print(&printer);
} }
} }
KPrintAction* KPrintAction::exportAll(TQWidget *tqparentWidget, TQObject *parent, const char *name) KPrintAction* KPrintAction::exportAll(TQWidget *parentWidget, TQObject *parent, const char *name)
{ {
return new KPrintAction(i18n("&Export..."), All, tqparentWidget, parent, (name ? name : "export_all")); return new KPrintAction(i18n("&Export..."), All, parentWidget, parent, (name ? name : "export_all"));
} }
KPrintAction* KPrintAction::exportRegular(TQWidget *tqparentWidget, TQObject *parent, const char *name) KPrintAction* KPrintAction::exportRegular(TQWidget *parentWidget, TQObject *parent, const char *name)
{ {
return new KPrintAction(i18n("&Export..."), Regular, tqparentWidget, parent, (name ? name : "export_regular")); return new KPrintAction(i18n("&Export..."), Regular, parentWidget, parent, (name ? name : "export_regular"));
} }
KPrintAction* KPrintAction::exportSpecial(TQWidget *tqparentWidget, TQObject *parent, const char *name) KPrintAction* KPrintAction::exportSpecial(TQWidget *parentWidget, TQObject *parent, const char *name)
{ {
return new KPrintAction(i18n("&Export..."), Specials, tqparentWidget, parent, (name ? name : "export_special")); return new KPrintAction(i18n("&Export..."), Specials, parentWidget, parent, (name ? name : "export_special"));
} }
#include "kprintaction.moc" #include "kprintaction.moc"

@ -30,14 +30,14 @@ class KDEPRINT_EXPORT KPrintAction : public KActionMenu
public: public:
enum PrinterType { All, Regular, Specials }; enum PrinterType { All, Regular, Specials };
KPrintAction(const TQString& text, PrinterType type = All, TQWidget *tqparentWidget = 0, TQObject *parent = 0, const char *name = 0); KPrintAction(const TQString& text, PrinterType type = All, TQWidget *parentWidget = 0, TQObject *parent = 0, const char *name = 0);
KPrintAction(const TQString& text, const TQIconSet& icon, PrinterType type = All, TQWidget *tqparentWidget = 0, TQObject *parent = 0, const char *name = 0); KPrintAction(const TQString& text, const TQIconSet& icon, PrinterType type = All, TQWidget *parentWidget = 0, TQObject *parent = 0, const char *name = 0);
KPrintAction(const TQString& text, const TQString& icon, PrinterType type = All, TQWidget *tqparentWidget = 0, TQObject *parent = 0, const char *name = 0); KPrintAction(const TQString& text, const TQString& icon, PrinterType type = All, TQWidget *parentWidget = 0, TQObject *parent = 0, const char *name = 0);
virtual ~KPrintAction(); virtual ~KPrintAction();
static KPrintAction* exportAll(TQWidget *tqparentWidget = 0, TQObject *parent = 0, const char *name = 0); static KPrintAction* exportAll(TQWidget *parentWidget = 0, TQObject *parent = 0, const char *name = 0);
static KPrintAction* exportRegular(TQWidget *tqparentWidget = 0, TQObject *parent = 0, const char *name = 0); static KPrintAction* exportRegular(TQWidget *parentWidget = 0, TQObject *parent = 0, const char *name = 0);
static KPrintAction* exportSpecial(TQWidget *tqparentWidget = 0, TQObject *parent = 0, const char *name = 0); static KPrintAction* exportSpecial(TQWidget *parentWidget = 0, TQObject *parent = 0, const char *name = 0);
signals: signals:
void print(KPrinter*); void print(KPrinter*);
@ -47,7 +47,7 @@ protected slots:
void slotActivated(int); void slotActivated(int);
protected: protected:
void initialize(PrinterType type, TQWidget *tqparentWidget); void initialize(PrinterType type, TQWidget *parentWidget);
private: private:
class KPrintActionPrivate; class KPrintActionPrivate;

@ -546,7 +546,7 @@ void KPrintDialog::initialize(KPrinter *printer)
TQPtrList<KMPrinter> *plist = KMFactory::self()->manager()->printerList(); TQPtrList<KMPrinter> *plist = KMFactory::self()->manager()->printerList();
if (!KMManager::self()->errorMsg().isEmpty()) if (!KMManager::self()->errorMsg().isEmpty())
{ {
KMessageBox::error(tqparentWidget(), KMessageBox::error(parentWidget(),
"<qt><nobr>"+ "<qt><nobr>"+
i18n("An error occurred while retrieving the printer list:") i18n("An error occurred while retrieving the printer list:")
+"</nobr><br><br>"+KMManager::self()->errorMsg()+"</qt>"); +"</nobr><br><br>"+KMManager::self()->errorMsg()+"</qt>");
@ -934,7 +934,7 @@ void KPrintDialog::slotUpdatePossible( bool flag )
{ {
MessageWindow::remove( this ); MessageWindow::remove( this );
if ( !flag ) if ( !flag )
KMessageBox::error(tqparentWidget(), KMessageBox::error(parentWidget(),
"<qt><nobr>"+ "<qt><nobr>"+
i18n("An error occurred while retrieving the printer list:") i18n("An error occurred while retrieving the printer list:")
+"</nobr><br><br>"+KMManager::self()->errorMsg()+"</qt>"); +"</nobr><br><br>"+KMManager::self()->errorMsg()+"</qt>");

@ -735,10 +735,10 @@ void KXmlCommandAdvancedDlg::slotMoveDown()
void KXmlCommandAdvancedDlg::slotCommandChanged(const TQString& cmd) void KXmlCommandAdvancedDlg::slotCommandChanged(const TQString& cmd)
{ {
m_inputfile->tqparentWidget()->setEnabled(cmd.tqfind("%filterinput") != -1); m_inputfile->parentWidget()->setEnabled(cmd.tqfind("%filterinput") != -1);
m_outputfile->tqparentWidget()->setEnabled(cmd.tqfind("%filteroutput") != -1); m_outputfile->parentWidget()->setEnabled(cmd.tqfind("%filteroutput") != -1);
m_view->setEnabled(cmd.tqfind("%filterargs") != -1); m_view->setEnabled(cmd.tqfind("%filterargs") != -1);
m_name->tqparentWidget()->setEnabled(m_view->isEnabled()); m_name->parentWidget()->setEnabled(m_view->isEnabled());
slotSelectionChanged((m_view->isEnabled() ? m_view->currentItem() : 0)); slotSelectionChanged((m_view->isEnabled() ? m_view->currentItem() : 0));
m_view->setOpen(m_view->firstChild(), m_view->isEnabled()); m_view->setOpen(m_view->firstChild(), m_view->isEnabled());
} }
@ -1025,7 +1025,7 @@ void KXmlCommandDlg::slotRemoveMime()
void KXmlCommandDlg::slotEditCommand() void KXmlCommandDlg::slotEditCommand()
{ {
KXmlCommandAdvancedDlg::editCommand(m_cmd, tqparentWidget()); KXmlCommandAdvancedDlg::editCommand(m_cmd, parentWidget());
} }
void KXmlCommandDlg::slotAddReq() void KXmlCommandDlg::slotAddReq()

@ -157,7 +157,7 @@ void NetworkScanner::slotScanClicked()
if ( !d->scanning ) if ( !d->scanning )
{ {
if ( d->localPrefix() == d->prefixaddress || if ( d->localPrefix() == d->prefixaddress ||
KMessageBox::warningContinueCancel( this->tqparentWidget(), KMessageBox::warningContinueCancel( this->parentWidget(),
i18n( "You are about to scan a subnet (%1.*) that does not " i18n( "You are about to scan a subnet (%1.*) that does not "
"correspond to the current subnet of this computer (%2.*). Do you want " "correspond to the current subnet of this computer (%2.*). Do you want "
"to scan the specified subnet anyway?" ).arg( d->prefixaddress ).arg( d->localPrefix() ), "to scan the specified subnet anyway?" ).arg( d->prefixaddress ).arg( d->localPrefix() ),

@ -55,13 +55,13 @@ MessageWindow::MessageWindow( const TQString& txt, int delay, TQWidget *parent,
MessageWindow::~MessageWindow() MessageWindow::~MessageWindow()
{ {
m_windows.remove( tqparentWidget() ); m_windows.remove( parentWidget() );
} }
void MessageWindow::slotTimer() void MessageWindow::slotTimer()
{ {
TQSize psz = tqparentWidget()->size(), sz = tqsizeHint(); TQSize psz = parentWidget()->size(), sz = tqsizeHint();
move( tqparentWidget()->mapToGlobal( TQPoint( (psz.width()-sz.width())/2, (psz.height()-sz.height())/2 ) ) ); move( parentWidget()->mapToGlobal( TQPoint( (psz.width()-sz.width())/2, (psz.height()-sz.height())/2 ) ) );
if ( !isVisible() ) if ( !isVisible() )
{ {
show(); show();

@ -451,7 +451,7 @@ void KAboutContainerBase::fontChange( const TQFont &/*oldFont*/ )
f.setBold( true ); f.setBold( true );
mVersionLabel->setFont(f); mVersionLabel->setFont(f);
mAuthorLabel->setFont(f); mAuthorLabel->setFont(f);
mVersionLabel->tqparentWidget()->layout()->activate(); mVersionLabel->parentWidget()->layout()->activate();
} }
update(); update();
@ -716,7 +716,7 @@ void KAboutContainerBase::setProduct( const TQString &appName,
mAuthorLabel->hide(); mAuthorLabel->hide();
} }
mIconLabel->tqparentWidget()->layout()->activate(); mIconLabel->parentWidget()->layout()->activate();
} }

@ -813,7 +813,7 @@ void KAction::plugMainWindowAccel( TQWidget *w )
// Note: tqtopLevelWidget() stops too early, we can't use it. // Note: tqtopLevelWidget() stops too early, we can't use it.
TQWidget * tl = w; TQWidget * tl = w;
TQWidget * n; TQWidget * n;
while ( !tl->isDialog() && ( n = tl->tqparentWidget() ) ) // lookup parent and store while ( !tl->isDialog() && ( n = tl->parentWidget() ) ) // lookup parent and store
tl = n; tl = n;
KMainWindow * mw = tqt_dynamic_cast<KMainWindow *>(tl); // try to see if it's a kmainwindow KMainWindow * mw = tqt_dynamic_cast<KMainWindow *>(tl); // try to see if it's a kmainwindow

@ -2024,7 +2024,7 @@ int KToggleToolBarAction::plug( TQWidget* w, int index )
// Note: tqtopLevelWidget() stops too early, we can't use it. // Note: tqtopLevelWidget() stops too early, we can't use it.
TQWidget * tl = w; TQWidget * tl = w;
TQWidget * n; TQWidget * n;
while ( !tl->isDialog() && ( n = tl->tqparentWidget() ) ) // lookup parent and store while ( !tl->isDialog() && ( n = tl->parentWidget() ) ) // lookup parent and store
tl = n; tl = n;
KMainWindow * mw = tqt_dynamic_cast<KMainWindow *>(tl); // try to see if it's a kmainwindow KMainWindow * mw = tqt_dynamic_cast<KMainWindow *>(tl); // try to see if it's a kmainwindow

@ -180,7 +180,7 @@ public:
/** /**
* Erases all the undo/redo history. * Erases all the undo/redo history.
* Use this when reloading the data, for instance, since this tqinvalidates * Use this when reloading the data, for instance, since this invalidates
* all the commands. * all the commands.
*/ */
void clear(); void clear();

@ -1113,7 +1113,7 @@ void KDialogBase::setDetailsWidget(TQWidget *detailsWidget)
{ {
delete d->detailsWidget; delete d->detailsWidget;
d->detailsWidget = detailsWidget; d->detailsWidget = detailsWidget;
if (d->detailsWidget->tqparentWidget() != this) if (d->detailsWidget->parentWidget() != this)
d->detailsWidget->reparent(this, TQPoint(0,0)); d->detailsWidget->reparent(this, TQPoint(0,0));
d->detailsWidget->hide(); d->detailsWidget->hide();
if( mIsActivated ) if( mIsActivated )
@ -1748,7 +1748,7 @@ TQSize KDialogBase::configDialogSize( KConfig& config,
const TQString& groupName ) const const TQString& groupName ) const
{ {
int w, h; int w, h;
int scnum = TQApplication::desktop()->screenNumber(tqparentWidget()); int scnum = TQApplication::desktop()->screenNumber(parentWidget());
TQRect desk = TQApplication::desktop()->screenGeometry(scnum); TQRect desk = TQApplication::desktop()->screenGeometry(scnum);
w = tqsizeHint().width(); w = tqsizeHint().width();
@ -1771,7 +1771,7 @@ void KDialogBase::saveDialogSize( const TQString& groupName, bool global )
void KDialogBase::saveDialogSize( KConfig& config, const TQString& groupName, void KDialogBase::saveDialogSize( KConfig& config, const TQString& groupName,
bool global ) const bool global ) const
{ {
int scnum = TQApplication::desktop()->screenNumber(tqparentWidget()); int scnum = TQApplication::desktop()->screenNumber(parentWidget());
TQRect desk = TQApplication::desktop()->screenGeometry(scnum); TQRect desk = TQApplication::desktop()->screenGeometry(scnum);
KConfigGroupSaver cs(&config, groupName); KConfigGroupSaver cs(&config, groupName);

@ -323,7 +323,7 @@ void KDockWidgetHeader::setDragPanel( KDockWidgetHeaderDrag* nd )
delete drag; delete drag;
drag = nd; drag = nd;
if (drag->tqparentWidget()!=this) { if (drag->parentWidget()!=this) {
drag->reparent(this,TQPoint(0,0)); drag->reparent(this,TQPoint(0,0));
} }
@ -351,7 +351,7 @@ void KDockWidgetHeader::setDragPanel( KDockWidgetHeaderDrag* nd )
void KDockWidgetHeader::addButton(KDockButton_Private* btn) { void KDockWidgetHeader::addButton(KDockButton_Private* btn) {
if (!btn) return; if (!btn) return;
if (btn->tqparentWidget()!=this) { if (btn->parentWidget()!=this) {
btn->reparent(this,TQPoint(0,0)); btn->reparent(this,TQPoint(0,0));
} }
btn->setFixedSize(closeButton->pixmap()->width(),closeButton->pixmap()->height()); btn->setFixedSize(closeButton->pixmap()->width(),closeButton->pixmap()->height());
@ -382,7 +382,7 @@ void KDockWidgetHeader::addButton(KDockButton_Private* btn) {
} }
void KDockWidgetHeader::removeButton(KDockButton_Private* btn) { void KDockWidgetHeader::removeButton(KDockButton_Private* btn) {
if (btn->tqparentWidget()==this) { if (btn->parentWidget()==this) {
if (d->btns.tqcontainsRef(btn)) d->btns.removeRef(btn); if (d->btns.tqcontainsRef(btn)) d->btns.removeRef(btn);
delete btn; delete btn;
} }
@ -858,7 +858,7 @@ void KDockWidget::show()
void KDockWidget::setDockWindowType (NET::WindowType windowType) void KDockWidget::setDockWindowType (NET::WindowType windowType)
{ {
d->windowType = windowType; d->windowType = windowType;
applyToWidget( tqparentWidget(), TQPoint(0,0) ); applyToWidget( parentWidget(), TQPoint(0,0) );
} }
#endif #endif
@ -867,7 +867,7 @@ void KDockWidget::setDockWindowTransient (TQWidget *parent, bool transientEnable
{ {
d->_parent = parent; d->_parent = parent;
d->transient = transientEnabled; d->transient = transientEnabled;
applyToWidget( tqparentWidget(), TQPoint(0,0) ); applyToWidget( parentWidget(), TQPoint(0,0) );
} }
TQWidget *KDockWidget::transientTo() { TQWidget *KDockWidget::transientTo() {
@ -898,7 +898,7 @@ bool KDockWidget::event( TQEvent *event )
emit manager->change(); emit manager->change();
break; break;
case TQEvent::CaptionChange: case TQEvent::CaptionChange:
if ( tqparentWidget() ){ if ( parentWidget() ){
if ( parent()->inherits("KDockSplitter") ){ if ( parent()->inherits("KDockSplitter") ){
((KDockSplitter*)(parent()))->updateName(); ((KDockSplitter*)(parent()))->updateName();
} }
@ -1091,7 +1091,7 @@ KDockWidget* KDockWidget::manualDock( KDockWidget* target, DockPosition dockPos,
} }
// create a new dockwidget that will contain the target and this // create a new dockwidget that will contain the target and this
TQWidget* parentDock = target->tqparentWidget(); TQWidget* parentDock = target->parentWidget();
KDockWidget* newDock = new KDockWidget( manager, "tempName", TQPixmap(TQString("")), parentDock ); KDockWidget* newDock = new KDockWidget( manager, "tempName", TQPixmap(TQString("")), parentDock );
newDock->currentDockPos = target->currentDockPos; newDock->currentDockPos = target->currentDockPos;
@ -1218,7 +1218,7 @@ KDockWidget* KDockWidget::manualDock( KDockWidget* target, DockPosition dockPos,
KDockTabGroup* KDockWidget::parentDockTabGroup() const KDockTabGroup* KDockWidget::parentDockTabGroup() const
{ {
if ( !parent() ) return 0L; if ( !parent() ) return 0L;
TQWidget* candidate = tqparentWidget()->tqparentWidget(); TQWidget* candidate = parentWidget()->parentWidget();
if ( candidate && candidate->inherits("KDockTabGroup") ) return (KDockTabGroup*)candidate; if ( candidate && candidate->inherits("KDockTabGroup") ) return (KDockTabGroup*)candidate;
return 0L; return 0L;
} }
@ -1226,7 +1226,7 @@ KDockTabGroup* KDockWidget::parentDockTabGroup() const
TQWidget *KDockWidget::parentDockContainer() const TQWidget *KDockWidget::parentDockContainer() const
{ {
if (!parent()) return 0L; if (!parent()) return 0L;
TQWidget* candidate = tqparentWidget()->tqparentWidget(); TQWidget* candidate = parentWidget()->parentWidget();
if (candidate && tqt_dynamic_cast<KDockContainer*>(candidate)) return candidate; if (candidate && tqt_dynamic_cast<KDockContainer*>(candidate)) return candidate;
return 0L; return 0L;
} }
@ -1295,7 +1295,7 @@ void KDockWidget::undock()
manager->d->dragRect = TQRect (); manager->d->dragRect = TQRect ();
manager->drawDragRectangle (); manager->drawDragRectangle ();
TQWidget* parentW = tqparentWidget(); TQWidget* parentW = parentWidget();
if ( !parentW ){ if ( !parentW ){
hide(); hide();
if (!d->blockHasUndockedSignal) if (!d->blockHasUndockedSignal)
@ -1337,7 +1337,7 @@ void KDockWidget::undock()
KDockWidget* parentOfTab = (KDockWidget*)parentTab->parent(); KDockWidget* parentOfTab = (KDockWidget*)parentTab->parent();
delete parentTab; // KDockTabGroup delete parentTab; // KDockTabGroup
TQWidget* parentOfDockWidget = parentOfTab->tqparentWidget(); TQWidget* parentOfDockWidget = parentOfTab->parentWidget();
if ( !parentOfDockWidget ){ if ( !parentOfDockWidget ){
if ( isV ) lastTab->show(); if ( isV ) lastTab->show();
} else { } else {
@ -1396,16 +1396,16 @@ void KDockWidget::undock()
d->splitPosInPercent = parentSplitterOfDockWidget->separatorPosInPercent(); d->splitPosInPercent = parentSplitterOfDockWidget->separatorPosInPercent();
KDockWidget* secondWidget = (KDockWidget*)parentSplitterOfDockWidget->getAnother( this ); KDockWidget* secondWidget = (KDockWidget*)parentSplitterOfDockWidget->getAnother( this );
KDockWidget* group = (KDockWidget*)parentSplitterOfDockWidget->tqparentWidget(); KDockWidget* group = (KDockWidget*)parentSplitterOfDockWidget->parentWidget();
setFormerBrotherDockWidget(secondWidget); setFormerBrotherDockWidget(secondWidget);
applyToWidget( 0L ); applyToWidget( 0L );
group->hide(); group->hide();
if ( !group->tqparentWidget() ){ if ( !group->parentWidget() ){
secondWidget->applyToWidget( 0L, group->frameGeometry().topLeft() ); secondWidget->applyToWidget( 0L, group->frameGeometry().topLeft() );
secondWidget->resize( group->width(), group->height() ); secondWidget->resize( group->width(), group->height() );
} else { } else {
TQWidget* obj = group->tqparentWidget(); TQWidget* obj = group->parentWidget();
secondWidget->applyToWidget( obj ); secondWidget->applyToWidget( obj );
if ( obj->inherits("KDockSplitter") ){ if ( obj->inherits("KDockSplitter") ){
KDockSplitter* parentOfGroup = (KDockSplitter*)obj; KDockSplitter* parentOfGroup = (KDockSplitter*)obj;
@ -1494,13 +1494,13 @@ void KDockWidget::setDockTabName( KDockTabGroup* tab )
listOfCaption.remove( listOfCaption.length()-1, 1 ); listOfCaption.remove( listOfCaption.length()-1, 1 );
listOfName.remove( listOfName.length()-1, 1 ); listOfName.remove( listOfName.length()-1, 1 );
tab->tqparentWidget()->setName( listOfName.utf8() ); tab->parentWidget()->setName( listOfName.utf8() );
tab->tqparentWidget()->setCaption( listOfCaption ); tab->parentWidget()->setCaption( listOfCaption );
tab->tqparentWidget()->tqrepaint( false ); // KDockWidget->tqrepaint tab->parentWidget()->tqrepaint( false ); // KDockWidget->tqrepaint
if ( tab->tqparentWidget()->parent() ) if ( tab->parentWidget()->parent() )
if ( tab->tqparentWidget()->parent()->inherits("KDockSplitter") ) if ( tab->parentWidget()->parent()->inherits("KDockSplitter") )
((KDockSplitter*)(tab->tqparentWidget()->parent()))->updateName(); ((KDockSplitter*)(tab->parentWidget()->parent()))->updateName();
} }
bool KDockWidget::mayBeHide() const bool KDockWidget::mayBeHide() const
@ -1545,11 +1545,11 @@ void KDockWidget::makeDockVisible()
} }
if ( isVisible() ) return; if ( isVisible() ) return;
TQWidget* p = tqparentWidget(); TQWidget* p = parentWidget();
while ( p ){ while ( p ){
if ( !p->isVisible() ) if ( !p->isVisible() )
p->show(); p->show();
p = p->tqparentWidget(); p = p->parentWidget();
} }
if( !parent() ) // is undocked if( !parent() ) // is undocked
dockBack(); dockBack();
@ -1948,8 +1948,8 @@ void KDockManager::startDrag( KDockWidget* w )
|| ( w->currentDockPos == KDockWidget::DockTop) || ( w->currentDockPos == KDockWidget::DockBottom)) { || ( w->currentDockPos == KDockWidget::DockTop) || ( w->currentDockPos == KDockWidget::DockBottom)) {
w->prevSideDockPosBeforeDrag = w->currentDockPos; w->prevSideDockPosBeforeDrag = w->currentDockPos;
if ( w->tqparentWidget()->inherits("KDockSplitter") ){ if ( w->parentWidget()->inherits("KDockSplitter") ){
KDockSplitter* parentSplitterOfDockWidget = (KDockSplitter*)(w->tqparentWidget()); KDockSplitter* parentSplitterOfDockWidget = (KDockSplitter*)(w->parentWidget());
w->d->splitPosInPercent = parentSplitterOfDockWidget->separatorPosInPercent(); w->d->splitPosInPercent = parentSplitterOfDockWidget->separatorPosInPercent();
} }
} }

@ -585,15 +585,15 @@ void KDockSplitter::updateName()
if ( !initialised ) return; if ( !initialised ) return;
TQString new_name = TQString( child0->name() ) + "," + child1->name(); TQString new_name = TQString( child0->name() ) + "," + child1->name();
tqparentWidget()->setName( new_name.latin1() ); parentWidget()->setName( new_name.latin1() );
tqparentWidget()->setCaption( child0->caption() + "," + child1->caption() ); parentWidget()->setCaption( child0->caption() + "," + child1->caption() );
tqparentWidget()->tqrepaint( false ); parentWidget()->tqrepaint( false );
((KDockWidget*)tqparentWidget())->firstName = child0->name(); ((KDockWidget*)parentWidget())->firstName = child0->name();
((KDockWidget*)tqparentWidget())->lastName = child1->name(); ((KDockWidget*)parentWidget())->lastName = child1->name();
((KDockWidget*)tqparentWidget())->splitterOrientation = m_orientation; ((KDockWidget*)parentWidget())->splitterOrientation = m_orientation;
TQWidget* p = tqparentWidget()->tqparentWidget(); TQWidget* p = parentWidget()->parentWidget();
if ( p && p->inherits("KDockSplitter" ) ) if ( p && p->inherits("KDockSplitter" ) )
((KDockSplitter*)p)->updateName(); ((KDockSplitter*)p)->updateName();
} }

@ -711,11 +711,11 @@ void KFontChooser::showXLFDArea(bool show)
{ {
if( show ) if( show )
{ {
xlfdEdit->tqparentWidget()->show(); xlfdEdit->parentWidget()->show();
} }
else else
{ {
xlfdEdit->tqparentWidget()->hide(); xlfdEdit->parentWidget()->hide();
} }
} }

@ -72,7 +72,7 @@ void KFontRequester::setTitle( const TQString &title )
void KFontRequester::buttonClicked() void KFontRequester::buttonClicked()
{ {
int result = KFontDialog::getFont( m_selFont, m_onlyFixed, tqparentWidget() ); int result = KFontDialog::getFont( m_selFont, m_onlyFixed, parentWidget() );
if ( result == KDialog::Accepted ) if ( result == KDialog::Accepted )
{ {

@ -307,7 +307,7 @@ void KHelpMenu::contextHelpActivated()
TQWhatsThis::enterWhatsThisMode(); TQWhatsThis::enterWhatsThisMode();
TQWidget* w = TQApplication::widgetAt( TQCursor::pos(), true ); TQWidget* w = TQApplication::widgetAt( TQCursor::pos(), true );
while ( w && !w->isTopLevel() && !w->inherits("QXEmbed") ) while ( w && !w->isTopLevel() && !w->inherits("QXEmbed") )
w = w->tqparentWidget(); w = w->parentWidget();
#ifdef Q_WS_X11 #ifdef Q_WS_X11
if ( w && w->inherits("QXEmbed") ) if ( w && w->inherits("QXEmbed") )
(( QXEmbed*) w )->enterWhatsThisMode(); (( QXEmbed*) w )->enterWhatsThisMode();

@ -459,8 +459,8 @@ void KJanusWidget::addPageWidget( TQFrame *page, const TQStringList &items,
TQString itemName = items.last(); TQString itemName = items.last();
IconListItem *item = new IconListItem( mIconList, pixmap, itemName ); IconListItem *item = new IconListItem( mIconList, pixmap, itemName );
mIconListToPageStack.insert(item, page); mIconListToPageStack.insert(item, page);
mIconList->tqinvalidateHeight(); mIconList->invalidateHeight();
mIconList->tqinvalidateWidth(); mIconList->invalidateWidth();
if (mIconList->isVisible()) if (mIconList->isVisible())
mIconList->updateWidth(); mIconList->updateWidth();
@ -686,7 +686,7 @@ int KJanusWidget::pageIndex( TQWidget *widget ) const
// //
if( widget->isA(TQFRAME_OBJECT_NAME_STRING) ) if( widget->isA(TQFRAME_OBJECT_NAME_STRING) )
{ {
return d->mPageToInt[widget->tqparentWidget()]; return d->mPageToInt[widget->parentWidget()];
} }
else else
{ {
@ -714,8 +714,8 @@ void KJanusWidget::slotFontChanged()
TQFont listFont( mIconList->font() ); TQFont listFont( mIconList->font() );
listFont.setBold( true ); listFont.setBold( true );
mIconList->setFont( listFont ); mIconList->setFont( listFont );
mIconList->tqinvalidateHeight(); mIconList->invalidateHeight();
mIconList->tqinvalidateWidth(); mIconList->invalidateWidth();
} }
} }
@ -987,13 +987,13 @@ void KJanusWidget::IconListBox::updateWidth()
} }
void KJanusWidget::IconListBox::tqinvalidateHeight() void KJanusWidget::IconListBox::invalidateHeight()
{ {
mHeightValid = false; mHeightValid = false;
} }
void KJanusWidget::IconListBox::tqinvalidateWidth() void KJanusWidget::IconListBox::invalidateWidth()
{ {
mWidthValid = false; mWidthValid = false;
} }

@ -77,8 +77,8 @@ class KDEUI_EXPORT KJanusWidget : public TQWidget
IconListBox( TQWidget *parent=0, const char *name=0, WFlags f=0 ); IconListBox( TQWidget *parent=0, const char *name=0, WFlags f=0 );
void updateMinimumHeight(); void updateMinimumHeight();
void updateWidth(); void updateWidth();
void tqinvalidateHeight(); void invalidateHeight();
void tqinvalidateWidth(); void invalidateWidth();
void setShowAll( bool showAll ); void setShowAll( bool showAll );
protected: protected:

@ -901,7 +901,7 @@ void KMainWindow::finalizeGUI( bool force )
void KMainWindow::saveWindowSize( KConfig * config ) const void KMainWindow::saveWindowSize( KConfig * config ) const
{ {
int scnum = TQApplication::desktop()->screenNumber(tqparentWidget()); int scnum = TQApplication::desktop()->screenNumber(parentWidget());
TQRect desk = TQApplication::desktop()->screenGeometry(scnum); TQRect desk = TQApplication::desktop()->screenGeometry(scnum);
int w, h; int w, h;
#if defined Q_WS_X11 #if defined Q_WS_X11
@ -937,7 +937,7 @@ void KMainWindow::restoreWindowSize( KConfig * config )
parseGeometry(true); parseGeometry(true);
} else { } else {
// restore the size // restore the size
int scnum = TQApplication::desktop()->screenNumber(tqparentWidget()); int scnum = TQApplication::desktop()->screenNumber(parentWidget());
TQRect desk = TQApplication::desktop()->screenGeometry(scnum); TQRect desk = TQApplication::desktop()->screenGeometry(scnum);
if ( d->defaultWindowSize.isNull() ) // only once if ( d->defaultWindowSize.isNull() ) // only once
d->defaultWindowSize = TQRect(desk.width(), width(), desk.height(), height()); // store default values d->defaultWindowSize = TQRect(desk.width(), width(), desk.height(), height()); // store default values

@ -167,8 +167,8 @@ void KMenuBar::setTopLevelMenuInternal(bool top_level)
top_level = true; top_level = true;
d->wasTopLevel = top_level; d->wasTopLevel = top_level;
if( tqparentWidget() if( parentWidget()
&& tqparentWidget()->tqtopLevelWidget()->isFullScreen()) && parentWidget()->tqtopLevelWidget()->isFullScreen())
top_level = false; top_level = false;
if ( isTopLevelMenu() == top_level ) if ( isTopLevelMenu() == top_level )
@ -189,19 +189,19 @@ void KMenuBar::setTopLevelMenuInternal(bool top_level)
d->margin = margin(); d->margin = margin();
d->fallback_mode = false; d->fallback_mode = false;
bool wasShown = !isHidden(); bool wasShown = !isHidden();
reparent( tqparentWidget(), (WFlags)(WType_TopLevel | WStyle_Tool | WStyle_Customize | WStyle_NoBorder), TQPoint(0,0), false ); reparent( parentWidget(), (WFlags)(WType_TopLevel | WStyle_Tool | WStyle_Customize | WStyle_NoBorder), TQPoint(0,0), false );
#ifdef Q_WS_X11 #ifdef Q_WS_X11
KWin::setType( winId(), NET::TopMenu ); KWin::setType( winId(), NET::TopMenu );
if( tqparentWidget()) if( parentWidget())
XSetTransientForHint( qt_xdisplay(), winId(), tqparentWidget()->tqtopLevelWidget()->winId()); XSetTransientForHint( qt_xdisplay(), winId(), parentWidget()->tqtopLevelWidget()->winId());
#endif #endif
TQMenuBar::setFrameStyle( NoFrame ); TQMenuBar::setFrameStyle( NoFrame );
TQMenuBar::setLineWidth( 0 ); TQMenuBar::setLineWidth( 0 );
TQMenuBar::setMargin( 0 ); TQMenuBar::setMargin( 0 );
updateFallbackSize(); updateFallbackSize();
d->min_size = TQSize( 0, 0 ); d->min_size = TQSize( 0, 0 );
if( tqparentWidget() && !tqparentWidget()->isTopLevel()) if( parentWidget() && !parentWidget()->isTopLevel())
setShown( tqparentWidget()->isVisible()); setShown( parentWidget()->isVisible());
else if ( wasShown ) else if ( wasShown )
show(); show();
} else } else
@ -217,8 +217,8 @@ void KMenuBar::setTopLevelMenuInternal(bool top_level)
setMinimumSize( 0, 0 ); setMinimumSize( 0, 0 );
setMaximumSize( QWIDGETSIZE_MAX, QWIDGETSIZE_MAX ); setMaximumSize( QWIDGETSIZE_MAX, QWIDGETSIZE_MAX );
updateMenuBarSize(); updateMenuBarSize();
if ( tqparentWidget() ) if ( parentWidget() )
reparent( tqparentWidget(), TQPoint(0,0), !isHidden()); reparent( parentWidget(), TQPoint(0,0), !isHidden());
} }
} }
@ -244,7 +244,7 @@ bool KMenuBar::eventFilter(TQObject *obj, TQEvent *ev)
{ {
if ( d->topLevel ) if ( d->topLevel )
{ {
if ( tqparentWidget() && TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(tqparentWidget()->tqtopLevelWidget()) ) if ( parentWidget() && TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(parentWidget()->tqtopLevelWidget()) )
{ {
if( ev->type() == TQEvent::Resize ) if( ev->type() == TQEvent::Resize )
return false; // ignore resizing of parent, TQMenuBar would try to adjust size return false; // ignore resizing of parent, TQMenuBar would try to adjust size
@ -257,21 +257,21 @@ bool KMenuBar::eventFilter(TQObject *obj, TQEvent *ev)
// will update the state properly // will update the state properly
setTopLevelMenuInternal( d->topLevel ); setTopLevelMenuInternal( d->topLevel );
} }
if( tqparentWidget() && TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(tqparentWidget()) && ev->type() == TQEvent::Reparent ) if( parentWidget() && TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(parentWidget()) && ev->type() == TQEvent::Reparent )
{ {
#ifdef Q_WS_X11 #ifdef Q_WS_X11
XSetTransientForHint( qt_xdisplay(), winId(), tqparentWidget()->tqtopLevelWidget()->winId()); XSetTransientForHint( qt_xdisplay(), winId(), parentWidget()->tqtopLevelWidget()->winId());
#else #else
//TODO: WIN32? //TODO: WIN32?
#endif #endif
setShown( tqparentWidget()->isTopLevel() || tqparentWidget()->isVisible()); setShown( parentWidget()->isTopLevel() || parentWidget()->isVisible());
} }
if( tqparentWidget() && !tqparentWidget()->isTopLevel() && TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(tqparentWidget())) if( parentWidget() && !parentWidget()->isTopLevel() && TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(parentWidget()))
{ // if the parent is not toplevel, KMenuBar needs to match its visibility status { // if the parent is not toplevel, KMenuBar needs to match its visibility status
if( ev->type() == TQEvent::Show ) if( ev->type() == TQEvent::Show )
{ {
#ifdef Q_WS_X11 #ifdef Q_WS_X11
XSetTransientForHint( qt_xdisplay(), winId(), tqparentWidget()->tqtopLevelWidget()->winId()); XSetTransientForHint( qt_xdisplay(), winId(), parentWidget()->tqtopLevelWidget()->winId());
#else #else
//TODO: WIN32? //TODO: WIN32?
#endif #endif
@ -283,10 +283,10 @@ bool KMenuBar::eventFilter(TQObject *obj, TQEvent *ev)
} }
else else
{ {
if( tqparentWidget() && TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(tqparentWidget()->tqtopLevelWidget())) if( parentWidget() && TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(parentWidget()->tqtopLevelWidget()))
{ {
if( ev->type() == TQEvent::WindowStateChange if( ev->type() == TQEvent::WindowStateChange
&& !tqparentWidget()->tqtopLevelWidget()->isFullScreen() ) && !parentWidget()->tqtopLevelWidget()->isFullScreen() )
setTopLevelMenuInternal( d->wasTopLevel ); setTopLevelMenuInternal( d->wasTopLevel );
} }
} }

@ -82,7 +82,7 @@ void KPanelApplet::tqsetAlignment( Alignment a )
{ {
if( _tqalignment == a ) return; if( _tqalignment == a ) return;
_tqalignment = a; _tqalignment = a;
tqalignmentChange( a ); alignmentChange( a );
} }
// FIXME: Remove implementation for KDE 4 // FIXME: Remove implementation for KDE 4

@ -324,7 +324,7 @@ protected:
* Reimplement this change handler in order to adjust the look of your * Reimplement this change handler in order to adjust the look of your
* applet. * applet.
**/ **/
virtual void tqalignmentChange( Alignment /*a*/ ) {} virtual void alignmentChange( Alignment /*a*/ ) {}
/** /**
* Use this method to set the custom menu for this applet so that it can be shown * Use this method to set the custom menu for this applet so that it can be shown

@ -75,7 +75,7 @@ void KPanelExtension::tqsetAlignment( Alignment a )
{ {
if( _tqalignment == a ) return; if( _tqalignment == a ) return;
_tqalignment = a; _tqalignment = a;
tqalignmentChange( a ); alignmentChange( a );
} }
void KPanelExtension::setSize( Size size, int customSize ) void KPanelExtension::setSize( Size size, int customSize )

@ -309,7 +309,7 @@ protected:
* Reimplement this change handler in order to adjust the look of your * Reimplement this change handler in order to adjust the look of your
* applet. * applet.
**/ **/
virtual void tqalignmentChange( Alignment ) {} virtual void alignmentChange( Alignment ) {}
/** /**
* Use this method to set the custom menu for this extensions so that it can be shown * Use this method to set the custom menu for this extensions so that it can be shown

@ -353,7 +353,7 @@ void KPopupMenu::keyPressEvent(TQKeyEvent* e)
// therefore the lastHitIndex is valid // therefore the lastHitIndex is valid
i = d->lastHitIndex; i = d->lastHitIndex;
} }
} else if (key == Key_Backspace && tqparentMenu) { } else if (key == Key_Backspace && parentMenu) {
// backspace with no chars in the buffer... go back a menu. // backspace with no chars in the buffer... go back a menu.
hide(); hide();
resetKeyboardVars(); resetKeyboardVars();

@ -77,13 +77,13 @@ KSystemTray::KSystemTray( TQWidget* parent, const char* name )
move( -1000, -1000 ); move( -1000, -1000 );
KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(maybeQuit()), d->actionCollection); KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(maybeQuit()), d->actionCollection);
if (tqparentWidget()) if (parentWidget())
{ {
new KAction(i18n("Minimize"), KShortcut(), new KAction(i18n("Minimize"), KShortcut(),
TQT_TQOBJECT(this), TQT_SLOT( minimizeRestoreAction() ), TQT_TQOBJECT(this), TQT_SLOT( minimizeRestoreAction() ),
d->actionCollection, "minimizeRestore"); d->actionCollection, "minimizeRestore");
#ifdef Q_WS_X11 #ifdef Q_WS_X11
KWin::WindowInfo info = KWin::windowInfo( tqparentWidget()->winId()); KWin::WindowInfo info = KWin::windowInfo( parentWidget()->winId());
d->on_all_desktops = info.onAllDesktops(); d->on_all_desktops = info.onAllDesktops();
#else #else
d->on_all_desktops = false; d->on_all_desktops = false;
@ -152,9 +152,9 @@ void KSystemTray::mousePressEvent( TQMouseEvent *e )
case Qt::MidButton: case Qt::MidButton:
// fall through // fall through
case Qt::RightButton: case Qt::RightButton:
if ( tqparentWidget() ) { if ( parentWidget() ) {
KAction* action = d->actionCollection->action("minimizeRestore"); KAction* action = d->actionCollection->action("minimizeRestore");
if ( tqparentWidget()->isVisible() ) if ( parentWidget()->isVisible() )
action->setText( i18n("&Minimize") ); action->setText( i18n("&Minimize") );
else else
action->setText( i18n("&Restore") ); action->setText( i18n("&Restore") );
@ -182,8 +182,8 @@ void KSystemTray::contextMenuAboutToShow( KPopupMenu* )
// entry is "minimize", otherwise it's "restore" // entry is "minimize", otherwise it's "restore"
void KSystemTray::minimizeRestoreAction() void KSystemTray::minimizeRestoreAction()
{ {
if ( tqparentWidget() ) { if ( parentWidget() ) {
bool restore = !( tqparentWidget()->isVisible() ); bool restore = !( parentWidget()->isVisible() );
minimizeRestore( restore ); minimizeRestore( restore );
} }
} }
@ -207,9 +207,9 @@ void KSystemTray::maybeQuit()
// KDE4: stop closing the parent widget? it results in complex application code // KDE4: stop closing the parent widget? it results in complex application code
// instead make applications connect to the quitSelected() signal // instead make applications connect to the quitSelected() signal
if (tqparentWidget()) if (parentWidget())
{ {
tqparentWidget()->close(); parentWidget()->close();
} }
else else
{ {
@ -237,7 +237,7 @@ void KSystemTray::setInactive()
// (just like taskbar); otherwise hide it // (just like taskbar); otherwise hide it
void KSystemTray::activateOrHide() void KSystemTray::activateOrHide()
{ {
TQWidget *pw = tqparentWidget(); TQWidget *pw = parentWidget();
if ( !pw ) if ( !pw )
return; return;
@ -283,7 +283,7 @@ void KSystemTray::activateOrHide()
void KSystemTray::minimizeRestore( bool restore ) void KSystemTray::minimizeRestore( bool restore )
{ {
TQWidget* pw = tqparentWidget(); TQWidget* pw = parentWidget();
if( !pw ) if( !pw )
return; return;
#ifdef Q_WS_X11 #ifdef Q_WS_X11

@ -163,7 +163,7 @@ protected:
/** /**
Reimplemented to provide the standard show/raise behavior Reimplemented to provide the standard show/raise behavior
for the tqparentWidget() and the context menu. for the parentWidget() and the context menu.
Feel free to reimplement this if you need something special. Feel free to reimplement this if you need something special.
*/ */
@ -171,7 +171,7 @@ protected:
/** /**
Reimplemented to provide the standard show/raise behavior Reimplemented to provide the standard show/raise behavior
for the tqparentWidget() and the context menu. for the parentWidget() and the context menu.
Feel free to reimplement this if you need something special. Feel free to reimplement this if you need something special.
*/ */

@ -48,7 +48,7 @@ KTabBar::KTabBar( TQWidget *parent, const char *name )
mActivateDragSwitchTabTimer = new TQTimer( this ); mActivateDragSwitchTabTimer = new TQTimer( this );
connect( mActivateDragSwitchTabTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( activateDragSwitchTab() ) ); connect( mActivateDragSwitchTabTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( activateDragSwitchTab() ) );
connect(this, TQT_SIGNAL(tqlayoutChanged()), TQT_SLOT(onLayoutChange())); connect(this, TQT_SIGNAL(layoutChanged()), TQT_SLOT(onLayoutChange()));
} }
KTabBar::~KTabBar() KTabBar::~KTabBar()

@ -353,8 +353,8 @@ bool KURLLabel::event (TQEvent *e)
{ {
if (e && e->type() == TQEvent::ParentPaletteChange) if (e && e->type() == TQEvent::ParentPaletteChange)
{ {
// use tqparentWidget() unless you are a toplevel widget, then try qAapp // use parentWidget() unless you are a toplevel widget, then try qAapp
TQPalette p = tqparentWidget() ? tqparentWidget()->palette() : tqApp->palette(); TQPalette p = parentWidget() ? parentWidget()->palette() : tqApp->palette();
p.setBrush(TQColorGroup::Base, p.brush(TQPalette::Normal, TQColorGroup::Background)); p.setBrush(TQColorGroup::Base, p.brush(TQPalette::Normal, TQColorGroup::Background));
p.setColor(TQColorGroup::Foreground, tqpalette().active().foreground()); p.setColor(TQColorGroup::Foreground, tqpalette().active().foreground());
setPalette(p); setPalette(p);

@ -52,8 +52,8 @@ TQString KWhatsThisUndefined::text (const TQPoint &)
" describe the widget, you are welcome to <a href=\"submit" " describe the widget, you are welcome to <a href=\"submit"
"-whatsthis\">send us your own \"What's This?\" help</a> for it."); "-whatsthis\">send us your own \"What's This?\" help</a> for it.");
TQString parent; TQString parent;
if (m_widget -> tqparentWidget ()) if (m_widget -> parentWidget ())
parent = TQWhatsThis::textFor (m_widget -> tqparentWidget ()); parent = TQWhatsThis::textFor (m_widget -> parentWidget ());
if (parent != txt) if (parent != txt)
if (! parent . isEmpty ()) if (! parent . isEmpty ())
return parent; return parent;
@ -68,7 +68,7 @@ bool KWhatsThisUndefined::clicked (const TQString& href)
body . append ("Widget text: '" + (m_widget -> property ("text") . toString ()) + "'\n"); body . append ("Widget text: '" + (m_widget -> property ("text") . toString ()) + "'\n");
TQString dsc = TQString ("current --> ") + m_widget -> name (); TQString dsc = TQString ("current --> ") + m_widget -> name ();
dsc . append (TQString (" (") + m_widget -> className () + ")\n"); dsc . append (TQString (" (") + m_widget -> className () + ")\n");
for (w = m_widget; w && w != m_widget -> tqtopLevelWidget (); w = w -> tqparentWidget ()) { for (w = m_widget; w && w != m_widget -> tqtopLevelWidget (); w = w -> parentWidget ()) {
dsc . append (w -> name ()); dsc . append (w -> name ());
dsc . append (TQString (" (") + w -> className () + ")\n"); dsc . append (TQString (" (") + w -> className () + ")\n");
} }

@ -146,7 +146,7 @@ TQWidget *KXMLGUIBuilder::createContainer( TQWidget *parent, int index, const TQ
// otherwise its shortcuts appear. // otherwise its shortcuts appear.
TQWidget* p = parent; TQWidget* p = parent;
while ( p && !::tqqt_cast<KMainWindow *>( p ) ) while ( p && !::tqqt_cast<KMainWindow *>( p ) )
p = p->tqparentWidget(); p = p->parentWidget();
TQCString name = element.attribute( d->attrName ).utf8(); TQCString name = element.attribute( d->attrName ).utf8();

@ -269,7 +269,7 @@ bool KXMLGUIClient::mergeXML( TQDomElement &base, const TQDomElement &additive,
// tag, in any event and just replace the old with the new // tag, in any event and just replace the old with the new
if ( additive.attribute(attrNoMerge) == attrOne ) // ### use toInt() instead? (Simon) if ( additive.attribute(attrNoMerge) == attrOne ) // ### use toInt() instead? (Simon)
{ {
base.tqparentNode().tqreplaceChild(additive, base); base.parentNode().tqreplaceChild(additive, base);
return true; return true;
} }

@ -839,7 +839,7 @@ bool QXEmbed::eventFilter( TQObject *o, TQEvent * e)
{ {
TQWidget* pos = this; TQWidget* pos = this;
while( TQT_BASE_OBJECT(pos) != TQT_BASE_OBJECT(o) && TQT_BASE_OBJECT(pos) != TQT_BASE_OBJECT(tqtopLevelWidget())) while( TQT_BASE_OBJECT(pos) != TQT_BASE_OBJECT(o) && TQT_BASE_OBJECT(pos) != TQT_BASE_OBJECT(tqtopLevelWidget()))
pos = pos->tqparentWidget(); pos = pos->parentWidget();
if( TQT_BASE_OBJECT(pos) == TQT_BASE_OBJECT(o) ) { if( TQT_BASE_OBJECT(pos) == TQT_BASE_OBJECT(o) ) {
// L1390: Send fake configure notify events whenever the // L1390: Send fake configure notify events whenever the
// global position of the client changes. See L2900. // global position of the client changes. See L2900.

@ -827,7 +827,7 @@ PermissionDialog::~PermissionDialog()
void PermissionDialog::clicked() void PermissionDialog::clicked()
{ {
m_button = TQT_TQOBJECT_CONST(sender())->name(); m_button = TQT_TQOBJECT_CONST(sender())->name();
static_cast<const TQWidget*>(sender())->tqparentWidget()->close(); static_cast<const TQWidget*>(sender())->parentWidget()->close();
} }
#include "kjavaappletserver.moc" #include "kjavaappletserver.moc"

@ -103,13 +103,13 @@ KHTMLFactory::~KHTMLFactory()
deref(); deref();
} }
KParts::Part *KHTMLFactory::createPartObject( TQWidget *tqparentWidget, const char *widgetName, TQObject *parent, const char *name, const char *className, const TQStringList & ) KParts::Part *KHTMLFactory::createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *className, const TQStringList & )
{ {
KHTMLPart::GUIProfile prof = KHTMLPart::DefaultGUI; KHTMLPart::GUIProfile prof = KHTMLPart::DefaultGUI;
if ( strcmp( className, "Browser/View" ) == 0 ) if ( strcmp( className, "Browser/View" ) == 0 )
prof = KHTMLPart::BrowserViewGUI; prof = KHTMLPart::BrowserViewGUI;
return new KHTMLPart( tqparentWidget, widgetName, parent, name, prof ); return new KHTMLPart( parentWidget, widgetName, parent, name, prof );
} }
void KHTMLFactory::ref() void KHTMLFactory::ref()

@ -45,7 +45,7 @@ public:
KHTMLFactory( bool clone = false ); KHTMLFactory( bool clone = false );
virtual ~KHTMLFactory(); virtual ~KHTMLFactory();
virtual KParts::Part *createPartObject( TQWidget *tqparentWidget, const char *widgetName, TQObject *parent, const char *name, const char *className, const TQStringList &args ); virtual KParts::Part *createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *className, const TQStringList &args );
static void registerPart( KHTMLPart *part ); static void registerPart( KHTMLPart *part );
static void deregisterPart( KHTMLPart *part ); static void deregisterPart( KHTMLPart *part );

@ -203,7 +203,7 @@ KHTMLFrameList::Iterator KHTMLFrameList::find( const TQString &name )
return it; return it;
} }
KHTMLPart::KHTMLPart( TQWidget *tqparentWidget, const char *widgetname, TQObject *parent, const char *name, GUIProfile prof ) KHTMLPart::KHTMLPart( TQWidget *parentWidget, const char *widgetname, TQObject *parent, const char *name, GUIProfile prof )
: KParts::ReadOnlyPart( parent, name ) : KParts::ReadOnlyPart( parent, name )
{ {
d = 0; d = 0;
@ -211,7 +211,7 @@ KHTMLPart::KHTMLPart( TQWidget *tqparentWidget, const char *widgetname, TQObject
setInstance( KHTMLFactory::instance(), prof == BrowserViewGUI && !parentPart() ); setInstance( KHTMLFactory::instance(), prof == BrowserViewGUI && !parentPart() );
// TODO KDE4 - don't load plugins yet // TODO KDE4 - don't load plugins yet
//setInstance( KHTMLFactory::instance(), false ); //setInstance( KHTMLFactory::instance(), false );
init( new KHTMLView( this, tqparentWidget, widgetname ), prof ); init( new KHTMLView( this, parentWidget, widgetname ), prof );
} }
KHTMLPart::KHTMLPart( KHTMLView *view, TQObject *parent, const char *name, GUIProfile prof ) KHTMLPart::KHTMLPart( KHTMLView *view, TQObject *parent, const char *name, GUIProfile prof )
@ -4643,7 +4643,7 @@ bool KHTMLPart::processObjectRequest( khtml::ChildFrame *child, const KURL &_url
} }
} }
KParts::ReadOnlyPart *KHTMLPart::createPart( TQWidget *tqparentWidget, const char *widgetName, KParts::ReadOnlyPart *KHTMLPart::createPart( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, const TQString &mimetype, TQObject *parent, const char *name, const TQString &mimetype,
TQString &serviceName, TQStringList &serviceTypes, TQString &serviceName, TQStringList &serviceTypes,
const TQStringList &params ) const TQStringList &params )
@ -4679,9 +4679,9 @@ KParts::ReadOnlyPart *KHTMLPart::createPart( TQWidget *tqparentWidget, const cha
className = "Browser/View"; className = "Browser/View";
if ( factory->inherits( "KParts::Factory" ) ) if ( factory->inherits( "KParts::Factory" ) )
res = static_cast<KParts::ReadOnlyPart *>(static_cast<KParts::Factory *>( factory )->createPart( tqparentWidget, widgetName, parent, name, className, params )); res = static_cast<KParts::ReadOnlyPart *>(static_cast<KParts::Factory *>( factory )->createPart( parentWidget, widgetName, parent, name, className, params ));
else else
res = static_cast<KParts::ReadOnlyPart *>(factory->create( TQT_TQOBJECT(tqparentWidget), widgetName, className )); res = static_cast<KParts::ReadOnlyPart *>(factory->create( TQT_TQOBJECT(parentWidget), widgetName, className ));
if ( res ) { if ( res ) {
serviceTypes = service->serviceTypes(); serviceTypes = service->serviceTypes();

@ -243,10 +243,10 @@ public:
* rendered in. You can specify two different parent objects for a * rendered in. You can specify two different parent objects for a
* KHTMLPart, one parent for the KHTMLPart document and on parent * KHTMLPart, one parent for the KHTMLPart document and on parent
* for the KHTMLView. If the second @p parent argument is 0L, then * for the KHTMLView. If the second @p parent argument is 0L, then
* @p tqparentWidget is used as parent for both objects, the part and * @p parentWidget is used as parent for both objects, the part and
* the view. * the view.
*/ */
KHTMLPart( TQWidget *tqparentWidget = 0, const char *widgetname = 0, KHTMLPart( TQWidget *parentWidget = 0, const char *widgetname = 0,
TQObject *parent = 0, const char *name = 0, GUIProfile prof = DefaultGUI ); TQObject *parent = 0, const char *name = 0, GUIProfile prof = DefaultGUI );
KHTMLPart( KHTMLView *view, TQObject *parent = 0, const char *name = 0, GUIProfile prof = DefaultGUI ); KHTMLPart( KHTMLView *view, TQObject *parent = 0, const char *name = 0, GUIProfile prof = DefaultGUI );
@ -1168,7 +1168,7 @@ protected:
* to be a object of your derived type, in which case you should return a new instance for * to be a object of your derived type, in which case you should return a new instance for
* the mimetype 'text/html' . * the mimetype 'text/html' .
*/ */
virtual KParts::ReadOnlyPart *createPart( TQWidget *tqparentWidget, const char *widgetName, virtual KParts::ReadOnlyPart *createPart( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, TQObject *parent, const char *name,
const TQString &mimetype, TQString &serviceName, const TQString &mimetype, TQString &serviceName,
TQStringList &serviceTypes, const TQStringList &params); TQStringList &serviceTypes, const TQStringList &params);

@ -48,24 +48,24 @@ KHTMLImageFactory::~KHTMLImageFactory()
delete s_instance; delete s_instance;
} }
KParts::Part *KHTMLImageFactory::createPartObject( TQWidget *tqparentWidget, const char *widgetName, KParts::Part *KHTMLImageFactory::createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, TQObject *parent, const char *name,
const char *className, const TQStringList & ) const char *className, const TQStringList & )
{ {
KHTMLPart::GUIProfile prof = KHTMLPart::DefaultGUI; KHTMLPart::GUIProfile prof = KHTMLPart::DefaultGUI;
if ( strcmp( className, "Browser/View" ) == 0 ) if ( strcmp( className, "Browser/View" ) == 0 )
prof = KHTMLPart::BrowserViewGUI; prof = KHTMLPart::BrowserViewGUI;
return new KHTMLImage( tqparentWidget, widgetName, parent, name, prof ); return new KHTMLImage( parentWidget, widgetName, parent, name, prof );
} }
KHTMLImage::KHTMLImage( TQWidget *tqparentWidget, const char *widgetName, KHTMLImage::KHTMLImage( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, KHTMLPart::GUIProfile prof ) TQObject *parent, const char *name, KHTMLPart::GUIProfile prof )
: KParts::ReadOnlyPart( parent, name ), m_image( 0 ) : KParts::ReadOnlyPart( parent, name ), m_image( 0 )
{ {
KHTMLPart* parentPart = ::tqqt_cast<KHTMLPart *>( parent ); KHTMLPart* parentPart = ::tqqt_cast<KHTMLPart *>( parent );
setInstance( KHTMLImageFactory::instance(), prof == KHTMLPart::BrowserViewGUI && !parentPart ); setInstance( KHTMLImageFactory::instance(), prof == KHTMLPart::BrowserViewGUI && !parentPart );
TQVBox *box = new TQVBox( tqparentWidget, widgetName ); TQVBox *box = new TQVBox( parentWidget, widgetName );
m_khtml = new KHTMLPart( box, widgetName, this, "htmlimagepart", prof ); m_khtml = new KHTMLPart( box, widgetName, this, "htmlimagepart", prof );
m_khtml->setAutoloadImages( true ); m_khtml->setAutoloadImages( true );

@ -44,7 +44,7 @@ public:
KHTMLImageFactory(); KHTMLImageFactory();
virtual ~KHTMLImageFactory(); virtual ~KHTMLImageFactory();
virtual KParts::Part *createPartObject( TQWidget *tqparentWidget, const char *widgetName, virtual KParts::Part *createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, TQObject *parent, const char *name,
const char *className, const TQStringList &args ); const char *className, const TQStringList &args );
@ -61,7 +61,7 @@ class KHTMLImage : public KParts::ReadOnlyPart, public khtml::CachedObjectClient
{ {
Q_OBJECT Q_OBJECT
public: public:
KHTMLImage( TQWidget *tqparentWidget, const char *widgetName, KHTMLImage( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, KHTMLPart::GUIProfile prof ); TQObject *parent, const char *name, KHTMLPart::GUIProfile prof );
virtual ~KHTMLImage(); virtual ~KHTMLImage();

@ -1179,7 +1179,7 @@ void KHTMLView::viewportMouseMoveEvent( TQMouseEvent * _mouse )
if (d->clickCount > 0 && if (d->clickCount > 0 &&
TQPoint(d->clickX-xm,d->clickY-ym).manhattanLength() > TQApplication::startDragDistance()) { TQPoint(d->clickX-xm,d->clickY-ym).manhattanLength() > TQApplication::startDragDistance()) {
d->clickCount = 0; // moving the mouse outside the threshold tqinvalidates the click d->clickCount = 0; // moving the mouse outside the threshold invalidates the click
} }
// execute the scheduled script. This is to make sure the mouseover events come after the mouseout events // execute the scheduled script. This is to make sure the mouseover events come after the mouseout events
@ -1903,7 +1903,7 @@ bool KHTMLView::eventFilter(TQObject *o, TQEvent *e)
if (c->isWidgetType()) { if (c->isWidgetType()) {
TQWidget *w = TQT_TQWIDGET(c); TQWidget *w = TQT_TQWIDGET(c);
// don't install the event filter on toplevels // don't install the event filter on toplevels
if (w->tqparentWidget(true) == view) { if (w->parentWidget(true) == view) {
if (!strcmp(w->name(), "__khtml")) { if (!strcmp(w->name(), "__khtml")) {
w->installEventFilter(this); w->installEventFilter(this);
w->unsetCursor(); w->unsetCursor();
@ -1931,7 +1931,7 @@ bool KHTMLView::eventFilter(TQObject *o, TQEvent *e)
TQWidget *c = v; TQWidget *c = v;
while (v && v != view) { while (v && v != view) {
c = v; c = v;
v = v->tqparentWidget(true); v = v->parentWidget(true);
} }
if (v && !strcmp(c->name(), "__khtml")) { if (v && !strcmp(c->name(), "__khtml")) {
@ -1948,7 +1948,7 @@ bool KHTMLView::eventFilter(TQObject *o, TQEvent *e)
while (v && v != view) { while (v && v != view) {
x += v->x(); x += v->x();
y += v->y(); y += v->y();
v = v->tqparentWidget(); v = v->parentWidget();
} }
viewportToContents( x, y, x, y ); viewportToContents( x, y, x, y );
TQPaintEvent *pe = TQT_TQPAINTEVENT(e); TQPaintEvent *pe = TQT_TQPAINTEVENT(e);
@ -1969,7 +1969,7 @@ bool KHTMLView::eventFilter(TQObject *o, TQEvent *e)
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
case TQEvent::MouseButtonRelease: case TQEvent::MouseButtonRelease:
case TQEvent::MouseButtonDblClick: { case TQEvent::MouseButtonDblClick: {
if ( (w->tqparentWidget() == view || ::tqqt_cast<TQScrollView*>(c)) && !::tqqt_cast<TQScrollBar *>(w)) { if ( (w->parentWidget() == view || ::tqqt_cast<TQScrollView*>(c)) && !::tqqt_cast<TQScrollBar *>(w)) {
TQMouseEvent *me = TQT_TQMOUSEEVENT(e); TQMouseEvent *me = TQT_TQMOUSEEVENT(e);
TQPoint pt = w->mapTo( view, me->pos()); TQPoint pt = w->mapTo( view, me->pos());
TQMouseEvent me2(me->type(), pt, me->button(), me->state()); TQMouseEvent me2(me->type(), pt, me->button(), me->state());
@ -1988,7 +1988,7 @@ bool KHTMLView::eventFilter(TQObject *o, TQEvent *e)
} }
case TQEvent::KeyPress: case TQEvent::KeyPress:
case TQEvent::KeyRelease: case TQEvent::KeyRelease:
if (w->tqparentWidget() == view && !::tqqt_cast<TQScrollBar *>(w)) { if (w->parentWidget() == view && !::tqqt_cast<TQScrollBar *>(w)) {
TQKeyEvent *ke = TQT_TQKEYEVENT(e); TQKeyEvent *ke = TQT_TQKEYEVENT(e);
if (e->type() == TQEvent::KeyPress) if (e->type() == TQEvent::KeyPress)
keyPressEvent(ke); keyPressEvent(ke);

@ -93,7 +93,7 @@ Data for the second and last object.
*/ */
KMultiPart::KMultiPart( TQWidget *tqparentWidget, const char *widgetName, KMultiPart::KMultiPart( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, const TQStringList& ) TQObject *parent, const char *name, const TQStringList& )
: KParts::ReadOnlyPart( parent, name ) : KParts::ReadOnlyPart( parent, name )
{ {
@ -101,7 +101,7 @@ KMultiPart::KMultiPart( TQWidget *tqparentWidget, const char *widgetName,
setInstance( KMultiPartFactory::instance() ); setInstance( KMultiPartFactory::instance() );
TQVBox *box = new TQVBox( tqparentWidget, widgetName ); TQVBox *box = new TQVBox( parentWidget, widgetName );
setWidget( box ); setWidget( box );
m_extension = new KParts::BrowserExtension( this ); m_extension = new KParts::BrowserExtension( this );

@ -40,7 +40,7 @@ class KMultiPart : public KParts::ReadOnlyPart
{ {
Q_OBJECT Q_OBJECT
public: public:
KMultiPart( TQWidget *tqparentWidget, const char *widgetName, KMultiPart( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, const TQStringList& ); TQObject *parent, const char *name, const TQStringList& );
virtual ~KMultiPart(); virtual ~KMultiPart();

@ -1329,7 +1329,7 @@ void RenderBlock::layoutInlineChildren(bool relayoutChildren, int breakBeforeLin
m_overflowHeight = 0; m_overflowHeight = 0;
tqinvalidateVerticalPositions(); invalidateVerticalPositions();
#ifdef DEBUG_LAYOUT #ifdef DEBUG_LAYOUT
TQTime qt; TQTime qt;
qt.start(); qt.start();

@ -137,7 +137,7 @@ protected:
void updateDocumentSize(); void updateDocumentSize();
// internal setters for cached values of document width/height // internal setters for cached values of document width/height
// Setting to -1/-1 tqinvalidates the cache. // Setting to -1/-1 invalidates the cache.
void setCachedDocWidth(int w ) { m_cachedDocWidth = w; } void setCachedDocWidth(int w ) { m_cachedDocWidth = w; }
void setCachedDocHeight(int h) { m_cachedDocHeight = h; } void setCachedDocHeight(int h) { m_cachedDocHeight = h; }

@ -1923,12 +1923,12 @@ short RenderObject::baselinePosition( bool firstLine ) const
return fm.ascent() + ( lineHeight( firstLine) - fm.height() ) / 2; return fm.ascent() + ( lineHeight( firstLine) - fm.height() ) / 2;
} }
void RenderObject::tqinvalidateVerticalPositions() void RenderObject::invalidateVerticalPositions()
{ {
m_verticalPosition = PositionUndefined; m_verticalPosition = PositionUndefined;
RenderObject *child = firstChild(); RenderObject *child = firstChild();
while( child ) { while( child ) {
child->tqinvalidateVerticalPositions(); child->invalidateVerticalPositions();
child = child->nextSibling(); child = child->nextSibling();
} }
} }

@ -748,7 +748,7 @@ public:
virtual int highestPosition(bool /*includeOverflowInterior*/=true, bool /*includeSelf*/=true) const { return 0; } virtual int highestPosition(bool /*includeOverflowInterior*/=true, bool /*includeSelf*/=true) const { return 0; }
// recursively tqinvalidate current layout // recursively tqinvalidate current layout
// unused: void tqinvalidateLayout(); // unused: void invalidateLayout();
virtual void calcVerticalMargins() {} virtual void calcVerticalMargins() {}
void removeFromObjectLists(); void removeFromObjectLists();
@ -790,7 +790,7 @@ protected:
virtual TQRect viewRect() const; virtual TQRect viewRect() const;
void remove(); void remove();
void tqinvalidateVerticalPositions(); void invalidateVerticalPositions();
bool attemptDirectLayerTranslation(); bool attemptDirectLayerTranslation();
void updateWidgetMasks(); void updateWidgetMasks();

@ -667,7 +667,7 @@ bool RenderWidget::eventFilter(TQObject* /*o*/, TQEvent* e)
break; break;
case TQEvent::Wheel: case TQEvent::Wheel:
if (widget()->tqparentWidget() == view()->viewport()) { if (widget()->parentWidget() == view()->viewport()) {
// don't allow the widget to react to wheel event unless its // don't allow the widget to react to wheel event unless its
// currently focused. this avoids accidentally changing a select box // currently focused. this avoids accidentally changing a select box
// or something while wheeling a webpage. // or something while wheeling a webpage.

@ -271,7 +271,7 @@ bool KBookmark::isSeparator() const
bool KBookmark::hasParent() const bool KBookmark::hasParent() const
{ {
TQDomElement parent = element.tqparentNode().toElement(); TQDomElement parent = element.parentNode().toElement();
return !parent.isNull(); return !parent.isNull();
} }
@ -311,7 +311,7 @@ TQString KBookmark::icon() const
KBookmarkGroup KBookmark::parentGroup() const KBookmarkGroup KBookmark::parentGroup() const
{ {
return KBookmarkGroup( element.tqparentNode().toElement() ); return KBookmarkGroup( element.parentNode().toElement() );
} }
KBookmarkGroup KBookmark::toGroup() const KBookmarkGroup KBookmark::toGroup() const

@ -234,7 +234,7 @@ void KBookmarkManager::parse() const
if ( n.isProcessingInstruction() ) if ( n.isProcessingInstruction() )
{ {
TQDomProcessingInstruction pi = n.toProcessingInstruction(); TQDomProcessingInstruction pi = n.toProcessingInstruction();
pi.tqparentNode().removeChild(pi); pi.parentNode().removeChild(pi);
} }
TQDomProcessingInstruction pi; TQDomProcessingInstruction pi;

@ -53,7 +53,7 @@ KFilePreview::~KFilePreview()
// don't delete the preview, we can reuse it // don't delete the preview, we can reuse it
// (it will get deleted by ~KDirOperator) // (it will get deleted by ~KDirOperator)
if ( preview && preview->tqparentWidget() == this ) { if ( preview && preview->parentWidget() == this ) {
preview->reparent(0L, 0, TQPoint(0, 0), false); preview->reparent(0L, 0, TQPoint(0, 0), false);
} }
} }

@ -130,7 +130,7 @@ namespace KNotify
protected: protected:
virtual void maybeTip ( const TQPoint& p ) virtual void maybeTip ( const TQPoint& p )
{ {
TQHeader *header = static_cast<TQHeader*>( tqparentWidget() ); TQHeader *header = static_cast<TQHeader*>( parentWidget() );
int section = 0; int section = 0;
if ( header->orientation() == Qt::Horizontal ) if ( header->orientation() == Qt::Horizontal )

@ -401,7 +401,7 @@ void KURLBar::setListBox( KURLBarListBox *view )
} }
else { else {
m_listBox = view; m_listBox = view;
if ( m_listBox->tqparentWidget() != this ) if ( m_listBox->parentWidget() != this )
m_listBox->reparent( this, TQPoint(0,0) ); m_listBox->reparent( this, TQPoint(0,0) );
m_listBox->resize( width(), height() ); m_listBox->resize( width(), height() );
} }

@ -340,7 +340,7 @@ TQString KURLRequester::filter( ) const
KFileDialog * KURLRequester::fileDialog() const KFileDialog * KURLRequester::fileDialog() const
{ {
if ( !myFileDialog ) { if ( !myFileDialog ) {
TQWidget *p = tqparentWidget(); TQWidget *p = parentWidget();
myFileDialog = new KFileDialog( TQString::null, d->fileDialogFilter, p, myFileDialog = new KFileDialog( TQString::null, d->fileDialogFilter, p,
"file dialog", true ); "file dialog", true );

@ -318,10 +318,10 @@ void Job::showErrorDialog( TQWidget * parent )
} }
} }
void Job::setAutoErrorHandlingEnabled( bool enable, TQWidget *tqparentWidget ) void Job::setAutoErrorHandlingEnabled( bool enable, TQWidget *parentWidget )
{ {
d->m_autoErrorHandling = enable; d->m_autoErrorHandling = enable;
d->m_errorParentWidget = tqparentWidget; d->m_errorParentWidget = parentWidget;
} }
bool Job::isAutoErrorHandlingEnabled() const bool Job::isAutoErrorHandlingEnabled() const

@ -155,17 +155,17 @@ namespace KIO {
/** /**
* Enable or disable the automatic error handling. When automatic * Enable or disable the automatic error handling. When automatic
* error handling is enabled and an error occurs, then showErrorDialog() * error handling is enabled and an error occurs, then showErrorDialog()
* is called with the specified @p tqparentWidget (if supplied) , right before * is called with the specified @p parentWidget (if supplied) , right before
* the emission of the result signal. * the emission of the result signal.
* *
* The default is false. * The default is false.
* *
* @param enable enable or disable automatic error handling * @param enable enable or disable automatic error handling
* @param tqparentWidget the parent widget, passed to showErrorDialog. * @param parentWidget the parent widget, passed to showErrorDialog.
* Can be 0 for top-level * Can be 0 for top-level
* @see isAutoErrorHandlingEnabled(), showErrorDialog() * @see isAutoErrorHandlingEnabled(), showErrorDialog()
*/ */
void setAutoErrorHandlingEnabled( bool enable, TQWidget *tqparentWidget = 0 ); void setAutoErrorHandlingEnabled( bool enable, TQWidget *parentWidget = 0 );
/** /**
* Returns whether automatic error handling is enabled or disabled. * Returns whether automatic error handling is enabled or disabled.

@ -447,7 +447,7 @@ bool KACL::KACLPrivate::setAllUsersOrGroups( const TQValueList< QPair<TQString,
if ( currentTag == type ) { if ( currentTag == type ) {
acl_delete_entry( newACL, entry ); acl_delete_entry( newACL, entry );
// we have to start from the beginning, the iterator is // we have to start from the beginning, the iterator is
// tqinvalidated, on deletion // invalidated, on deletion
ret = acl_get_entry( newACL, ACL_FIRST_ENTRY, &entry ); ret = acl_get_entry( newACL, ACL_FIRST_ENTRY, &entry );
} else { } else {
ret = acl_get_entry( newACL, ACL_NEXT_ENTRY, &entry ); ret = acl_get_entry( newACL, ACL_NEXT_ENTRY, &entry );

@ -1098,7 +1098,7 @@ void KFileItem::virtual_hook( int, void* )
TQDataStream & operator<< ( TQDataStream & s, const KFileItem & a ) TQDataStream & operator<< ( TQDataStream & s, const KFileItem & a )
{ {
// We don't need to save/restore anything that refresh() tqinvalidates, // We don't need to save/restore anything that refresh() invalidates,
// since that means we can re-determine those by ourselves. // since that means we can re-determine those by ourselves.
s << a.m_url; s << a.m_url;
s << a.m_strName; s << a.m_strName;

@ -712,7 +712,7 @@ int KWalletD::closeWallet(KWallet::Backend *w, int handle, bool force) {
const TQString& wallet = w->walletName(); const TQString& wallet = w->walletName();
assert(_passwords.tqcontains(wallet)); assert(_passwords.tqcontains(wallet));
if (w->refCount() == 0 || force) { if (w->refCount() == 0 || force) {
tqinvalidateHandle(handle); invalidateHandle(handle);
if (_closeIdle && _timeouts) { if (_closeIdle && _timeouts) {
_timeouts->removeTimer(handle); _timeouts->removeTimer(handle);
} }
@ -757,7 +757,7 @@ int KWalletD::close(int handle, bool force) {
} }
_wallets.remove(handle); _wallets.remove(handle);
if (force) { if (force) {
tqinvalidateHandle(handle); invalidateHandle(handle);
} }
if (_passwords.tqcontains(w->walletName())) { if (_passwords.tqcontains(w->walletName())) {
w->close(TQByteArray().duplicate(_passwords[w->walletName()].data(), _passwords[w->walletName()].length())); w->close(TQByteArray().duplicate(_passwords[w->walletName()].data(), _passwords[w->walletName()].length()));
@ -1193,7 +1193,7 @@ void KWalletD::slotAppUnregistered(const TQCString& app) {
} }
void KWalletD::tqinvalidateHandle(int handle) { void KWalletD::invalidateHandle(int handle) {
for (TQMap<TQCString,TQValueList<int> >::Iterator i = _handles.begin(); for (TQMap<TQCString,TQValueList<int> >::Iterator i = _handles.begin();
i != _handles.end(); i != _handles.end();
++i) { ++i) {

@ -161,7 +161,7 @@ class KWalletD : public KDEDModule {
// Generate a new unique handle. // Generate a new unique handle.
int generateHandle(); int generateHandle();
// Invalidate a handle (remove it from the TQMap) // Invalidate a handle (remove it from the TQMap)
void tqinvalidateHandle(int handle); void invalidateHandle(int handle);
// Emit signals about closing wallets // Emit signals about closing wallets
void doCloseSignals(int,const TQString&); void doCloseSignals(int,const TQString&);
void emitFolderUpdated(const TQString&, const TQString&); void emitFolderUpdated(const TQString&, const TQString&);

@ -403,7 +403,7 @@ protected:
/** /**
* Resets any per connection settings. These are different from * Resets any per connection settings. These are different from
* per-session settings in that they must be tqinvalidates every time * per-session settings in that they must be invalidates every time
* a request is made, e.g. a retry to re-send the header to the * a request is made, e.g. a retry to re-send the header to the
* server, as compared to only when a new request arrives. * server, as compared to only when a new request arrives.
*/ */

@ -181,8 +181,8 @@ void DockContainer::insertWidget (KDockWidget *dwdg, TQPixmap pixmap, const TQSt
m_revMap.insert(tab,w); m_revMap.insert(tab,w);
if (((KDockWidget*)tqparentWidget())->mayBeShow()) if (((KDockWidget*)parentWidget())->mayBeShow())
((KDockWidget*)tqparentWidget())->dockBack(); ((KDockWidget*)parentWidget())->dockBack();
if (::tqqt_cast<KDockWidgetHeader*>(w->getHeader())) if (::tqqt_cast<KDockWidgetHeader*>(w->getHeader()))
{ {
@ -335,7 +335,7 @@ void DockContainer::changeOverlapMode()
void DockContainer::hideIfNeeded() { void DockContainer::hideIfNeeded() {
kdDebug(760)<<"************************* hideIfNeeded *************************"<<endl; kdDebug(760)<<"************************* hideIfNeeded *************************"<<endl;
if (!itemNames.count()) if (!itemNames.count())
((KDockWidget*)tqparentWidget())->undock(); ((KDockWidget*)parentWidget())->undock();
} }
void DockContainer::removeWidget(KDockWidget* dwdg) void DockContainer::removeWidget(KDockWidget* dwdg)
@ -363,7 +363,7 @@ void DockContainer::removeWidget(KDockWidget* dwdg)
tabCaptions.remove(w->name()); tabCaptions.remove(w->name());
tabTooltips.remove(w->name()); tabTooltips.remove(w->name());
if (!itemNames.count()) if (!itemNames.count())
((KDockWidget*)tqparentWidget())->undock(); ((KDockWidget*)parentWidget())->undock();
} }
void DockContainer::undockWidget(KDockWidget *dwdg) void DockContainer::undockWidget(KDockWidget *dwdg)

@ -97,8 +97,8 @@ namespace KMDI
{ {
//============ constructor ============// //============ constructor ============//
MainWindow::MainWindow(TQWidget* tqparentWidget, const char* name) MainWindow::MainWindow(TQWidget* parentWidget, const char* name)
: KParts::DockMainWindow( tqparentWidget, name) : KParts::DockMainWindow( parentWidget, name)
, m_toolViews (new TQMap<TQWidget*,KMDI::ToolViewAccessor*>) , m_toolViews (new TQMap<TQWidget*,KMDI::ToolViewAccessor*>)
, d(new KMDIPrivate::MainWindowPrivate()) , d(new KMDIPrivate::MainWindowPrivate())
{ {
@ -156,19 +156,19 @@ void MainWindow::setupToolViews ()
w=static_cast<KDockWidget*>(mainDock->parentDockTabGroup()->parent()); w=static_cast<KDockWidget*>(mainDock->parentDockTabGroup()->parent());
} }
TQPtrList<KDockWidget> leftRetqparentWidgets; TQPtrList<KDockWidget> leftReparentWidgets;
TQPtrList<KDockWidget> rightRetqparentWidgets; TQPtrList<KDockWidget> rightReparentWidgets;
TQPtrList<KDockWidget> bottomRetqparentWidgets; TQPtrList<KDockWidget> bottomReparentWidgets;
TQPtrList<KDockWidget> topRetqparentWidgets; TQPtrList<KDockWidget> topReparentWidgets;
if (mainDock->parentDockTabGroup()) { if (mainDock->parentDockTabGroup()) {
mainDock=static_cast<KDockWidget*>(mainDock->parentDockTabGroup()->parent()); mainDock=static_cast<KDockWidget*>(mainDock->parentDockTabGroup()->parent());
} }
findToolViewsDockedToMain(&leftRetqparentWidgets,KDockWidget::DockLeft); findToolViewsDockedToMain(&leftReparentWidgets,KDockWidget::DockLeft);
findToolViewsDockedToMain(&rightRetqparentWidgets,KDockWidget::DockRight); findToolViewsDockedToMain(&rightReparentWidgets,KDockWidget::DockRight);
findToolViewsDockedToMain(&bottomRetqparentWidgets,KDockWidget::DockBottom); findToolViewsDockedToMain(&bottomReparentWidgets,KDockWidget::DockBottom);
findToolViewsDockedToMain(&topRetqparentWidgets,KDockWidget::DockTop); findToolViewsDockedToMain(&topReparentWidgets,KDockWidget::DockTop);
mainDock->setEnableDocking(KDockWidget::DockNone); //::DockCorner); mainDock->setEnableDocking(KDockWidget::DockNone); //::DockCorner);
mainDock->setDockSite(KDockWidget::DockCorner); mainDock->setDockSite(KDockWidget::DockCorner);
@ -220,10 +220,10 @@ void MainWindow::setupToolViews ()
m_topContainer->setDockSite( KDockWidget::DockCenter ); m_topContainer->setDockSite( KDockWidget::DockCenter );
m_bottomContainer->setDockSite( KDockWidget::DockCenter ); m_bottomContainer->setDockSite( KDockWidget::DockCenter );
dockToolViewsIntoContainers(leftRetqparentWidgets,m_leftContainer); dockToolViewsIntoContainers(leftReparentWidgets,m_leftContainer);
dockToolViewsIntoContainers(rightRetqparentWidgets,m_rightContainer); dockToolViewsIntoContainers(rightReparentWidgets,m_rightContainer);
dockToolViewsIntoContainers(bottomRetqparentWidgets,m_bottomContainer); dockToolViewsIntoContainers(bottomReparentWidgets,m_bottomContainer);
dockToolViewsIntoContainers(topRetqparentWidgets,m_topContainer); dockToolViewsIntoContainers(topReparentWidgets,m_topContainer);
dockManager->setSpecialLeftDockContainer(m_leftContainer); dockManager->setSpecialLeftDockContainer(m_leftContainer);
dockManager->setSpecialRightDockContainer(m_rightContainer); dockManager->setSpecialRightDockContainer(m_rightContainer);

@ -79,7 +79,7 @@ class KMDI_EXPORT MainWindow : public KParts::DockMainWindow
/** /**
* Constructor. * Constructor.
*/ */
MainWindow ( TQWidget* tqparentWidget, const char* name = ""); MainWindow ( TQWidget* parentWidget, const char* name = "");
/** /**
* Destructor. * Destructor.

@ -186,8 +186,8 @@ void ToolViewAccessor::place(KDockWidget::DockPosition pos, TQWidget* pTargetWnd
if (!DockToOurself) if(pTargetWnd != 0L) { if (!DockToOurself) if(pTargetWnd != 0L) {
pTargetDock = mdiMainFrm->dockManager->findWidgetParentDock( pTargetWnd); pTargetDock = mdiMainFrm->dockManager->findWidgetParentDock( pTargetWnd);
if (!pTargetDock) { if (!pTargetDock) {
if (pTargetWnd->tqparentWidget()) { if (pTargetWnd->parentWidget()) {
pTargetDock = mdiMainFrm->dockManager->findWidgetParentDock( pTargetWnd->tqparentWidget()); pTargetDock = mdiMainFrm->dockManager->findWidgetParentDock( pTargetWnd->parentWidget());
} }
} }
} }

@ -286,7 +286,7 @@ void KMdiChildFrm::mouseMoveEvent( TQMouseEvent *e )
if ( !( e->state() & Qt::RightButton ) && !( e->state() & Qt::MidButton ) ) if ( !( e->state() & Qt::RightButton ) && !( e->state() & Qt::MidButton ) )
{ {
// same as: if no button or left button pressed // same as: if no button or left button pressed
TQPoint p = tqparentWidget()->mapFromGlobal( e->globalPos() ); TQPoint p = parentWidget()->mapFromGlobal( e->globalPos() );
resizeWindow( m_iResizeCorner, p.x(), p.y() ); resizeWindow( m_iResizeCorner, p.x(), p.y() );
} }
else else
@ -1394,7 +1394,7 @@ void KMdiChildFrm::redecorateButtons()
TQRect KMdiChildFrm::mdiAreaContentsRect() const TQRect KMdiChildFrm::mdiAreaContentsRect() const
{ {
TQFrame * p = ( TQFrame* ) tqparentWidget(); TQFrame * p = ( TQFrame* ) parentWidget();
if ( p ) if ( p )
{ {
return p->contentsRect(); return p->contentsRect();

@ -163,7 +163,7 @@ void KMdiChildFrmCaption::mouseMoveEvent( TQMouseEvent *e )
TQPoint mousePosInChildArea = relMousePosInChildArea - m_offset; TQPoint mousePosInChildArea = relMousePosInChildArea - m_offset;
// set new child frame position // set new child frame position
tqparentWidget() ->move( mousePosInChildArea ); parentWidget() ->move( mousePosInChildArea );
} }
//=============== setActive ===============// //=============== setActive ===============//

@ -44,8 +44,8 @@
//============ KMdiChildView ============// //============ KMdiChildView ============//
KMdiChildView::KMdiChildView( const TQString& caption, TQWidget* tqparentWidget, const char* name, WFlags f ) KMdiChildView::KMdiChildView( const TQString& caption, TQWidget* parentWidget, const char* name, WFlags f )
: TQWidget( tqparentWidget, name, f ) : TQWidget( parentWidget, name, f )
, m_focusedChildWidget( 0L ) , m_focusedChildWidget( 0L )
, m_firstFocusableChildWidget( 0L ) , m_firstFocusableChildWidget( 0L )
, m_lastFocusableChildWidget( 0L ) , m_lastFocusableChildWidget( 0L )
@ -73,8 +73,8 @@ KMdiChildView::KMdiChildView( const TQString& caption, TQWidget* tqparentWidget,
//============ KMdiChildView ============// //============ KMdiChildView ============//
KMdiChildView::KMdiChildView( TQWidget* tqparentWidget, const char* name, WFlags f ) KMdiChildView::KMdiChildView( TQWidget* parentWidget, const char* name, WFlags f )
: TQWidget( tqparentWidget, name, f ) : TQWidget( parentWidget, name, f )
, m_focusedChildWidget( 0L ) , m_focusedChildWidget( 0L )
, m_firstFocusableChildWidget( 0L ) , m_firstFocusableChildWidget( 0L )
, m_lastFocusableChildWidget( 0L ) , m_lastFocusableChildWidget( 0L )

@ -182,13 +182,13 @@ public:
/** /**
* Constructor * Constructor
*/ */
KMdiChildView( const TQString& caption, TQWidget* tqparentWidget = 0L, const char* name = 0L, WFlags f = 0 ); KMdiChildView( const TQString& caption, TQWidget* parentWidget = 0L, const char* name = 0L, WFlags f = 0 );
/** /**
* Constructor * Constructor
* sets "Unnamed" as default caption * sets "Unnamed" as default caption
*/ */
KMdiChildView( TQWidget* tqparentWidget = 0L, const char* name = 0L, WFlags f = 0 ); KMdiChildView( TQWidget* parentWidget = 0L, const char* name = 0L, WFlags f = 0 );
/** /**
* Destructor * Destructor
@ -603,7 +603,7 @@ private:
inline KMdiChildFrm *KMdiChildView::mdiParent() const inline KMdiChildFrm *KMdiChildView::mdiParent() const
{ {
TQWidget * pw = tqparentWidget(); TQWidget * pw = parentWidget();
if ( pw != 0L ) if ( pw != 0L )
if ( pw->inherits( "KMdiChildFrm" ) ) if ( pw->inherits( "KMdiChildFrm" ) )
return ( KMdiChildFrm * ) pw; return ( KMdiChildFrm * ) pw;

@ -204,8 +204,8 @@ void KMdiDockContainer::insertWidget ( KDockWidget *dwdg, TQPixmap pixmap, const
m_map.insert( w, tab ); m_map.insert( w, tab );
m_revMap.insert( tab, w ); m_revMap.insert( tab, w );
if ( ( ( KDockWidget* ) tqparentWidget() ) ->mayBeShow() ) if ( ( ( KDockWidget* ) parentWidget() ) ->mayBeShow() )
( ( KDockWidget* ) tqparentWidget() ) ->dockBack(); ( ( KDockWidget* ) parentWidget() ) ->dockBack();
if ( ::tqqt_cast<KDockWidgetHeader*>(w->getHeader()) ) if ( ::tqqt_cast<KDockWidgetHeader*>(w->getHeader()) )
{ {
@ -362,7 +362,7 @@ void KMdiDockContainer::hideIfNeeded()
if ( itemNames.count() == 0 ) if ( itemNames.count() == 0 )
{ {
kdDebug( 760 ) << k_funcinfo << "Hiding the dock container" << endl; kdDebug( 760 ) << k_funcinfo << "Hiding the dock container" << endl;
( ( KDockWidget* ) tqparentWidget() )->undock(); ( ( KDockWidget* ) parentWidget() )->undock();
} }
} }

@ -136,8 +136,8 @@ public:
}; };
//============ constructor ============// //============ constructor ============//
KMdiMainFrm::KMdiMainFrm( TQWidget* tqparentWidget, const char* name, KMdi::MdiMode mdiMode, WFlags flags ) KMdiMainFrm::KMdiMainFrm( TQWidget* parentWidget, const char* name, KMdi::MdiMode mdiMode, WFlags flags )
: KParts::DockMainWindow( tqparentWidget, name, flags ) : KParts::DockMainWindow( parentWidget, name, flags )
, m_mdiMode( KMdi::UndefinedMode ) , m_mdiMode( KMdi::UndefinedMode )
, m_pMdi( 0L ) , m_pMdi( 0L )
, m_pTaskBar( 0L ) , m_pTaskBar( 0L )
@ -294,7 +294,7 @@ void KMdiMainFrm::setStandardMDIMenuEnabled( bool showModeMenu )
//============ ~KMdiMainFrm ============// //============ ~KMdiMainFrm ============//
KMdiMainFrm::~KMdiMainFrm() KMdiMainFrm::~KMdiMainFrm()
{ {
//save the children first to a list, as removing tqinvalidates our iterator //save the children first to a list, as removing invalidates our iterator
TQValueList<KMdiChildView*> children; TQValueList<KMdiChildView*> children;
for ( KMdiChildView * w = m_pDocumentViews->first();w;w = m_pDocumentViews->next() ) for ( KMdiChildView * w = m_pDocumentViews->first();w;w = m_pDocumentViews->next() )
children.append( w ); children.append( w );
@ -391,7 +391,7 @@ void KMdiMainFrm::slot_toggleTaskBar()
void KMdiMainFrm::resizeEvent( TQResizeEvent *e ) void KMdiMainFrm::resizeEvent( TQResizeEvent *e )
{ {
if ( ( m_mdiMode == KMdi::ToplevelMode ) && !tqparentWidget() ) if ( ( m_mdiMode == KMdi::ToplevelMode ) && !parentWidget() )
{ {
if ( e->oldSize().height() != e->size().height() ) if ( e->oldSize().height() != e->size().height() )
return ; return ;
@ -406,7 +406,7 @@ void KMdiMainFrm::resizeEvent( TQResizeEvent *e )
void KMdiMainFrm::setMinimumSize( int minw, int minh ) void KMdiMainFrm::setMinimumSize( int minw, int minh )
{ {
if ( ( m_mdiMode == KMdi::ToplevelMode ) && !tqparentWidget() ) if ( ( m_mdiMode == KMdi::ToplevelMode ) && !parentWidget() )
return ; return ;
DockMainWindow::setMinimumSize( minw, minh ); DockMainWindow::setMinimumSize( minw, minh );
} }
@ -627,7 +627,7 @@ void KMdiMainFrm::attachWindow( KMdiChildView *pWnd, bool bShow, bool bAutomatic
lpC->setClient( pWnd, bAutomaticResize ); lpC->setClient( pWnd, bAutomaticResize );
lpC->setFocus(); lpC->setFocus();
pWnd->youAreAttached( lpC ); pWnd->youAreAttached( lpC );
if ( ( m_mdiMode == KMdi::ToplevelMode ) && !tqparentWidget() ) if ( ( m_mdiMode == KMdi::ToplevelMode ) && !parentWidget() )
{ {
setMinimumHeight( m_oldMainFrmMinHeight ); setMinimumHeight( m_oldMainFrmMinHeight );
setMaximumHeight( m_oldMainFrmMaxHeight ); setMaximumHeight( m_oldMainFrmMaxHeight );
@ -772,12 +772,12 @@ void KMdiMainFrm::removeWindowFromMdi( KMdiChildView *pWnd )
m_pDockbaseOfTabPage = m_pDockbaseAreaOfDocumentViews; m_pDockbaseOfTabPage = m_pDockbaseAreaOfDocumentViews;
m_pClose->hide(); m_pClose->hide();
} }
KDockWidget* pDockW = ( KDockWidget* ) pWnd->tqparentWidget(); KDockWidget* pDockW = ( KDockWidget* ) pWnd->parentWidget();
pWnd->reparent( 0L, TQPoint( 0, 0 ) ); pWnd->reparent( 0L, TQPoint( 0, 0 ) );
pDockW->setWidget( 0L ); pDockW->setWidget( 0L );
if ( pDockW == m_pDockbaseOfTabPage ) if ( pDockW == m_pDockbaseOfTabPage )
{ {
TQTabWidget * pTab = ( TQTabWidget* ) pDockW->tqparentWidget() ->tqparentWidget(); TQTabWidget * pTab = ( TQTabWidget* ) pDockW->parentWidget() ->parentWidget();
int cnt = pTab->count(); int cnt = pTab->count();
m_pDockbaseOfTabPage = ( KDockWidget* ) pTab->page( cnt - 2 ); m_pDockbaseOfTabPage = ( KDockWidget* ) pTab->page( cnt - 2 );
if ( pDockW == m_pDockbaseOfTabPage ) if ( pDockW == m_pDockbaseOfTabPage )
@ -874,12 +874,12 @@ void KMdiMainFrm::closeWindow( KMdiChildView *pWnd, bool layoutTaskBar )
m_pClose->hide(); m_pClose->hide();
} }
#if 0 #if 0
KDockWidget* pDockW = ( KDockWidget* ) pWnd->tqparentWidget(); KDockWidget* pDockW = ( KDockWidget* ) pWnd->parentWidget();
pWnd->reparent( 0L, TQPoint( 0, 0 ) ); pWnd->reparent( 0L, TQPoint( 0, 0 ) );
pDockW->setWidget( 0L ); pDockW->setWidget( 0L );
if ( pDockW == m_pDockbaseOfTabPage ) if ( pDockW == m_pDockbaseOfTabPage )
{ {
TQTabWidget * pTab = ( TQTabWidget* ) pDockW->tqparentWidget() ->tqparentWidget(); TQTabWidget * pTab = ( TQTabWidget* ) pDockW->parentWidget() ->parentWidget();
int cnt = pTab->count(); int cnt = pTab->count();
m_pDockbaseOfTabPage = ( KDockWidget* ) pTab->page( cnt - 2 ); m_pDockbaseOfTabPage = ( KDockWidget* ) pTab->page( cnt - 2 );
if ( pDockW == m_pDockbaseOfTabPage ) if ( pDockW == m_pDockbaseOfTabPage )
@ -1234,7 +1234,7 @@ bool KMdiMainFrm::eventFilter( TQObject * /*obj*/, TQEvent *e )
*/ */
void KMdiMainFrm::closeAllViews() void KMdiMainFrm::closeAllViews()
{ {
//save the children first to a list, as removing tqinvalidates our iterator //save the children first to a list, as removing invalidates our iterator
TQValueList<KMdiChildView*> children; TQValueList<KMdiChildView*> children;
for ( KMdiChildView * w = m_pDocumentViews->first();w;w = m_pDocumentViews->next() ) for ( KMdiChildView * w = m_pDocumentViews->first();w;w = m_pDocumentViews->next() )
{ {
@ -1302,7 +1302,7 @@ void KMdiMainFrm::findRootDockWidgets( TQPtrList<KDockWidget>* rootDockWidgetLis
if ( undockCandidate->enableDocking() != KDockWidget::DockNone ) if ( undockCandidate->enableDocking() != KDockWidget::DockNone )
rootDockWindow = undockCandidate; rootDockWindow = undockCandidate;
} }
pW = pW->tqparentWidget(); pW = pW->parentWidget();
} }
if ( rootDockWindow ) if ( rootDockWindow )
@ -1395,7 +1395,7 @@ void KMdiMainFrm::switchToToplevelMode()
setMainDockWidget( m_pDockbaseAreaOfDocumentViews ); setMainDockWidget( m_pDockbaseAreaOfDocumentViews );
} }
// TQApplication::sendPostedEvents(); //why do we need to empty the event queue? // TQApplication::sendPostedEvents(); //why do we need to empty the event queue?
if ( !tqparentWidget() ) if ( !parentWidget() )
{ {
//if we don't have a parent widget ( which i expect we wouldn't ) //if we don't have a parent widget ( which i expect we wouldn't )
//make sure we take into account the size of the docks provided by //make sure we take into account the size of the docks provided by
@ -1556,7 +1556,7 @@ void KMdiMainFrm::switchToChildframeMode()
if ( !pView->isToolView() ) if ( !pView->isToolView() )
pView->show(); pView->show();
} }
if ( ( oldMdiMode == KMdi::ToplevelMode ) && !tqparentWidget() ) if ( ( oldMdiMode == KMdi::ToplevelMode ) && !parentWidget() )
{ {
setMinimumHeight( m_oldMainFrmMinHeight ); setMinimumHeight( m_oldMainFrmMinHeight );
setMaximumHeight( m_oldMainFrmMaxHeight ); setMaximumHeight( m_oldMainFrmMaxHeight );
@ -1662,7 +1662,7 @@ void KMdiMainFrm::finishTabPageMode()
TQSize mins = pView->tqminimumSize(); TQSize mins = pView->tqminimumSize();
TQSize maxs = pView->tqmaximumSize(); TQSize maxs = pView->tqmaximumSize();
TQSize sz = pView->size(); TQSize sz = pView->size();
TQWidget* pParent = pView->tqparentWidget(); TQWidget* pParent = pView->parentWidget();
TQPoint p( pParent->mapToGlobal( pParent->pos() ) - pParent->pos() + m_undockPositioningOffset ); TQPoint p( pParent->mapToGlobal( pParent->pos() ) - pParent->pos() + m_undockPositioningOffset );
m_documentTabWidget->removePage( pView ); m_documentTabWidget->removePage( pView );
pView->reparent( 0, 0, p ); pView->reparent( 0, 0, p );
@ -1688,7 +1688,7 @@ void KMdiMainFrm::finishTabPageMode()
void KMdiMainFrm::setupTabbedDocumentViewSpace() void KMdiMainFrm::setupTabbedDocumentViewSpace()
{ {
// resize to childframe mode size of the mainwindow if we were in toplevel mode // resize to childframe mode size of the mainwindow if we were in toplevel mode
if ( ( m_mdiMode == KMdi::ToplevelMode ) && !tqparentWidget() ) if ( ( m_mdiMode == KMdi::ToplevelMode ) && !parentWidget() )
{ {
setMinimumHeight( m_oldMainFrmMinHeight ); setMinimumHeight( m_oldMainFrmMinHeight );
setMaximumHeight( m_oldMainFrmMaxHeight ); setMaximumHeight( m_oldMainFrmMaxHeight );
@ -1933,18 +1933,18 @@ void KMdiMainFrm::setupToolViewsForIDEALMode()
if ( mainDock->parentDockTabGroup() ) if ( mainDock->parentDockTabGroup() )
w = static_cast<KDockWidget*>( mainDock->parentDockTabGroup()->parent() ); w = static_cast<KDockWidget*>( mainDock->parentDockTabGroup()->parent() );
TQPtrList<KDockWidget> leftRetqparentWidgets; TQPtrList<KDockWidget> leftReparentWidgets;
TQPtrList<KDockWidget> rightRetqparentWidgets; TQPtrList<KDockWidget> rightReparentWidgets;
TQPtrList<KDockWidget> bottomRetqparentWidgets; TQPtrList<KDockWidget> bottomReparentWidgets;
TQPtrList<KDockWidget> topRetqparentWidgets; TQPtrList<KDockWidget> topReparentWidgets;
if ( mainDock->parentDockTabGroup() ) if ( mainDock->parentDockTabGroup() )
mainDock = static_cast<KDockWidget*>( mainDock->parentDockTabGroup() ->parent() ); mainDock = static_cast<KDockWidget*>( mainDock->parentDockTabGroup() ->parent() );
findToolViewsDockedToMain( &leftRetqparentWidgets, KDockWidget::DockLeft ); findToolViewsDockedToMain( &leftReparentWidgets, KDockWidget::DockLeft );
findToolViewsDockedToMain( &rightRetqparentWidgets, KDockWidget::DockRight ); findToolViewsDockedToMain( &rightReparentWidgets, KDockWidget::DockRight );
findToolViewsDockedToMain( &bottomRetqparentWidgets, KDockWidget::DockBottom ); findToolViewsDockedToMain( &bottomReparentWidgets, KDockWidget::DockBottom );
findToolViewsDockedToMain( &topRetqparentWidgets, KDockWidget::DockTop ); findToolViewsDockedToMain( &topReparentWidgets, KDockWidget::DockTop );
mainDock->setEnableDocking( KDockWidget::DockNone ); //::DockCorner); mainDock->setEnableDocking( KDockWidget::DockNone ); //::DockCorner);
mainDock->setDockSite( KDockWidget::DockCorner ); mainDock->setDockSite( KDockWidget::DockCorner );
@ -1996,10 +1996,10 @@ void KMdiMainFrm::setupToolViewsForIDEALMode()
m_topContainer->setDockSite( KDockWidget::DockCenter ); m_topContainer->setDockSite( KDockWidget::DockCenter );
m_bottomContainer->setDockSite( KDockWidget::DockCenter ); m_bottomContainer->setDockSite( KDockWidget::DockCenter );
dockToolViewsIntoContainers( leftRetqparentWidgets, m_leftContainer ); dockToolViewsIntoContainers( leftReparentWidgets, m_leftContainer );
dockToolViewsIntoContainers( rightRetqparentWidgets, m_rightContainer ); dockToolViewsIntoContainers( rightReparentWidgets, m_rightContainer );
dockToolViewsIntoContainers( bottomRetqparentWidgets, m_bottomContainer ); dockToolViewsIntoContainers( bottomReparentWidgets, m_bottomContainer );
dockToolViewsIntoContainers( topRetqparentWidgets, m_topContainer ); dockToolViewsIntoContainers( topReparentWidgets, m_topContainer );
dockManager->setSpecialLeftDockContainer( m_leftContainer ); dockManager->setSpecialLeftDockContainer( m_leftContainer );
@ -2078,7 +2078,7 @@ void KMdiMainFrm::finishIDEAlMode( bool full )
TQSize mins = pView->tqminimumSize(); TQSize mins = pView->tqminimumSize();
TQSize maxs = pView->tqmaximumSize(); TQSize maxs = pView->tqmaximumSize();
TQSize sz = pView->size(); TQSize sz = pView->size();
TQWidget* pParent = pView->tqparentWidget(); TQWidget* pParent = pView->parentWidget();
TQPoint p( pParent->mapToGlobal( pParent->pos() ) - pParent->pos() + m_undockPositioningOffset ); TQPoint p( pParent->mapToGlobal( pParent->pos() ) - pParent->pos() + m_undockPositioningOffset );
pView->reparent( 0, 0, p ); pView->reparent( 0, 0, p );
pView->reparent( 0, 0, p ); pView->reparent( 0, 0, p );
@ -2101,7 +2101,7 @@ void KMdiMainFrm::finishIDEAlMode( bool full )
} }
else else
{ {
pParent = pParent->tqparentWidget(); pParent = pParent->parentWidget();
} }
} }
while ( pParent && !pDockW ); while ( pParent && !pDockW );
@ -2262,10 +2262,10 @@ void KMdiMainFrm::setSysButtonsAtMenuPosition()
{ {
if ( m_pMainMenuBar == 0L ) if ( m_pMainMenuBar == 0L )
return ; return ;
if ( m_pMainMenuBar->tqparentWidget() == 0L ) if ( m_pMainMenuBar->parentWidget() == 0L )
return ; return ;
int menuW = m_pMainMenuBar->tqparentWidget() ->width(); int menuW = m_pMainMenuBar->parentWidget() ->width();
int h; int h;
int y; int y;
if ( frameDecorOfAttachedViews() == KMdi::Win95Look ) if ( frameDecorOfAttachedViews() == KMdi::Win95Look )

@ -296,7 +296,7 @@ private:
// methods // methods
public: public:
KMdiMainFrm( TQWidget* tqparentWidget, const char* name = "", KMdi::MdiMode mdiMode = KMdi::ChildframeMode, WFlags flags = (WFlags)(WType_TopLevel | WDestructiveClose) ); KMdiMainFrm( TQWidget* parentWidget, const char* name = "", KMdi::MdiMode mdiMode = KMdi::ChildframeMode, WFlags flags = (WFlags)(WType_TopLevel | WDestructiveClose) );
virtual ~KMdiMainFrm(); virtual ~KMdiMainFrm();
/** /**

@ -343,7 +343,7 @@ void KMdiTaskBar::layoutTaskBar( int taskBarWidth )
int tbHandlePixel; int tbHandlePixel;
tbHandlePixel = tqstyle().tqpixelMetric( TQStyle::PM_DockWindowHandleExtent, this ); tbHandlePixel = tqstyle().tqpixelMetric( TQStyle::PM_DockWindowHandleExtent, this );
int buttonAreaWidth = taskBarWidth - tbHandlePixel - tqstyle().tqpixelMetric( TQStyle::PM_DefaultFrameWidth, this ) - 5; int buttonAreaWidth = taskBarWidth - tbHandlePixel - tqstyle().tqpixelMetric( TQStyle::PM_DefaultFrameWidth, this ) - 5;
if ( ( ( allButtonsWidthHint ) <= buttonAreaWidth ) || ( width() < tqparentWidget() ->width() ) ) if ( ( ( allButtonsWidthHint ) <= buttonAreaWidth ) || ( width() < parentWidget() ->width() ) )
{ {
for ( b = m_pButtonList->first();b;b = m_pButtonList->next() ) for ( b = m_pButtonList->first();b;b = m_pButtonList->next() )
{ {

@ -222,9 +222,9 @@ void KMdiToolViewAccessor::place( KDockWidget::DockPosition pos, TQWidget* pTarg
pTargetDock = mdiMainFrm->dockManager->findWidgetParentDock( pTargetWnd ); pTargetDock = mdiMainFrm->dockManager->findWidgetParentDock( pTargetWnd );
if ( !pTargetDock ) if ( !pTargetDock )
{ {
if ( pTargetWnd->tqparentWidget() ) if ( pTargetWnd->parentWidget() )
{ {
pTargetDock = mdiMainFrm->dockManager->findWidgetParentDock( pTargetWnd->tqparentWidget() ); pTargetDock = mdiMainFrm->dockManager->findWidgetParentDock( pTargetWnd->parentWidget() );
} }
} }
} }

@ -18,8 +18,8 @@
Constructs a Hello widget. Starts a 40 ms animation timer. Constructs a Hello widget. Starts a 40 ms animation timer.
*/ */
Hello::Hello( const char *title, const char *text, TQWidget *tqparentWidget ) Hello::Hello( const char *title, const char *text, TQWidget *parentWidget )
: KMdiChildView(title, tqparentWidget), t(text), b(0) : KMdiChildView(title, parentWidget), t(text), b(0)
{ {
TQTimer *timer = new TQTimer(this); TQTimer *timer = new TQTimer(this);
TQObject::connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(animate()) ); TQObject::connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(animate()) );

@ -22,7 +22,7 @@ class Hello : public KMdiChildView
{ {
Q_OBJECT Q_OBJECT
public: public:
Hello( const char *title, const char *text, TQWidget* tqparentWidget = 0 ); Hello( const char *title, const char *text, TQWidget* parentWidget = 0 );
signals: signals:
void clicked(); void clicked();
protected: protected:

@ -46,8 +46,8 @@ struct Engine::Private
}; };
Engine::Engine( KNewStuff *newStuff, const TQString &type, Engine::Engine( KNewStuff *newStuff, const TQString &type,
TQWidget *tqparentWidget ) : TQWidget *parentWidget ) :
mParentWidget( tqparentWidget ), mDownloadDialog( 0 ), mParentWidget( parentWidget ), mDownloadDialog( 0 ),
mUploadDialog( 0 ), mProviderDialog( 0 ), mUploadProvider( 0 ), mUploadDialog( 0 ), mProviderDialog( 0 ), mUploadProvider( 0 ),
d(new Private), mType( type ) d(new Private), mType( type )
{ {
@ -57,8 +57,8 @@ Engine::Engine( KNewStuff *newStuff, const TQString &type,
} }
Engine::Engine( KNewStuff *newStuff, const TQString &type, Engine::Engine( KNewStuff *newStuff, const TQString &type,
const TQString &providerList, TQWidget *tqparentWidget ) : const TQString &providerList, TQWidget *parentWidget ) :
mParentWidget( tqparentWidget ), mParentWidget( parentWidget ),
mDownloadDialog( 0 ), mUploadDialog( 0 ), mDownloadDialog( 0 ), mUploadDialog( 0 ),
mProviderDialog( 0 ), mUploadProvider( 0 ), mProviderDialog( 0 ), mUploadProvider( 0 ),
mProviderList( providerList ), d(new Private), mProviderList( providerList ), d(new Private),

@ -58,18 +58,18 @@ class KDE_EXPORT Engine : public TQObject
@param newStuff a KNewStuff object @param newStuff a KNewStuff object
@param type the Hotstuff data type such as "korganizer/calendar" @param type the Hotstuff data type such as "korganizer/calendar"
@param tqparentWidget the parent window @param parentWidget the parent window
*/ */
Engine( KNewStuff *newStuff, const TQString &type, TQWidget *tqparentWidget = 0 ); Engine( KNewStuff *newStuff, const TQString &type, TQWidget *parentWidget = 0 );
/** /**
Constructor. Constructor.
@param newStuff a KNewStuff object @param newStuff a KNewStuff object
@param type the Hotstuff data type such as "korganizer/calendar" @param type the Hotstuff data type such as "korganizer/calendar"
@param providerList the URL of the provider list @param providerList the URL of the provider list
@param tqparentWidget the parent window @param parentWidget the parent window
*/ */
Engine( KNewStuff *newStuff, const TQString &type, const TQString &providerList, TQWidget *tqparentWidget = 0 ); Engine( KNewStuff *newStuff, const TQString &type, const TQString &providerList, TQWidget *parentWidget = 0 );
/** /**
Destructor. Destructor.
@ -88,7 +88,7 @@ class KDE_EXPORT Engine : public TQObject
@return parent widget @return parent widget
*/ */
TQWidget *tqparentWidget() const { return mParentWidget; } TQWidget *parentWidget() const { return mParentWidget; }
/** /**
Initiates the download process, retrieving provider lists and invoking Initiates the download process, retrieving provider lists and invoking

@ -39,14 +39,14 @@ KAction* KNS::standardAction(const TQString& what,
0, recvr, slot, parent, name); 0, recvr, slot, parent, name);
} }
KNewStuff::KNewStuff( const TQString &type, TQWidget *tqparentWidget ) KNewStuff::KNewStuff( const TQString &type, TQWidget *parentWidget )
{ {
mEngine = new Engine( this, type, tqparentWidget ); mEngine = new Engine( this, type, parentWidget );
} }
KNewStuff::KNewStuff( const TQString &type, const TQString &providerList, TQWidget *tqparentWidget ) KNewStuff::KNewStuff( const TQString &type, const TQString &providerList, TQWidget *parentWidget )
{ {
mEngine = new Engine( this, type, providerList, tqparentWidget ); mEngine = new Engine( this, type, providerList, parentWidget );
} }
TQString KNewStuff::type() const TQString KNewStuff::type() const
@ -54,9 +54,9 @@ TQString KNewStuff::type() const
return mEngine->type(); return mEngine->type();
} }
TQWidget *KNewStuff::tqparentWidget() const TQWidget *KNewStuff::parentWidget() const
{ {
return mEngine->tqparentWidget(); return mEngine->parentWidget();
} }
KNewStuff::~KNewStuff() KNewStuff::~KNewStuff()

@ -74,10 +74,10 @@ class KDE_EXPORT KNewStuff
@param type type of data to be handled, should be something like @param type type of data to be handled, should be something like
korganizer/calendar, kword/template, kdesktop/wallpaper korganizer/calendar, kword/template, kdesktop/wallpaper
@param tqparentWidget parent widget of dialogs opened by the KNewStuff @param parentWidget parent widget of dialogs opened by the KNewStuff
engine engine
*/ */
KNewStuff( const TQString &type, TQWidget *tqparentWidget = 0 ); KNewStuff( const TQString &type, TQWidget *parentWidget = 0 );
/** /**
Constructor. Constructor.
@ -85,10 +85,10 @@ class KDE_EXPORT KNewStuff
@param type type of data to be handled, should be something like @param type type of data to be handled, should be something like
korganizer/calendar, kword/template, kdesktop/wallpaper korganizer/calendar, kword/template, kdesktop/wallpaper
@param providerList the URL of the provider list @param providerList the URL of the provider list
@param tqparentWidget parent widget of dialogs opened by the KNewStuff @param parentWidget parent widget of dialogs opened by the KNewStuff
engine engine
*/ */
KNewStuff( const TQString &type, const TQString &providerList, TQWidget *tqparentWidget = 0 ); KNewStuff( const TQString &type, const TQString &providerList, TQWidget *parentWidget = 0 );
virtual ~KNewStuff(); virtual ~KNewStuff();
/** /**
@ -99,7 +99,7 @@ class KDE_EXPORT KNewStuff
/** /**
Return parent widget. Return parent widget.
*/ */
TQWidget *tqparentWidget() const; TQWidget *parentWidget() const;
/** /**
Start download process. Start download process.

@ -135,7 +135,7 @@ TQString KNewStuffGeneric::downloadDestination( KNS::Entry *entry )
TQString file = destinationPath(entry); TQString file = destinationPath(entry);
if ( KStandardDirs::exists( file ) ) { if ( KStandardDirs::exists( file ) ) {
int result = KMessageBox::warningContinueCancel( tqparentWidget(), int result = KMessageBox::warningContinueCancel( parentWidget(),
i18n("The file '%1' already exists. Do you want to overwrite it?") i18n("The file '%1' already exists. Do you want to overwrite it?")
.arg( file ), .arg( file ),
TQString::null, i18n("Overwrite") ); TQString::null, i18n("Overwrite") );

@ -33,8 +33,8 @@
using namespace KNS; using namespace KNS;
KNewStuffSecure::KNewStuffSecure(const TQString &type, TQWidget *tqparentWidget) KNewStuffSecure::KNewStuffSecure(const TQString &type, TQWidget *parentWidget)
: KNewStuff(type, tqparentWidget) : KNewStuff(type, parentWidget)
{ {
m_tempDir = 0L; m_tempDir = 0L;
connect(engine(), TQT_SIGNAL(uploadFinished(bool)), TQT_SLOT(slotUploadFinished(bool))); connect(engine(), TQT_SIGNAL(uploadFinished(bool)), TQT_SLOT(slotUploadFinished(bool)));
@ -80,7 +80,7 @@ bool KNewStuffSecure::install(const TQString &fileName)
} else } else
ok = false; ok = false;
if (!ok) if (!ok)
KMessageBox::error(tqparentWidget(), i18n("There was an error with the downloaded resource tarball file. Possible causes are damaged archive or invalid directory structure in the archive."), i18n("Resource Installation Error")); KMessageBox::error(parentWidget(), i18n("There was an error with the downloaded resource tarball file. Possible causes are damaged archive or invalid directory structure in the archive."), i18n("Resource Installation Error"));
return ok; return ok;
} }
@ -134,10 +134,10 @@ void KNewStuffSecure::slotValidated(int result)
if (!valid) if (!valid)
{ {
signatureStr.prepend( "<br>"); signatureStr.prepend( "<br>");
if (KMessageBox::warningContinueCancel(tqparentWidget(), i18n("<qt>There is a problem with the resource file you have downloaded. The errors are :<b>%1</b><br>%2<br><br>Installation of the resource is <b>not recommended</b>.<br><br>Do you want to proceed with the installation?</qt>").arg(errorString).arg(signatureStr), i18n("Problematic Resource File")) == KMessageBox::Continue) if (KMessageBox::warningContinueCancel(parentWidget(), i18n("<qt>There is a problem with the resource file you have downloaded. The errors are :<b>%1</b><br>%2<br><br>Installation of the resource is <b>not recommended</b>.<br><br>Do you want to proceed with the installation?</qt>").arg(errorString).arg(signatureStr), i18n("Problematic Resource File")) == KMessageBox::Continue)
valid = true; valid = true;
} else } else
KMessageBox::information(tqparentWidget(), i18n("<qt>%1<br><br>Press OK to install it.</qt>").arg(signatureStr), i18n("Valid Resource"), "Show Valid Signature Information"); KMessageBox::information(parentWidget(), i18n("<qt>%1<br><br>Press OK to install it.</qt>").arg(signatureStr), i18n("Valid Resource"), "Show Valid Signature Information");
if (valid) if (valid)
{ {
installResource(); installResource();
@ -187,12 +187,12 @@ void KNewStuffSecure::slotFileSigned(int result)
{ {
if (result == 0) if (result == 0)
{ {
KMessageBox::error(tqparentWidget(), i18n("The signing failed for unknown reason.")); KMessageBox::error(parentWidget(), i18n("The signing failed for unknown reason."));
} else } else
{ {
if (result & Security::BAD_PASSPHRASE) if (result & Security::BAD_PASSPHRASE)
{ {
if (KMessageBox::warningContinueCancel(tqparentWidget(), i18n("There are no keys usable for signing or you did not entered the correct passphrase.\nProceed without signing the resource?")) == KMessageBox::Cancel) if (KMessageBox::warningContinueCancel(parentWidget(), i18n("There are no keys usable for signing or you did not entered the correct passphrase.\nProceed without signing the resource?")) == KMessageBox::Cancel)
{ {
disconnect(Security::ref(), TQT_SIGNAL(fileSigned(int)), this, TQT_SLOT(slotFileSigned(int))); disconnect(Security::ref(), TQT_SIGNAL(fileSigned(int)), this, TQT_SLOT(slotFileSigned(int)));
removeTempDirectory(); removeTempDirectory();
@ -231,7 +231,7 @@ void KNewStuffSecure::removeTempDirectory()
{ {
if (m_tempDir) if (m_tempDir)
{ {
KIO::NetAccess::del(KURL().fromPathOrURL(m_tempDir->name()), tqparentWidget()); KIO::NetAccess::del(KURL().fromPathOrURL(m_tempDir->name()), parentWidget());
delete m_tempDir; delete m_tempDir;
m_tempDir = 0L; m_tempDir = 0L;
} }

@ -46,10 +46,10 @@ public:
@param type type of data to be handled, should be something like @param type type of data to be handled, should be something like
korganizer/calendar, kword/template, kdesktop/wallpaper korganizer/calendar, kword/template, kdesktop/wallpaper
@param tqparentWidget parent widget of dialogs opened by the KNewStuff @param parentWidget parent widget of dialogs opened by the KNewStuff
engine engine
*/ */
KNewStuffSecure(const TQString &type, TQWidget *tqparentWidget=0); KNewStuffSecure(const TQString &type, TQWidget *parentWidget=0);
virtual ~KNewStuffSecure(); virtual ~KNewStuffSecure();
/** Installs the downloaded resource. Do not call or reimplement directly. /** Installs the downloaded resource. Do not call or reimplement directly.

@ -206,8 +206,8 @@ TQDomElement Provider::createDomElement( TQDomDocument &doc, TQDomElement &paren
} }
ProviderLoader::ProviderLoader( TQWidget *tqparentWidget ) : ProviderLoader::ProviderLoader( TQWidget *parentWidget ) :
TQObject( tqparentWidget ) TQObject( parentWidget )
{ {
mProviders.setAutoDelete( true ); mProviders.setAutoDelete( true );
} }

@ -176,9 +176,9 @@ class KDE_EXPORT ProviderLoader : public TQObject
/** /**
* Constructor. * Constructor.
* *
* @param tqparentWidget the parent widget * @param parentWidget the parent widget
*/ */
ProviderLoader( TQWidget *tqparentWidget ); ProviderLoader( TQWidget *parentWidget );
/** /**
* Starts asynchronously loading the list of providers of the * Starts asynchronously loading the list of providers of the

@ -82,7 +82,7 @@ namespace KParts
* \endcode * \endcode
* *
* @param factory The factory to ask for the creation of the component * @param factory The factory to ask for the creation of the component
* @param tqparentWidget the parent widget for the part * @param parentWidget the parent widget for the part
* @param widgetName the name of the part's widget * @param widgetName the name of the part's widget
* @param parent The parent object (see TQObject constructor) * @param parent The parent object (see TQObject constructor)
* @param name The name of the object to create (see TQObject constructor) * @param name The name of the object to create (see TQObject constructor)
@ -93,13 +93,13 @@ namespace KParts
*/ */
template <class T> template <class T>
static T *createPartInstanceFromFactory( KParts::Factory *factory, static T *createPartInstanceFromFactory( KParts::Factory *factory,
TQWidget *tqparentWidget = 0, TQWidget *parentWidget = 0,
const char *widgetName = 0, const char *widgetName = 0,
TQObject *parent = 0, TQObject *parent = 0,
const char *name = 0, const char *name = 0,
const TQStringList &args = TQStringList() ) const TQStringList &args = TQStringList() )
{ {
KParts::Part *object = factory->createPart( tqparentWidget, widgetName, KParts::Part *object = factory->createPart( parentWidget, widgetName,
parent, name, parent, name,
T::tqstaticMetaObject()->className(), T::tqstaticMetaObject()->className(),
args ); args );
@ -156,7 +156,7 @@ namespace KParts
template <class T> template <class T>
static T *createPartInstanceFromLibrary( const char *libraryName, static T *createPartInstanceFromLibrary( const char *libraryName,
TQWidget *tqparentWidget = 0, TQWidget *parentWidget = 0,
const char *widgetName = 0, const char *widgetName = 0,
TQObject *parent = 0, TQObject *parent = 0,
const char *name = 0, const char *name = 0,
@ -186,7 +186,7 @@ namespace KParts
*error = ErrNoFactory; *error = ErrNoFactory;
return 0; return 0;
} }
T *res = createPartInstanceFromFactory<T>( partFactory, tqparentWidget, T *res = createPartInstanceFromFactory<T>( partFactory, parentWidget,
widgetName, parent, name, args ); widgetName, parent, name, args );
if ( !res ) if ( !res )
{ {
@ -218,7 +218,7 @@ namespace KParts
template <class T> template <class T>
static T *createPartInstanceFromService( const KService::Ptr &service, static T *createPartInstanceFromService( const KService::Ptr &service,
TQWidget *tqparentWidget = 0, TQWidget *parentWidget = 0,
const char *widgetName = 0, const char *widgetName = 0,
TQObject *parent = 0, TQObject *parent = 0,
const char *name = 0, const char *name = 0,
@ -233,7 +233,7 @@ namespace KParts
return 0; return 0;
} }
return createPartInstanceFromLibrary<T>( library.local8Bit().data(), tqparentWidget, return createPartInstanceFromLibrary<T>( library.local8Bit().data(), parentWidget,
widgetName, parent, name, args, error ); widgetName, parent, name, args, error );
} }
@ -267,7 +267,7 @@ namespace KParts
template <class T, class ServiceIterator> template <class T, class ServiceIterator>
static T *createPartInstanceFromServices( ServiceIterator begin, static T *createPartInstanceFromServices( ServiceIterator begin,
ServiceIterator end, ServiceIterator end,
TQWidget *tqparentWidget = 0, TQWidget *parentWidget = 0,
const char *widgetName = 0, const char *widgetName = 0,
TQObject *parent = 0, TQObject *parent = 0,
const char *name = 0, const char *name = 0,
@ -281,7 +281,7 @@ namespace KParts
if ( error ) if ( error )
*error = 0; *error = 0;
T *component = createPartInstanceFromService<T>( service, tqparentWidget, T *component = createPartInstanceFromService<T>( service, parentWidget,
widgetName, parent, widgetName, parent,
name, args, error ); name, args, error );
if ( component ) if ( component )
@ -344,18 +344,18 @@ namespace KParts
* You can use this method to create a generic viewer - that can display any * You can use this method to create a generic viewer - that can display any
* kind of file, provided that there is a ReadOnlyPart installed for it - in 5 lines: * kind of file, provided that there is a ReadOnlyPart installed for it - in 5 lines:
* \code * \code
* // Given the following: KURL url, TQWidget* tqparentWidget and TQObject* parentObject. * // Given the following: KURL url, TQWidget* parentWidget and TQObject* parentObject.
* TQString mimetype = KMimeType::findByURL( url )->name(); * TQString mimetype = KMimeType::findByURL( url )->name();
* KParts::ReadOnlyPart* part = KParts::ComponentFactory::createPartInstanceFromQuery<KParts::ReadOnlyPart>( mimetype, TQString::null, tqparentWidget, 0, parentObject, 0 ); * KParts::ReadOnlyPart* part = KParts::ComponentFactory::createPartInstanceFromQuery<KParts::ReadOnlyPart>( mimetype, TQString::null, parentWidget, 0, parentObject, 0 );
* if ( part ) { * if ( part ) {
* part->openURL( url ); * part->openURL( url );
* part->widget()->show(); // also insert the widget into a layout, or simply use a TQVBox as tqparentWidget * part->widget()->show(); // also insert the widget into a layout, or simply use a TQVBox as parentWidget
* } * }
* \endcode * \endcode
* *
* @param serviceType the type of service for which to find a part, e.g. a mimetype * @param serviceType the type of service for which to find a part, e.g. a mimetype
* @param constraint an optional constraint to pass to the trader (see KTrader) * @param constraint an optional constraint to pass to the trader (see KTrader)
* @param tqparentWidget the parent widget, will be set as the parent of the part's widget * @param parentWidget the parent widget, will be set as the parent of the part's widget
* @param widgetName the name that will be given to the part's widget * @param widgetName the name that will be given to the part's widget
* @param parent the parent object for the part itself * @param parent the parent object for the part itself
* @param name the name that will be given to the part * @param name the name that will be given to the part
@ -369,7 +369,7 @@ namespace KParts
template <class T> template <class T>
static T *createPartInstanceFromQuery( const TQString &serviceType, static T *createPartInstanceFromQuery( const TQString &serviceType,
const TQString &constraint, const TQString &constraint,
TQWidget *tqparentWidget = 0, TQWidget *parentWidget = 0,
const char *widgetName = 0, const char *widgetName = 0,
TQObject *parent = 0, TQObject *parent = 0,
const char *name = 0, const char *name = 0,
@ -385,7 +385,7 @@ namespace KParts
} }
return createPartInstanceFromServices<T>( offers.begin(), offers.end(), return createPartInstanceFromServices<T>( offers.begin(), offers.end(),
tqparentWidget, widgetName, parentWidget, widgetName,
parent, name, args, error ); parent, name, args, error );
} }

@ -39,9 +39,9 @@ Factory::~Factory()
{ {
} }
Part *Factory::createPart( TQWidget *tqparentWidget, const char *widgetName, TQObject *parent, const char *name, const char *classname, const TQStringList &args ) Part *Factory::createPart( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const char *classname, const TQStringList &args )
{ {
Part* part = createPartObject( tqparentWidget, widgetName, parent, name, classname, args ); Part* part = createPartObject( parentWidget, widgetName, parent, name, classname, args );
if ( part ) if ( part )
emit objectCreated( part ); emit objectCreated( part );
return part; return part;

@ -60,7 +60,7 @@ public:
* \endcode * \endcode
* This could result in a call to * This could result in a call to
* \code * \code
* createPart( tqparentWidget, name, parentObject, parentName, "KParts::Part", * createPart( parentWidget, name, parentObject, parentName, "KParts::Part",
* TQStringList("name1="value1"", "name2="value2") ); * TQStringList("name1="value1"", "name2="value2") );
* \endcode * \endcode
* *
@ -71,7 +71,7 @@ public:
* important for reference counting, and allows unloading the * important for reference counting, and allows unloading the
* library automatically once all its objects have been destroyed. * library automatically once all its objects have been destroyed.
*/ */
Part *createPart( TQWidget *tqparentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KParts::Part", const TQStringList &args = TQStringList() ); Part *createPart( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KParts::Part", const TQStringList &args = TQStringList() );
/** /**
* If you have a part contained in a shared library you might want to query * If you have a part contained in a shared library you might want to query
@ -108,13 +108,13 @@ protected:
* \endcode * \endcode
* This could result in a call to * This could result in a call to
* \code * \code
* createPart( tqparentWidget, name, parentObject, parentName, "Kparts::Part", * createPart( parentWidget, name, parentObject, parentName, "Kparts::Part",
* TQStringList("name1="value1"", "name2="value2") ); * TQStringList("name1="value1"", "name2="value2") );
* \endcode * \endcode
* *
* @returns the newly created part. * @returns the newly created part.
*/ */
virtual Part *createPartObject( TQWidget *tqparentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KParts::Part", const TQStringList &args = TQStringList() ) = 0; virtual Part *createPartObject( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KParts::Part", const TQStringList &args = TQStringList() ) = 0;
/** /**
* Reimplemented from KLibFactory. Calls createPart() * Reimplemented from KLibFactory. Calls createPart()

@ -66,7 +66,7 @@ namespace KParts
* *
* The template argument has to inherit from KParts::Part and has to implement two methods: * The template argument has to inherit from KParts::Part and has to implement two methods:
* 1) There needs to be a public constructor with the following signature: * 1) There needs to be a public constructor with the following signature:
* MyPart( TQWidget *tqparentWidget, const char *widgetName, TQObject *parent, const char *name, const TQStringList& args ) * MyPart( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, const TQStringList& args )
* *
* 2) It needs to provide one static method to create a KAboutData object per * 2) It needs to provide one static method to create a KAboutData object per
* request, holding information about the component's name, its authors, license, etc. * request, holding information about the component's name, its authors, license, etc.
@ -97,12 +97,12 @@ namespace KParts
public: public:
GenericFactory() { } GenericFactory() { }
virtual KParts::Part *createPartObject( TQWidget *tqparentWidget, const char *widgetName, virtual KParts::Part *createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, TQObject *parent, const char *name,
const char *className, const char *className,
const TQStringList &args ) const TQStringList &args )
{ {
T *part = KDEPrivate::ConcreteFactory<T>::create( tqparentWidget, T *part = KDEPrivate::ConcreteFactory<T>::create( parentWidget,
widgetName, widgetName,
parent, parent,
name, name,
@ -125,12 +125,12 @@ namespace KParts
public: public:
GenericFactory() { } GenericFactory() { }
virtual KParts::Part *createPartObject( TQWidget *tqparentWidget, const char *widgetName, virtual KParts::Part *createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name, TQObject *parent, const char *name,
const char *className, const char *className,
const TQStringList &args ) const TQStringList &args )
{ {
TQObject *object = KDEPrivate::MultiFactory< KTypeList<T1, T2> >::create( tqparentWidget, TQObject *object = KDEPrivate::MultiFactory< KTypeList<T1, T2> >::create( parentWidget,
widgetName, widgetName,
parent, name, parent, name,
className, className,

@ -162,10 +162,10 @@ Part::~Part()
delete d; delete d;
} }
void Part::embed( TQWidget * tqparentWidget ) void Part::embed( TQWidget * parentWidget )
{ {
if ( widget() ) if ( widget() )
widget()->reparent( tqparentWidget, 0, TQPoint( 0, 0 ), true ); widget()->reparent( parentWidget, 0, TQPoint( 0, 0 ), true );
} }
TQWidget *Part::widget() TQWidget *Part::widget()

@ -208,7 +208,7 @@ public:
* This method is not recommended since creating the widget with the correct * This method is not recommended since creating the widget with the correct
* parent is simpler anyway. * parent is simpler anyway.
*/ */
virtual void embed( TQWidget * tqparentWidget ); virtual void embed( TQWidget * parentWidget );
/** /**
* @return The widget defined by this part, set by setWidget(). * @return The widget defined by this part, set by setWidget().

@ -288,7 +288,7 @@ bool PartManager::eventFilter( TQObject *obj, TQEvent *ev )
return false; return false;
} }
w = w->tqparentWidget(); w = w->parentWidget();
if ( w && ( ( w->testWFlags( WType_Dialog ) && w->isModal() ) || if ( w && ( ( w->testWFlags( WType_Dialog ) && w->isModal() ) ||
w->testWFlags( WType_Popup ) || w->testWFlags( WStyle_Tool ) ) ) w->testWFlags( WType_Popup ) || w->testWFlags( WStyle_Tool ) ) )

@ -16,14 +16,14 @@
#include <kstatusbar.h> #include <kstatusbar.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
NotepadPart::NotepadPart( TQWidget* tqparentWidget, const char*, NotepadPart::NotepadPart( TQWidget* parentWidget, const char*,
TQObject* parent, const char* name, TQObject* parent, const char* name,
const TQStringList& ) const TQStringList& )
: KParts::ReadWritePart( parent, name ) : KParts::ReadWritePart( parent, name )
{ {
setInstance( NotepadFactory::instance() ); setInstance( NotepadFactory::instance() );
m_edit = new TQMultiLineEdit( tqparentWidget, "NotepadPart's multiline edit" ); m_edit = new TQMultiLineEdit( parentWidget, "NotepadPart's multiline edit" );
setWidget( m_edit ); setWidget( m_edit );
(void)new KAction( "Search and replace", 0, this, TQT_SLOT( slotSearchReplace() ), actionCollection(), "searchreplace" ); (void)new KAction( "Search and replace", 0, this, TQT_SLOT( slotSearchReplace() ), actionCollection(), "searchreplace" );

@ -18,12 +18,12 @@
#include <kaction.h> #include <kaction.h>
#include <klocale.h> #include <klocale.h>
Part1::Part1( TQObject *parent, TQWidget * tqparentWidget ) Part1::Part1( TQObject *parent, TQWidget * parentWidget )
: KParts::ReadOnlyPart( parent, "Part1" ) : KParts::ReadOnlyPart( parent, "Part1" )
{ {
m_instance = new KInstance( "kpartstestpart" ); m_instance = new KInstance( "kpartstestpart" );
setInstance( m_instance ); setInstance( m_instance );
m_edit = new TQMultiLineEdit( tqparentWidget ); m_edit = new TQMultiLineEdit( parentWidget );
setWidget( m_edit ); setWidget( m_edit );
setXMLFile( "kpartstest_part1.rc" ); setXMLFile( "kpartstest_part1.rc" );
@ -56,12 +56,12 @@ bool Part1::openFile()
return true; return true;
} }
Part2::Part2( TQObject *parent, TQWidget * tqparentWidget ) Part2::Part2( TQObject *parent, TQWidget * parentWidget )
: KParts::Part( parent, "Part2" ) : KParts::Part( parent, "Part2" )
{ {
m_instance = new KInstance( "part2" ); m_instance = new KInstance( "part2" );
setInstance( m_instance ); setInstance( m_instance );
TQWidget * w = new TQWidget( tqparentWidget, "Part2Widget" ); TQWidget * w = new TQWidget( parentWidget, "Part2Widget" );
setWidget( w ); setWidget( w );
TQCheckBox * cb = new TQCheckBox( "something", w ); TQCheckBox * cb = new TQCheckBox( "something", w );

@ -13,7 +13,7 @@ class Part1 : public KParts::ReadOnlyPart
{ {
Q_OBJECT Q_OBJECT
public: public:
Part1( TQObject *parent, TQWidget * tqparentWidget ); Part1( TQObject *parent, TQWidget * parentWidget );
virtual ~Part1(); virtual ~Part1();
protected: protected:
@ -28,7 +28,7 @@ class Part2 : public KParts::Part
{ {
Q_OBJECT Q_OBJECT
public: public:
Part2( TQObject *parent, TQWidget * tqparentWidget ); Part2( TQObject *parent, TQWidget * parentWidget );
virtual ~Part2(); virtual ~Part2();
protected: protected:

@ -95,7 +95,7 @@ void KTimerDialog::setMainWidget( TQWidget *widget )
// yuck, here goes. // yuck, here goes.
TQVBox *newWidget = new TQVBox( this ); TQVBox *newWidget = new TQVBox( this );
if ( widget->tqparentWidget() != mainWidget ) { if ( widget->parentWidget() != mainWidget ) {
widget->reparent( newWidget, 0, TQPoint(0,0) ); widget->reparent( newWidget, 0, TQPoint(0,0) );
} else { } else {
newWidget->insertChild( TQT_TQOBJECT(widget) ); newWidget->insertChild( TQT_TQOBJECT(widget) );

@ -1642,11 +1642,11 @@ void HighColorStyle::tqdrawComplexControl( TQ_ComplexControl control,
tqdrawPrimitive(PE_ButtonTool, p, button, cg, bflags, opt); tqdrawPrimitive(PE_ButtonTool, p, button, cg, bflags, opt);
// Check whether to draw a background pixmap // Check whether to draw a background pixmap
else if ( toolbutton->tqparentWidget() && else if ( toolbutton->parentWidget() &&
toolbutton->tqparentWidget()->backgroundPixmap() && toolbutton->parentWidget()->backgroundPixmap() &&
!toolbutton->tqparentWidget()->backgroundPixmap()->isNull() ) !toolbutton->parentWidget()->backgroundPixmap()->isNull() )
{ {
TQPixmap pixmap = *(toolbutton->tqparentWidget()->backgroundPixmap()); TQPixmap pixmap = *(toolbutton->parentWidget()->backgroundPixmap());
p->drawTiledPixmap( r, pixmap, toolbutton->pos() ); p->drawTiledPixmap( r, pixmap, toolbutton->pos() );
} }
else if (widget->parent()) else if (widget->parent())

@ -1276,11 +1276,11 @@ void HighContrastStyle::tqdrawComplexControl (TQ_ComplexControl control,
tqdrawPrimitive(PE_ButtonTool, p, button, cg, bflags, opt); tqdrawPrimitive(PE_ButtonTool, p, button, cg, bflags, opt);
// Check whether to draw a background pixmap // Check whether to draw a background pixmap
else if ( toolbutton->tqparentWidget() && else if ( toolbutton->parentWidget() &&
toolbutton->tqparentWidget()->backgroundPixmap() && toolbutton->parentWidget()->backgroundPixmap() &&
!toolbutton->tqparentWidget()->backgroundPixmap()->isNull() ) !toolbutton->parentWidget()->backgroundPixmap()->isNull() )
{ {
TQPixmap pixmap = *(toolbutton->tqparentWidget()->backgroundPixmap()); TQPixmap pixmap = *(toolbutton->parentWidget()->backgroundPixmap());
p->drawTiledPixmap( r, pixmap, toolbutton->pos() ); p->drawTiledPixmap( r, pixmap, toolbutton->pos() );
} }
} }

@ -347,8 +347,8 @@ void KeramikStyle::polish(TQWidget* widget)
else if ( widget->inherits( TQMENUBAR_OBJECT_NAME_STRING ) || widget->inherits( TQPOPUPMENU_OBJECT_NAME_STRING ) ) else if ( widget->inherits( TQMENUBAR_OBJECT_NAME_STRING ) || widget->inherits( TQPOPUPMENU_OBJECT_NAME_STRING ) )
widget->setBackgroundMode( NoBackground ); widget->setBackgroundMode( NoBackground );
else if ( widget->tqparentWidget() && else if ( widget->parentWidget() &&
( ( widget->inherits( TQLISTBOX_OBJECT_NAME_STRING ) && widget->tqparentWidget()->inherits( TQCOMBOBOX_OBJECT_NAME_STRING ) ) || ( ( widget->inherits( TQLISTBOX_OBJECT_NAME_STRING ) && widget->parentWidget()->inherits( TQCOMBOBOX_OBJECT_NAME_STRING ) ) ||
widget->inherits( "KCompletionBox" ) ) ) { widget->inherits( "KCompletionBox" ) ) ) {
TQListBox* listbox = (TQListBox*) widget; TQListBox* listbox = (TQListBox*) widget;
listbox->setLineWidth( 4 ); listbox->setLineWidth( 4 );
@ -388,8 +388,8 @@ void KeramikStyle::unPolish(TQWidget* widget)
else if ( widget->inherits( TQMENUBAR_OBJECT_NAME_STRING ) || widget->inherits( TQPOPUPMENU_OBJECT_NAME_STRING ) ) else if ( widget->inherits( TQMENUBAR_OBJECT_NAME_STRING ) || widget->inherits( TQPOPUPMENU_OBJECT_NAME_STRING ) )
widget->setBackgroundMode( PaletteBackground ); widget->setBackgroundMode( PaletteBackground );
else if ( widget->tqparentWidget() && else if ( widget->parentWidget() &&
( ( widget->inherits( TQLISTBOX_OBJECT_NAME_STRING ) && widget->tqparentWidget()->inherits( TQCOMBOBOX_OBJECT_NAME_STRING ) ) || ( ( widget->inherits( TQLISTBOX_OBJECT_NAME_STRING ) && widget->parentWidget()->inherits( TQCOMBOBOX_OBJECT_NAME_STRING ) ) ||
widget->inherits( "KCompletionBox" ) ) ) { widget->inherits( "KCompletionBox" ) ) ) {
TQListBox* listbox = (TQListBox*) widget; TQListBox* listbox = (TQListBox*) widget;
listbox->setLineWidth( 1 ); listbox->setLineWidth( 1 );
@ -477,7 +477,7 @@ static void renderToolbarWidgetBackground(TQPainter* painter, const TQWidget* wi
// Find the top-level toolbar of this widget, since it may be nested in other // Find the top-level toolbar of this widget, since it may be nested in other
// widgets that are on the toolbar. // widgets that are on the toolbar.
TQWidget *parent = TQT_TQWIDGET(widget->tqparentWidget()); TQWidget *parent = TQT_TQWIDGET(widget->parentWidget());
int x_offset = widget->x(), y_offset = widget->y(); int x_offset = widget->x(), y_offset = widget->y();
while (parent && parent->parent() && !qstrcmp( parent->name(), kdeToolbarWidget ) ) while (parent && parent->parent() && !qstrcmp( parent->name(), kdeToolbarWidget ) )
{ {
@ -1093,7 +1093,7 @@ void KeramikStyle::tqdrawPrimitive( TQ_PrimitiveElement pe,
TQWidget* paintWidget = dynamic_cast<TQWidget*>(p->device()); TQWidget* paintWidget = dynamic_cast<TQWidget*>(p->device());
TQToolBar* parent = 0; TQToolBar* parent = 0;
if (paintWidget) if (paintWidget)
parent = ::tqqt_cast<TQToolBar*>(paintWidget->tqparentWidget()); parent = ::tqqt_cast<TQToolBar*>(paintWidget->parentWidget());
renderToolbarEntryBackground(p, parent, r, cg, (flags & Style_Horizontal) ); renderToolbarEntryBackground(p, parent, r, cg, (flags & Style_Horizontal) );
if ( !(flags & Style_Horizontal) ) if ( !(flags & Style_Horizontal) )
@ -1306,16 +1306,16 @@ bool KeramikStyle::isFormWidget(const TQWidget* widget) const
{ {
//Form widgets are in the KHTMLView, but that has 2 further inner levels //Form widgets are in the KHTMLView, but that has 2 further inner levels
//of widgets - QClipperWidget, and outside of that, QViewportWidget //of widgets - QClipperWidget, and outside of that, QViewportWidget
TQWidget* potentialClipPort = widget->tqparentWidget(); TQWidget* potentialClipPort = widget->parentWidget();
if ( !potentialClipPort || potentialClipPort->isTopLevel() ) if ( !potentialClipPort || potentialClipPort->isTopLevel() )
return false; return false;
TQWidget* potentialViewPort = potentialClipPort->tqparentWidget(); TQWidget* potentialViewPort = potentialClipPort->parentWidget();
if (!potentialViewPort || potentialViewPort->isTopLevel() || if (!potentialViewPort || potentialViewPort->isTopLevel() ||
qstrcmp(potentialViewPort->name(), "qt_viewport") ) qstrcmp(potentialViewPort->name(), "qt_viewport") )
return false; return false;
TQWidget* potentialKHTML = potentialViewPort->tqparentWidget(); TQWidget* potentialKHTML = potentialViewPort->parentWidget();
if (!potentialKHTML || potentialKHTML->isTopLevel() || if (!potentialKHTML || potentialKHTML->isTopLevel() ||
qstrcmp(potentialKHTML->className(), "KHTMLView") ) qstrcmp(potentialKHTML->className(), "KHTMLView") )
return false; return false;
@ -1466,13 +1466,13 @@ void KeramikStyle::tqdrawControl( TQ_ControlElement element,
case CE_ToolButtonLabel: case CE_ToolButtonLabel:
{ {
//const TQToolButton *toolbutton = static_cast<const TQToolButton * >(widget); //const TQToolButton *toolbutton = static_cast<const TQToolButton * >(widget);
bool onToolbar = widget->tqparentWidget() && widget->tqparentWidget()->inherits( TQTOOLBAR_OBJECT_NAME_STRING ); bool onToolbar = widget->parentWidget() && widget->parentWidget()->inherits( TQTOOLBAR_OBJECT_NAME_STRING );
TQRect nr = r; TQRect nr = r;
if (!onToolbar) if (!onToolbar)
{ {
if (widget->tqparentWidget() && if (widget->parentWidget() &&
!qstrcmp(widget->tqparentWidget()->name(),"qt_maxcontrols" ) ) !qstrcmp(widget->parentWidget()->name(),"qt_maxcontrols" ) )
{ {
//Make sure we don't cut into the endline //Make sure we don't cut into the endline
if (!qstrcmp(widget->name(), "close")) if (!qstrcmp(widget->name(), "close"))
@ -2136,9 +2136,9 @@ void KeramikStyle::tqdrawComplexControl( TQ_ComplexControl control,
case CC_ScrollBar: case CC_ScrollBar:
{ {
const TQScrollBar* sb = static_cast< const TQScrollBar* >( widget ); const TQScrollBar* sb = static_cast< const TQScrollBar* >( widget );
if (highlightScrollBar && sb->tqparentWidget()) //Don't do the check if not highlighting anyway if (highlightScrollBar && sb->parentWidget()) //Don't do the check if not highlighting anyway
{ {
if (sb->tqparentWidget()->tqcolorGroup().button() != sb->tqcolorGroup().button()) if (sb->parentWidget()->tqcolorGroup().button() != sb->tqcolorGroup().button())
customScrollMode = true; customScrollMode = true;
} }
bool horizontal = sb->orientation() == Qt::Horizontal; bool horizontal = sb->orientation() == Qt::Horizontal;
@ -2209,14 +2209,14 @@ void KeramikStyle::tqdrawComplexControl( TQ_ComplexControl control,
// ------------------------------------------------------------------- // -------------------------------------------------------------------
case CC_ToolButton: { case CC_ToolButton: {
const TQToolButton *toolbutton = (const TQToolButton *) widget; const TQToolButton *toolbutton = (const TQToolButton *) widget;
bool onToolbar = widget->tqparentWidget() && widget->tqparentWidget()->inherits( TQTOOLBAR_OBJECT_NAME_STRING ); bool onToolbar = widget->parentWidget() && widget->parentWidget()->inherits( TQTOOLBAR_OBJECT_NAME_STRING );
bool onExtender = !onToolbar && bool onExtender = !onToolbar &&
widget->tqparentWidget() && widget->tqparentWidget()->inherits( "QToolBarExtensionWidget") && widget->parentWidget() && widget->parentWidget()->inherits( "QToolBarExtensionWidget") &&
widget->tqparentWidget()->tqparentWidget()->inherits( TQTOOLBAR_OBJECT_NAME_STRING ); widget->parentWidget()->parentWidget()->inherits( TQTOOLBAR_OBJECT_NAME_STRING );
bool onControlButtons = false; bool onControlButtons = false;
if (!onToolbar && !onExtender && widget->tqparentWidget() && if (!onToolbar && !onExtender && widget->parentWidget() &&
!qstrcmp(widget->tqparentWidget()->name(),"qt_maxcontrols" ) ) !qstrcmp(widget->parentWidget()->name(),"qt_maxcontrols" ) )
{ {
onControlButtons = true; onControlButtons = true;
titleBarMode = Maximized; titleBarMode = Maximized;
@ -2255,11 +2255,11 @@ void KeramikStyle::tqdrawComplexControl( TQ_ComplexControl control,
} }
// Check whether to draw a background pixmap // Check whether to draw a background pixmap
else if ( toolbutton->tqparentWidget() && else if ( toolbutton->parentWidget() &&
toolbutton->tqparentWidget()->backgroundPixmap() && toolbutton->parentWidget()->backgroundPixmap() &&
!toolbutton->tqparentWidget()->backgroundPixmap()->isNull() ) !toolbutton->parentWidget()->backgroundPixmap()->isNull() )
{ {
TQPixmap pixmap = *(toolbutton->tqparentWidget()->backgroundPixmap()); TQPixmap pixmap = *(toolbutton->parentWidget()->backgroundPixmap());
p->drawTiledPixmap( r, pixmap, toolbutton->pos() ); p->drawTiledPixmap( r, pixmap, toolbutton->pos() );
} }
else if (onToolbar) else if (onToolbar)
@ -2441,7 +2441,7 @@ TQSize KeramikStyle::tqsizeFromContents( ContentsType contents,
case CT_ToolButton: case CT_ToolButton:
{ {
bool onToolbar = widget->tqparentWidget() && widget->tqparentWidget()->inherits( TQTOOLBAR_OBJECT_NAME_STRING ); bool onToolbar = widget->parentWidget() && widget->parentWidget()->inherits( TQTOOLBAR_OBJECT_NAME_STRING );
if (!onToolbar) //Behaves like a button, so scale appropriately to the border if (!onToolbar) //Behaves like a button, so scale appropriately to the border
{ {
int w = contentSize.width(); int w = contentSize.width();
@ -2859,7 +2859,7 @@ bool KeramikStyle::eventFilter( TQObject* object, TQEvent* event )
TQMouseEvent* mev = TQT_TQMOUSEEVENT(event); TQMouseEvent* mev = TQT_TQMOUSEEVENT(event);
TQListBox* box = static_cast<TQListBox*>(TQT_TQWIDGET(object)); TQListBox* box = static_cast<TQListBox*>(TQT_TQWIDGET(object));
TQWidget* parent = box->tqparentWidget(); TQWidget* parent = box->parentWidget();
if (!parent) if (!parent)
return false; return false;

@ -294,7 +294,7 @@ void LightStyleV2::tqdrawPrimitive( TQ_PrimitiveElement pe,
bool drawTitle = false; bool drawTitle = false;
if ( p && p->device()->devType() == TQInternal::Widget ) { if ( p && p->device()->devType() == TQInternal::Widget ) {
TQWidget *w = (TQWidget *) p->device(); TQWidget *w = (TQWidget *) p->device();
TQWidget *p = w->tqparentWidget(); TQWidget *p = w->parentWidget();
if (p->inherits(TQDOCKWINDOW_OBJECT_NAME_STRING) && ! p->inherits(TQTOOLBAR_OBJECT_NAME_STRING)) { if (p->inherits(TQDOCKWINDOW_OBJECT_NAME_STRING) && ! p->inherits(TQTOOLBAR_OBJECT_NAME_STRING)) {
drawTitle = true; drawTitle = true;
title = p->caption(); title = p->caption();

@ -426,7 +426,7 @@ void LightStyleV3::tqdrawPrimitive( TQ_PrimitiveElement pe,
bool drawTitle = false; bool drawTitle = false;
if ( p && p->device()->devType() == TQInternal::Widget ) { if ( p && p->device()->devType() == TQInternal::Widget ) {
TQWidget *w = (TQWidget *) p->device(); TQWidget *w = (TQWidget *) p->device();
TQWidget *p = w->tqparentWidget(); TQWidget *p = w->parentWidget();
if (p->inherits(TQDOCKWINDOW_OBJECT_NAME_STRING) && ! p->inherits(TQTOOLBAR_OBJECT_NAME_STRING)) { if (p->inherits(TQDOCKWINDOW_OBJECT_NAME_STRING) && ! p->inherits(TQTOOLBAR_OBJECT_NAME_STRING)) {
drawTitle = true; drawTitle = true;
title = p->caption(); title = p->caption();

@ -2951,10 +2951,10 @@ void PlastikStyle::tqdrawComplexControl(TQ_ComplexControl control,
// If we're pressed, on, or raised... // If we're pressed, on, or raised...
if (bflags & (Style_Down | Style_On | Style_Raised) || widget==hoverWidget ) { if (bflags & (Style_Down | Style_On | Style_Raised) || widget==hoverWidget ) {
tqdrawPrimitive(PE_ButtonTool, p, button, cg, bflags, opt); tqdrawPrimitive(PE_ButtonTool, p, button, cg, bflags, opt);
} else if (tb->tqparentWidget() && } else if (tb->parentWidget() &&
tb->tqparentWidget()->backgroundPixmap() && tb->parentWidget()->backgroundPixmap() &&
!tb->tqparentWidget()->backgroundPixmap()->isNull()) { !tb->parentWidget()->backgroundPixmap()->isNull()) {
TQPixmap pixmap = *(tb->tqparentWidget()->backgroundPixmap()); TQPixmap pixmap = *(tb->parentWidget()->backgroundPixmap());
p->drawTiledPixmap( r, pixmap, tb->pos() ); p->drawTiledPixmap( r, pixmap, tb->pos() );
} }
} }
@ -3458,9 +3458,9 @@ bool PlastikStyle::eventFilter(TQObject *obj, TQEvent *ev)
if ( ::tqqt_cast<TQLineEdit*>(obj) ) { if ( ::tqqt_cast<TQLineEdit*>(obj) ) {
TQWidget* widget = TQT_TQWIDGET(obj); TQWidget* widget = TQT_TQWIDGET(obj);
if ( ::tqqt_cast<TQSpinWidget*>(widget->tqparentWidget()) ) if ( ::tqqt_cast<TQSpinWidget*>(widget->parentWidget()) )
{ {
TQWidget* spinbox = widget->tqparentWidget(); TQWidget* spinbox = widget->parentWidget();
if ((ev->type() == TQEvent::FocusIn) || (ev->type() == TQEvent::FocusOut)) if ((ev->type() == TQEvent::FocusIn) || (ev->type() == TQEvent::FocusOut))
{ {
spinbox->tqrepaint(false); spinbox->tqrepaint(false);

@ -211,7 +211,7 @@ KDialogBase* KFind::findNextDialog( bool create )
{ {
if ( !m_dialog && create ) if ( !m_dialog && create )
{ {
m_dialog = new KFindNextDialog( m_pattern, tqparentWidget() ); m_dialog = new KFindNextDialog( m_pattern, parentWidget() );
connect( m_dialog, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT( slotFindNext() ) ); connect( m_dialog, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT( slotFindNext() ) );
connect( m_dialog, TQT_SIGNAL( finished() ), this, TQT_SLOT( slotDialogClosed() ) ); connect( m_dialog, TQT_SIGNAL( finished() ), this, TQT_SLOT( slotDialogClosed() ) );
} }
@ -704,7 +704,7 @@ TQWidget* KFind::dialogsParent() const
// If the find dialog is still up, it should get the focus when closing a message box // If the find dialog is still up, it should get the focus when closing a message box
// Otherwise, maybe the "find next?" dialog is up // Otherwise, maybe the "find next?" dialog is up
// Otherwise, the "view" is the parent. // Otherwise, the "view" is the parent.
return d->findDialog ? (TQWidget*)d->findDialog : ( m_dialog ? m_dialog : tqparentWidget() ); return d->findDialog ? (TQWidget*)d->findDialog : ( m_dialog ? m_dialog : parentWidget() );
} }
#include "kfind.moc" #include "kfind.moc"

@ -389,7 +389,7 @@ signals:
protected: protected:
TQWidget* tqparentWidget() const { return (TQWidget *)parent(); } TQWidget* parentWidget() const { return (TQWidget *)parent(); }
TQWidget* dialogsParent() const; TQWidget* dialogsParent() const;
protected slots: protected slots:

@ -445,13 +445,13 @@ void KMultiTabBarButton::setStyle(KMultiTabBar::KMultiTabBarStyle style)
void KMultiTabBarButton::hideEvent( TQHideEvent* he) { void KMultiTabBarButton::hideEvent( TQHideEvent* he) {
TQPushButton::hideEvent(he); TQPushButton::hideEvent(he);
KMultiTabBar *tb=tqt_dynamic_cast<KMultiTabBar*>(tqparentWidget()); KMultiTabBar *tb=tqt_dynamic_cast<KMultiTabBar*>(parentWidget());
if (tb) tb->updateSeparator(); if (tb) tb->updateSeparator();
} }
void KMultiTabBarButton::showEvent( TQShowEvent* he) { void KMultiTabBarButton::showEvent( TQShowEvent* he) {
TQPushButton::showEvent(he); TQPushButton::showEvent(he);
KMultiTabBar *tb=tqt_dynamic_cast<KMultiTabBar*>(tqparentWidget()); KMultiTabBar *tb=tqt_dynamic_cast<KMultiTabBar*>(parentWidget());
if (tb) tb->updateSeparator(); if (tb) tb->updateSeparator();
} }

@ -101,7 +101,7 @@ KPluginListViewToolTip::KPluginListViewToolTip( TQWidget *parent, KListView *lv
void KPluginListViewToolTip::maybeTip( const TQPoint &pos ) void KPluginListViewToolTip::maybeTip( const TQPoint &pos )
{ {
if ( !tqparentWidget() || !m_listView ) if ( !parentWidget() || !m_listView )
return; return;
KPluginInfoLVI *item = dynamic_cast<KPluginInfoLVI *>( m_listView->itemAt( pos ) ); KPluginInfoLVI *item = dynamic_cast<KPluginInfoLVI *>( m_listView->itemAt( pos ) );

@ -90,7 +90,7 @@ KReplaceNextDialog* KReplace::dialog()
{ {
if ( !m_dialog ) if ( !m_dialog )
{ {
m_dialog = new KReplaceNextDialog( tqparentWidget() ); m_dialog = new KReplaceNextDialog( parentWidget() );
connect( m_dialog, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT( slotReplaceAll() ) ); connect( m_dialog, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT( slotReplaceAll() ) );
connect( m_dialog, TQT_SIGNAL( user2Clicked() ), this, TQT_SLOT( slotSkip() ) ); connect( m_dialog, TQT_SIGNAL( user2Clicked() ), this, TQT_SLOT( slotSkip() ) );
connect( m_dialog, TQT_SIGNAL( user3Clicked() ), this, TQT_SLOT( slotReplace() ) ); connect( m_dialog, TQT_SIGNAL( user3Clicked() ), this, TQT_SLOT( slotReplace() ) );
@ -102,9 +102,9 @@ KReplaceNextDialog* KReplace::dialog()
void KReplace::displayFinalDialog() const void KReplace::displayFinalDialog() const
{ {
if ( !m_replacements ) if ( !m_replacements )
KMessageBox::information(tqparentWidget(), i18n("No text was replaced.")); KMessageBox::information(parentWidget(), i18n("No text was replaced."));
else else
KMessageBox::information(tqparentWidget(), i18n("1 replacement done.", "%n replacements done.", m_replacements ) ); KMessageBox::information(parentWidget(), i18n("1 replacement done.", "%n replacements done.", m_replacements ) );
} }
KFind::Result KReplace::replace() KFind::Result KReplace::replace()
@ -316,7 +316,7 @@ bool KReplace::shouldRestart( bool forceAsking, bool showNumMatches ) const
i18n("Do you want to restart search from the end?") i18n("Do you want to restart search from the end?")
: i18n("Do you want to restart search at the beginning?"); : i18n("Do you want to restart search at the beginning?");
int ret = KMessageBox::questionYesNo( tqparentWidget(), message, TQString::null, i18n("Restart"), i18n("Stop") ); int ret = KMessageBox::questionYesNo( parentWidget(), message, TQString::null, i18n("Restart"), i18n("Stop") );
return( ret == KMessageBox::Yes ); return( ret == KMessageBox::Yes );
} }

Loading…
Cancel
Save