Restored qt_cast()

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

@ -159,7 +159,7 @@ inline BytesEditInterface *bytesEditInterface( T *t )
if( !t ) if( !t )
return 0; return 0;
return static_cast<BytesEditInterface*>( t->tqqt_cast("KHE::BytesEditInterface") ); return static_cast<BytesEditInterface*>( t->qt_cast("KHE::BytesEditInterface") );
} }
/** tries to create an instance of a hexedit widget for arrays of chars (char[]) /** tries to create an instance of a hexedit widget for arrays of chars (char[])
@ -177,37 +177,37 @@ inline BytesEditInterface *bytesEditInterface( T *t )
* // is e.g. kdeutils (incl. khexedit2) installed, so a widget could be found and created? * // is e.g. kdeutils (incl. khexedit2) installed, so a widget could be found and created?
* if( BytesEditWidget ) * if( BytesEditWidget )
* { * {
*   // fetch the editor interface * <EFBFBD> // fetch the editor interface
*   KHE::BytesEditInterface *BytesEdit = KHE::bytesEditInterface( BytesEditWidget ); * <EFBFBD> KHE::BytesEditInterface *BytesEdit = KHE::bytesEditInterface( BytesEditWidget );
*   Q_ASSERT( BytesEdit ); // This should not fail! * <EFBFBD> Q_ASSERT( BytesEdit ); // This should not fail!
* *
*   // now use the editor. * <EFBFBD> // now use the editor.
*   BytesEdit->setData( Buffer, BufferSize, -1 ); * <EFBFBD> BytesEdit->setData( Buffer, BufferSize, -1 );
*   BytesEdit->setMaxDataSize( BufferSize ); * <EFBFBD> BytesEdit->setMaxDataSize( BufferSize );
*   BytesEdit->setReadOnly( false ); * <EFBFBD> BytesEdit->setReadOnly( false );
*   BytesEdit->setAutoDelete( true ); * <EFBFBD> BytesEdit->setAutoDelete( true );
* *
*   KHE::ValueColumnInterface *ValueColumn = KHE::valueColumnInterface( BytesEditWidget ); * <EFBFBD> KHE::ValueColumnInterface *ValueColumn = KHE::valueColumnInterface( BytesEditWidget );
*   if( ValueColumn ) * <EFBFBD> if( ValueColumn )
*   { * <EFBFBD> {
*     ValueColumn->setCoding( KHE::ValueColumnInterface::BinaryCoding ); * <EFBFBD> <EFBFBD> ValueColumn->setCoding( KHE::ValueColumnInterface::BinaryCoding );
*     ValueColumn->setByteSpacingWidth( 2 ); * <EFBFBD> <EFBFBD> ValueColumn->setByteSpacingWidth( 2 );
*     ValueColumn->setNoOfGroupedBytes( 4 ); * <EFBFBD> <EFBFBD> ValueColumn->setNoOfGroupedBytes( 4 );
*     ValueColumn->setGroupSpacingWidth( 12 ); * <EFBFBD> <EFBFBD> ValueColumn->setGroupSpacingWidth( 12 );
*   } * <EFBFBD> }
* *
*   KHE::CharColumnInterface *CharColumn = KHE::charColumnInterface( BytesEditWidget ); * <EFBFBD> KHE::CharColumnInterface *CharColumn = KHE::charColumnInterface( BytesEditWidget );
*   if( CharColumn ) * <EFBFBD> if( CharColumn )
*   { * <EFBFBD> {
*     CharColumn->setShowUnprintable( false ); * <EFBFBD> <EFBFBD> CharColumn->setShowUnprintable( false );
*     CharColumn->setSubstituteChar( '*' ); * <EFBFBD> <EFBFBD> CharColumn->setSubstituteChar( '*' );
*   } * <EFBFBD> }
*   KHE::ClipboardInterface *Clipboard = KHE::clipboardInterface( BytesEditWidget ); * <EFBFBD> KHE::ClipboardInterface *Clipboard = KHE::clipboardInterface( BytesEditWidget );
*   if( Clipboard ) * <EFBFBD> if( Clipboard )
*   { * <EFBFBD> {
*     // Yes, use BytesEditWidget, not Clipboard, because that's the TQObject, indeed hacky... * <EFBFBD> <EFBFBD> // Yes, use BytesEditWidget, not Clipboard, because that's the TQObject, indeed hacky...
*     connect( BytesEditWidget, TQT_SIGNAL(copyAvailable(bool)), this, TQT_SLOT(offerCopy(bool)) ); * <EFBFBD> <EFBFBD> connect( BytesEditWidget, TQT_SIGNAL(copyAvailable(bool)), this, TQT_SLOT(offerCopy(bool)) );
*   } * <EFBFBD> }
* } * }
* \endcode * \endcode
* *

@ -97,7 +97,7 @@ CharColumnInterface *charColumnInterface( T *t )
if( !t ) if( !t )
return 0; return 0;
return static_cast<CharColumnInterface*>( t->tqqt_cast("KHE::CharColumnInterface") ); return static_cast<CharColumnInterface*>( t->qt_cast("KHE::CharColumnInterface") );
} }
} }

@ -34,8 +34,8 @@ namespace KHE
* KHE::ClipboardInterface *Clipboard = KHE::clipboardInterface( BytesEditWidget ); * KHE::ClipboardInterface *Clipboard = KHE::clipboardInterface( BytesEditWidget );
* if( Clipboard ) * if( Clipboard )
* { * {
*   // Yes, use BytesEditWidget, not Clipboard, because that's the TQObject, indeed hacky... * <EFBFBD> // Yes, use BytesEditWidget, not Clipboard, because that's the TQObject, indeed hacky...
*   connect( BytesEditWidget, TQT_SIGNAL(copyAvailable(bool)), this, TQT_SLOT(offerCopy(bool)) ); * <EFBFBD> connect( BytesEditWidget, TQT_SIGNAL(copyAvailable(bool)), this, TQT_SLOT(offerCopy(bool)) );
* } * }
* \endcode * \endcode
* *
@ -78,7 +78,7 @@ ClipboardInterface *clipboardInterface( T *t )
if( !t ) if( !t )
return 0; return 0;
return static_cast<ClipboardInterface*>( t->tqqt_cast("KHE::ClipboardInterface") ); return static_cast<ClipboardInterface*>( t->qt_cast("KHE::ClipboardInterface") );
} }
} }

@ -162,7 +162,7 @@ ValueColumnInterface *valueColumnInterface( T *t )
if( !t ) if( !t )
return 0; return 0;
return static_cast<ValueColumnInterface*>( t->tqqt_cast("KHE::ValueColumnInterface") ); return static_cast<ValueColumnInterface*>( t->qt_cast("KHE::ValueColumnInterface") );
} }
} }

@ -71,7 +71,7 @@ ZoomInterface *zoomInterface( T *t )
if( !t ) if( !t )
return 0; return 0;
return static_cast<ZoomInterface*>( t->tqqt_cast("KHE::ZoomInterface") ); return static_cast<ZoomInterface*>( t->qt_cast("KHE::ZoomInterface") );
} }
} }

@ -25,7 +25,7 @@
* TQDialog *editorDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( "KRegExpEditor/KRegExpEditor" ); * TQDialog *editorDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( "KRegExpEditor/KRegExpEditor" );
* if ( editorDialog ) { * if ( editorDialog ) {
* // kdeutils was installed, so the dialog was found fetch the editor interface * // kdeutils was installed, so the dialog was found fetch the editor interface
* KRegExpEditorInterface *editor = static_cast<KRegExpEditorInterface *>( editorDialog->tqqt_cast( "KRegExpEditorInterface" ) ); * KRegExpEditorInterface *editor = static_cast<KRegExpEditorInterface *>( editorDialog->qt_cast( "KRegExpEditorInterface" ) );
* Q_ASSERT( editor ); // This should not fail! * Q_ASSERT( editor ); // This should not fail!
* *
* // now use the editor. * // now use the editor.
@ -53,7 +53,7 @@
* "KRegExpEditor/KRegExpEditor", TQString::null, parent ); * "KRegExpEditor/KRegExpEditor", TQString::null, parent );
* if ( editorWidget ) { * if ( editorWidget ) {
* // kdeutils was installed, so the widget was found fetch the editor interface * // kdeutils was installed, so the widget was found fetch the editor interface
* KRegExpEditorInterface *editor = static_cast<KRegExpEditorInterface *>( editorWidget->tqqt_cast( "KRegExpEditorInterface" ) ); * KRegExpEditorInterface *editor = static_cast<KRegExpEditorInterface *>( editorWidget->qt_cast( "KRegExpEditorInterface" ) );
* Q_ASSERT( editor ); // This should not fail! * Q_ASSERT( editor ); // This should not fail!
* *
* // now use the editor. * // now use the editor.

@ -70,5 +70,5 @@ BlockSelectionInterface *KTextEditor::blockSelectionInterface (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<BlockSelectionInterface*>(doc->tqqt_cast("KTextEditor::BlockSelectionInterface")); return static_cast<BlockSelectionInterface*>(doc->qt_cast("KTextEditor::BlockSelectionInterface"));
} }

@ -52,5 +52,5 @@ ClipboardInterface *KTextEditor::clipboardInterface (View *view)
if (!view) if (!view)
return 0; return 0;
return static_cast<ClipboardInterface*>(view->tqqt_cast("KTextEditor::ClipboardInterface")); return static_cast<ClipboardInterface*>(view->qt_cast("KTextEditor::ClipboardInterface"));
} }

@ -45,7 +45,7 @@ CodeCompletionInterface *KTextEditor::codeCompletionInterface (View *view)
if (!view) if (!view)
return 0; return 0;
return static_cast<CodeCompletionInterface*>(view->tqqt_cast("KTextEditor::CodeCompletionInterface")); return static_cast<CodeCompletionInterface*>(view->qt_cast("KTextEditor::CodeCompletionInterface"));
} }

@ -67,7 +67,7 @@ ConfigInterface *KTextEditor::configInterface (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<ConfigInterface*>(doc->tqqt_cast("KTextEditor::ConfigInterface")); return static_cast<ConfigInterface*>(doc->qt_cast("KTextEditor::ConfigInterface"));
} }
ConfigInterface *KTextEditor::configInterface (Plugin *plugin) ConfigInterface *KTextEditor::configInterface (Plugin *plugin)
@ -75,5 +75,5 @@ ConfigInterface *KTextEditor::configInterface (Plugin *plugin)
if (!plugin) if (!plugin)
return 0; return 0;
return static_cast<ConfigInterface*>(plugin->tqqt_cast("KTextEditor::ConfigInterface")); return static_cast<ConfigInterface*>(plugin->qt_cast("KTextEditor::ConfigInterface"));
} }

@ -72,7 +72,7 @@ ConfigInterfaceExtension *KTextEditor::configInterfaceExtension (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<ConfigInterfaceExtension*>(doc->tqqt_cast("KTextEditor::ConfigInterfaceExtension")); return static_cast<ConfigInterfaceExtension*>(doc->qt_cast("KTextEditor::ConfigInterfaceExtension"));
} }
ConfigInterfaceExtension *KTextEditor::configInterfaceExtension (Plugin *plugin) ConfigInterfaceExtension *KTextEditor::configInterfaceExtension (Plugin *plugin)
@ -80,5 +80,5 @@ ConfigInterfaceExtension *KTextEditor::configInterfaceExtension (Plugin *plugin)
if (!plugin) if (!plugin)
return 0; return 0;
return static_cast<ConfigInterfaceExtension*>(plugin->tqqt_cast("KTextEditor::ConfigInterfaceExtension")); return static_cast<ConfigInterfaceExtension*>(plugin->qt_cast("KTextEditor::ConfigInterfaceExtension"));
} }

@ -65,5 +65,5 @@ CursorInterface *KTextEditor::cursorInterface (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<CursorInterface*>(doc->tqqt_cast("KTextEditor::CursorInterface")); return static_cast<CursorInterface*>(doc->qt_cast("KTextEditor::CursorInterface"));
} }

@ -65,5 +65,5 @@ DynWordWrapInterface *KTextEditor::dynWordWrapInterface (View *view)
if (!view) if (!view)
return 0; return 0;
return static_cast<DynWordWrapInterface*>(view->tqqt_cast("KTextEditor::DynWordWrapInterface")); return static_cast<DynWordWrapInterface*>(view->qt_cast("KTextEditor::DynWordWrapInterface"));
} }

@ -52,6 +52,6 @@ EditInterface *KTextEditor::editInterface (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<EditInterface*>(doc->tqqt_cast("KTextEditor::EditInterface")); return static_cast<EditInterface*>(doc->qt_cast("KTextEditor::EditInterface"));
} }

@ -45,6 +45,6 @@ EditInterfaceExt *KTextEditor::editInterfaceExt (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<EditInterfaceExt*>(doc->tqqt_cast("KTextEditor::EditInterfaceExt")); return static_cast<EditInterfaceExt*>(doc->qt_cast("KTextEditor::EditInterfaceExt"));
} }

@ -72,5 +72,5 @@ EncodingInterface *KTextEditor::encodingInterface (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<EncodingInterface*>(doc->tqqt_cast("KTextEditor::EncodingInterface")); return static_cast<EncodingInterface*>(doc->qt_cast("KTextEditor::EncodingInterface"));
} }

@ -65,5 +65,5 @@ HighlightingInterface *KTextEditor::highlightingInterface (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<HighlightingInterface*>(doc->tqqt_cast("KTextEditor::HighlightingInterface")); return static_cast<HighlightingInterface*>(doc->qt_cast("KTextEditor::HighlightingInterface"));
} }

@ -226,6 +226,6 @@ PluginViewInterface *KTextEditor::pluginViewInterface (Plugin *plugin)
if (!plugin) if (!plugin)
return 0; return 0;
return static_cast<PluginViewInterface*>(plugin->tqqt_cast("KTextEditor::PluginViewInterface")); return static_cast<PluginViewInterface*>(plugin->qt_cast("KTextEditor::PluginViewInterface"));
} }

@ -65,7 +65,7 @@ MarkInterface *KTextEditor::markInterface (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<MarkInterface*>(doc->tqqt_cast("KTextEditor::MarkInterface")); return static_cast<MarkInterface*>(doc->qt_cast("KTextEditor::MarkInterface"));
} }
int MarkInterface::reservedMarkersCount() int MarkInterface::reservedMarkersCount()

@ -65,5 +65,5 @@ MarkInterfaceExtension *KTextEditor::markInterfaceExtension (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<MarkInterfaceExtension*>(doc->tqqt_cast("KTextEditor::MarkInterfaceExtension")); return static_cast<MarkInterfaceExtension*>(doc->qt_cast("KTextEditor::MarkInterfaceExtension"));
} }

@ -65,5 +65,5 @@ PopupMenuInterface *KTextEditor::popupMenuInterface (View *view)
if (!view) if (!view)
return 0; return 0;
return static_cast<PopupMenuInterface*>(view->tqqt_cast("KTextEditor::PopupMenuInterface")); return static_cast<PopupMenuInterface*>(view->qt_cast("KTextEditor::PopupMenuInterface"));
} }

@ -70,5 +70,5 @@ PrintInterface *KTextEditor::printInterface (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<PrintInterface*>(doc->tqqt_cast("KTextEditor::PrintInterface")); return static_cast<PrintInterface*>(doc->qt_cast("KTextEditor::PrintInterface"));
} }

@ -51,5 +51,5 @@ SearchInterface *KTextEditor::searchInterface (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<SearchInterface*>(doc->tqqt_cast("KTextEditor::SearchInterface")); return static_cast<SearchInterface*>(doc->qt_cast("KTextEditor::SearchInterface"));
} }

@ -52,7 +52,7 @@ SelectionInterface *KTextEditor::selectionInterface (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<SelectionInterface*>(doc->tqqt_cast("KTextEditor::SelectionInterface")); return static_cast<SelectionInterface*>(doc->qt_cast("KTextEditor::SelectionInterface"));
} }
SelectionInterface *KTextEditor::selectionInterface (View *view) SelectionInterface *KTextEditor::selectionInterface (View *view)
@ -60,6 +60,6 @@ SelectionInterface *KTextEditor::selectionInterface (View *view)
if (!view) if (!view)
return 0; return 0;
return static_cast<SelectionInterface*>(view->tqqt_cast("KTextEditor::SelectionInterface")); return static_cast<SelectionInterface*>(view->qt_cast("KTextEditor::SelectionInterface"));
} }

@ -68,7 +68,7 @@ SelectionInterfaceExt *KTextEditor::selectionInterfaceExt (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<SelectionInterfaceExt*>(doc->tqqt_cast("KTextEditor::SelectionInterfaceExt")); return static_cast<SelectionInterfaceExt*>(doc->qt_cast("KTextEditor::SelectionInterfaceExt"));
} }
SelectionInterfaceExt *KTextEditor::selectionInterfaceExt (View *view) SelectionInterfaceExt *KTextEditor::selectionInterfaceExt (View *view)
@ -76,7 +76,7 @@ SelectionInterfaceExt *KTextEditor::selectionInterfaceExt (View *view)
if (!view) if (!view)
return 0; return 0;
return static_cast<SelectionInterfaceExt*>(view->tqqt_cast("KTextEditor::SelectionInterfaceExt")); return static_cast<SelectionInterfaceExt*>(view->qt_cast("KTextEditor::SelectionInterfaceExt"));
} }
//END KTextEditor::SelectionInterfaceExt //END KTextEditor::SelectionInterfaceExt

@ -68,7 +68,7 @@ SessionConfigInterface *KTextEditor::sessionConfigInterface (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<SessionConfigInterface*>(doc->tqqt_cast("KTextEditor::SessionConfigInterface")); return static_cast<SessionConfigInterface*>(doc->qt_cast("KTextEditor::SessionConfigInterface"));
} }
SessionConfigInterface *KTextEditor::sessionConfigInterface (View *view) SessionConfigInterface *KTextEditor::sessionConfigInterface (View *view)
@ -76,7 +76,7 @@ SessionConfigInterface *KTextEditor::sessionConfigInterface (View *view)
if (!view) if (!view)
return 0; return 0;
return static_cast<SessionConfigInterface*>(view->tqqt_cast("KTextEditor::SessionConfigInterface")); return static_cast<SessionConfigInterface*>(view->qt_cast("KTextEditor::SessionConfigInterface"));
} }
SessionConfigInterface *KTextEditor::sessionConfigInterface (Plugin *plugin) SessionConfigInterface *KTextEditor::sessionConfigInterface (Plugin *plugin)
@ -84,5 +84,5 @@ SessionConfigInterface *KTextEditor::sessionConfigInterface (Plugin *plugin)
if (!plugin) if (!plugin)
return 0; return 0;
return static_cast<SessionConfigInterface*>(plugin->tqqt_cast("KTextEditor::SessionConfigInterface")); return static_cast<SessionConfigInterface*>(plugin->qt_cast("KTextEditor::SessionConfigInterface"));
} }

@ -192,6 +192,6 @@ TemplateInterface *KTextEditor::templateInterface ( KTextEditor::Document *doc )
if ( !doc ) if ( !doc )
return 0; return 0;
return static_cast<TemplateInterface*>( doc->tqqt_cast( "KTextEditor::TemplateInterface" ) ); return static_cast<TemplateInterface*>( doc->qt_cast( "KTextEditor::TemplateInterface" ) );
} }

@ -58,7 +58,7 @@ TextHintInterface *textHintInterface (View *view)
if (!view) if (!view)
return 0; return 0;
return static_cast<TextHintInterface*>(view->tqqt_cast("KTextEditor::TextHintInterface")); return static_cast<TextHintInterface*>(view->qt_cast("KTextEditor::TextHintInterface"));
} }

@ -70,5 +70,5 @@ UndoInterface *KTextEditor::undoInterface (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<UndoInterface*>(doc->tqqt_cast("KTextEditor::UndoInterface")); return static_cast<UndoInterface*>(doc->qt_cast("KTextEditor::UndoInterface"));
} }

@ -44,5 +44,5 @@ VariableInterface *KTextEditor::variableInterface( Document *doc )
if ( ! doc ) if ( ! doc )
return 0; return 0;
return static_cast<VariableInterface*>(doc->tqqt_cast("KTextEditor::VariableInterface")); return static_cast<VariableInterface*>(doc->qt_cast("KTextEditor::VariableInterface"));
} }

@ -70,5 +70,5 @@ ViewCursorInterface *KTextEditor::viewCursorInterface (View *view)
if (!view) if (!view)
return 0; return 0;
return static_cast<ViewCursorInterface*>(view->tqqt_cast("KTextEditor::ViewCursorInterface")); return static_cast<ViewCursorInterface*>(view->qt_cast("KTextEditor::ViewCursorInterface"));
} }

@ -72,5 +72,5 @@ ViewStatusMsgInterface *KTextEditor::viewStatusMsgInterface (View *view)
if (!view) if (!view)
return 0; return 0;
return static_cast<ViewStatusMsgInterface*>(view->tqqt_cast("KTextEditor::ViewStatusMsgInterface")); return static_cast<ViewStatusMsgInterface*>(view->qt_cast("KTextEditor::ViewStatusMsgInterface"));
} }

@ -66,5 +66,5 @@ WordWrapInterface *KTextEditor::wordWrapInterface (Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<WordWrapInterface*>(doc->tqqt_cast("KTextEditor::WordWrapInterface")); return static_cast<WordWrapInterface*>(doc->qt_cast("KTextEditor::WordWrapInterface"));
} }

@ -60,7 +60,7 @@ class TQStrList;
* setCentralWidget( p->widget() ); * setCentralWidget( p->widget() );
* *
* // cast the part to the TerminalInterface.. * // cast the part to the TerminalInterface..
* TerminalInterface* t = static_cast<TerminalInterface*>( p->tqqt_cast( "TerminalInterface" ) ); * TerminalInterface* t = static_cast<TerminalInterface*>( p->qt_cast( "TerminalInterface" ) );
* if( ! t ) * if( ! t )
* { * {
* // This probably happens because the konsole that is installed * // This probably happens because the konsole that is installed

@ -20,7 +20,7 @@ Win::Win()
KParts::Part* p = static_cast<KParts::Part*>( factory->create( this, "tralala", "TQObject", "KParts::ReadOnlyPart" ) ); KParts::Part* p = static_cast<KParts::Part*>( factory->create( this, "tralala", "TQObject", "KParts::ReadOnlyPart" ) );
setCentralWidget( p->widget() ); setCentralWidget( p->widget() );
TerminalInterface* t = static_cast<TerminalInterface*>( p->tqqt_cast( "TerminalInterface" ) ); TerminalInterface* t = static_cast<TerminalInterface*>( p->qt_cast( "TerminalInterface" ) );
t->showShellInDir( TQDir::home().path() ); t->showShellInDir( TQDir::home().path() );
// TQStrList l; // TQStrList l;
// l.append( "python" ); // l.append( "python" );
@ -46,11 +46,11 @@ int main( int argc, char** argv )
void Win::pythonExited() void Win::pythonExited()
{ {
std::cerr << "hee, " << p << std::endl; std::cerr << "hee, " << p << std::endl;
std::cerr << ( p->tqqt_cast( "TerminalInterface" ) ) << std::endl; std::cerr << ( p->qt_cast( "TerminalInterface" ) ) << std::endl;
// KMessageBox::sorry( this, TQString::fromUtf8( "Exited, status was %1" ).arg( status ) ); // KMessageBox::sorry( this, TQString::fromUtf8( "Exited, status was %1" ).arg( status ) );
disconnect(p, TQT_SIGNAL( processExited() ), disconnect(p, TQT_SIGNAL( processExited() ),
this, TQT_SLOT( pythonExited() )); this, TQT_SLOT( pythonExited() ));
TerminalInterface* t = static_cast<TerminalInterface*>( p->tqqt_cast( "TerminalInterface" ) ); TerminalInterface* t = static_cast<TerminalInterface*>( p->qt_cast( "TerminalInterface" ) );
TQStrList l; TQStrList l;
l.append( "echo" ); l.append( "echo" );
l.append( "hello world" ); l.append( "hello world" );

@ -100,7 +100,7 @@ Document *document (KTextEditor::Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<Document*>(doc->tqqt_cast("Kate::Document")); return static_cast<Document*>(doc->qt_cast("Kate::Document"));
} }
DocumentExt *documentExt (KTextEditor::Document *doc) DocumentExt *documentExt (KTextEditor::Document *doc)
@ -108,7 +108,7 @@ DocumentExt *documentExt (KTextEditor::Document *doc)
if (!doc) if (!doc)
return 0; return 0;
return static_cast<DocumentExt*>(doc->tqqt_cast("Kate::DocumentExt")); return static_cast<DocumentExt*>(doc->qt_cast("Kate::DocumentExt"));
} }
Document *createDocument ( TQObject *parent, const char *name ) Document *createDocument ( TQObject *parent, const char *name )
@ -121,7 +121,7 @@ View *view (KTextEditor::View *view)
if (!view) if (!view)
return 0; return 0;
return static_cast<View*>(view->tqqt_cast("Kate::View")); return static_cast<View*>(view->qt_cast("Kate::View"));
} }
} }

@ -1,5 +1,5 @@
/* This file is part of the KDE project /* This file is part of the KDE project
Copyright (C) 2002 Matthias Hölzer-Klüpfel <mhk@kde.org> Copyright (C) 2002 Matthias H<EFBFBD>lzer-Kl<EFBFBD>pfel <mhk@kde.org>
This library is free software; you can redistribute it and/or This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public modify it under the terms of the GNU Library General Public
@ -320,7 +320,7 @@ void KAcceleratorManagerPrivate::manageWidget(TQWidget *w, Item *item)
if (dynamic_cast<TQComboBox*>(w) || dynamic_cast<TQLineEdit*>(w) || if (dynamic_cast<TQComboBox*>(w) || dynamic_cast<TQLineEdit*>(w) ||
dynamic_cast<TQTextEdit*>(w) || dynamic_cast<TQTextView*>(w) || dynamic_cast<TQTextEdit*>(w) || dynamic_cast<TQTextView*>(w) ||
dynamic_cast<TQSpinBox*>(w) || w->tqqt_cast( "KMultiTabBar" )) dynamic_cast<TQSpinBox*>(w) || w->qt_cast( "KMultiTabBar" ))
return; return;
// now treat 'ordinary' widgets // now treat 'ordinary' widgets
@ -661,7 +661,7 @@ void KAccelString::dump()
The algorithm has some advantages: The algorithm has some advantages:
* it favors 'nice' accelerators (first characters in a word, etc.) * it favors 'nice' accelerators (first characters in a word, etc.)
* it is quite fast, O(N²) * it is quite fast, O(N<EFBFBD>)
* it is easy to understand :-) * it is easy to understand :-)
The disadvantages: The disadvantages:

@ -1262,7 +1262,7 @@ void KExtendedSocket::cancelAsyncConnect()
d->status = lookupDone; d->status = lookupDone;
} }
bool KExtendedSocket::open(int mode) bool KExtendedSocket::open(OpenMode mode)
{ {
if (mode != IO_Raw | IO_ReadWrite) if (mode != IO_Raw | IO_ReadWrite)
return false; // invalid open mode return false; // invalid open mode

@ -627,7 +627,7 @@ public:
* @return true if successful, false when an error occurred or the most was * @return true if successful, false when an error occurred or the most was
* not correct * not correct
*/ */
virtual bool open(int mode = IO_Raw | IO_ReadWrite); virtual bool open(OpenMode mode = (OpenMode)(IO_Raw | IO_ReadWrite));
/** /**
* Closes the socket. If we have data still in the write buffer yet to be * Closes the socket. If we have data still in the write buffer yet to be

@ -37,7 +37,7 @@ KQIODeviceGZip::~KQIODeviceGZip(void)
close(); close();
} }
bool KQIODeviceGZip::open(int mode) bool KQIODeviceGZip::open(OpenMode mode)
{ {
if (m_gzfile) if (m_gzfile)
close(); // One file is already open, so close it first. close(); // One file is already open, so close it first.

@ -38,7 +38,7 @@ public:
KQIODeviceGZip(const TQString& filename); KQIODeviceGZip(const TQString& filename);
~KQIODeviceGZip(void); ~KQIODeviceGZip(void);
bool open(int mode); bool open(OpenMode mode);
void close(void); void close(void);
void flush(void); void flush(void);

@ -281,7 +281,7 @@ public:
* *
* You should not call this function; instead, use @ref connect * You should not call this function; instead, use @ref connect
*/ */
virtual inline bool open(int) virtual inline bool open(OpenMode)
{ return connect(); } { return connect(); }
/** /**

@ -667,7 +667,7 @@ KResolver::ErrorCodes KStandardWorker::addUnix()
if (!m_encodedName.isEmpty()) if (!m_encodedName.isEmpty())
return KResolver::AddrFamily; // non local hostname return KResolver::AddrFamily; // non local hostname
if (protocol() || static_cast<const char *>(protocolName())) if (protocol() || !protocolName().isEmpty())
return KResolver::BadFlags; // cannot have Unix sockets with protocols return KResolver::BadFlags; // cannot have Unix sockets with protocols
TQString pathname = serviceName(); TQString pathname = serviceName();

@ -171,7 +171,7 @@ bool KSocketDevice::setSocketOptions(int opts)
return true; // all went well return true; // all went well
} }
bool KSocketDevice::open(int) bool KSocketDevice::open(OpenMode)
{ {
resetError(); resetError();
return false; return false;

@ -142,7 +142,7 @@ public:
/** /**
* Reimplementation from TQIODevice. You should not call this function in sockets. * Reimplementation from TQIODevice. You should not call this function in sockets.
*/ */
virtual bool open(int mode); virtual bool open(OpenMode mode);
/** /**
* Closes the socket. Reimplemented from TQIODevice. * Closes the socket. Reimplemented from TQIODevice.

@ -932,7 +932,7 @@ KDockWidget *KDockWidget::findNearestDockWidget(DockPosition pos)
if (neighbor==this) if (neighbor==this)
return (static_cast<KDockWidget*>(parent()->parent())->findNearestDockWidget(pos)); return (static_cast<KDockWidget*>(parent()->parent())->findNearestDockWidget(pos));
else else
if (neighbor->getWidget() && (neighbor->getWidget()->tqqt_cast("KDockTabGroup"))) if (neighbor->getWidget() && (neighbor->getWidget()->qt_cast("KDockTabGroup")))
return (KDockWidget*)(((KDockTabGroup*)neighbor->getWidget())->page(0)); return (KDockWidget*)(((KDockTabGroup*)neighbor->getWidget())->page(0));
else else
return neighbor; return neighbor;
@ -1238,7 +1238,7 @@ void KDockWidget::setForcedFixedWidth(int w)
setFixedWidth(w); setFixedWidth(w);
if (!parent()) return; if (!parent()) return;
if (parent()->inherits("KDockSplitter")) if (parent()->inherits("KDockSplitter"))
static_cast<KDockSplitter*>(tqparent()->tqqt_cast("KDockSplitter"))->setForcedFixedWidth(this,w); static_cast<KDockSplitter*>(tqparent()->qt_cast("KDockSplitter"))->setForcedFixedWidth(this,w);
} }
void KDockWidget::setForcedFixedHeight(int h) void KDockWidget::setForcedFixedHeight(int h)
@ -1247,7 +1247,7 @@ void KDockWidget::setForcedFixedHeight(int h)
setFixedHeight(h); setFixedHeight(h);
if (!parent()) return; if (!parent()) return;
if (parent()->inherits("KDockSplitter")) if (parent()->inherits("KDockSplitter"))
static_cast<KDockSplitter*>(tqparent()->tqqt_cast("KDockSplitter"))->setForcedFixedHeight(this,h); static_cast<KDockSplitter*>(tqparent()->qt_cast("KDockSplitter"))->setForcedFixedHeight(this,h);
} }
int KDockWidget::forcedFixedWidth() int KDockWidget::forcedFixedWidth()
@ -1270,7 +1270,7 @@ void KDockWidget::restoreFromForcedFixedSize()
setMaximumHeight(32000); setMaximumHeight(32000);
if (!parent()) return; if (!parent()) return;
if (parent()->inherits("KDockSplitter")) if (parent()->inherits("KDockSplitter"))
static_cast<KDockSplitter*>(tqparent()->tqqt_cast("KDockSplitter"))->restoreFromForcedFixedSize(this); static_cast<KDockSplitter*>(tqparent()->qt_cast("KDockSplitter"))->restoreFromForcedFixedSize(this);
} }
void KDockWidget::toDesktop() void KDockWidget::toDesktop()
@ -3180,7 +3180,7 @@ void KDockContainer::activateOverlapMode(int nonOverlapSize) {
if (parentDockWidget() && parentDockWidget()->parent()) { if (parentDockWidget() && parentDockWidget()->parent()) {
kdDebug(282)<<"KDockContainer::activateOverlapMode: recalculating sizes"<<endl; kdDebug(282)<<"KDockContainer::activateOverlapMode: recalculating sizes"<<endl;
KDockSplitter *sp= static_cast<KDockSplitter*>(parentDockWidget()-> KDockSplitter *sp= static_cast<KDockSplitter*>(parentDockWidget()->
tqparent()->tqqt_cast("KDockSplitter")); tqparent()->qt_cast("KDockSplitter"));
if (sp) if (sp)
sp->resizeEvent(0); sp->resizeEvent(0);
} }
@ -3192,7 +3192,7 @@ void KDockContainer::deactivateOverlapMode() {
if (parentDockWidget() && parentDockWidget()->parent()) { if (parentDockWidget() && parentDockWidget()->parent()) {
kdDebug(282)<<"KDockContainer::deactivateOverlapMode: recalculating sizes"<<endl; kdDebug(282)<<"KDockContainer::deactivateOverlapMode: recalculating sizes"<<endl;
KDockSplitter *sp= static_cast<KDockSplitter*>(parentDockWidget()-> KDockSplitter *sp= static_cast<KDockSplitter*>(parentDockWidget()->
tqparent()->tqqt_cast("KDockSplitter")); tqparent()->qt_cast("KDockSplitter"));
if (sp) if (sp)
sp->resizeEvent(0); sp->resizeEvent(0);
} }
@ -3280,7 +3280,7 @@ void KDockContainer::prepareSave(TQStringList &names)
TQWidget *KDockTabGroup::transientTo() { TQWidget *KDockTabGroup::transientTo() {
TQWidget *tT=0; TQWidget *tT=0;
for (int i=0;i<count();i++) { for (int i=0;i<count();i++) {
KDockWidget *dw=static_cast<KDockWidget*>(page(i)->tqqt_cast("KDockWidget")); KDockWidget *dw=static_cast<KDockWidget*>(page(i)->qt_cast("KDockWidget"));
TQWidget *tmp; TQWidget *tmp;
if ((tmp=dw->transientTo())) { if ((tmp=dw->transientTo())) {
if (!tT) tT=tmp; if (!tT) tT=tmp;

@ -101,7 +101,7 @@ DockApplication::DockApplication( const char* name )
l->setBackgroundColor(white); l->setBackgroundColor(white);
l->setMinimumSize(100,100); l->setMinimumSize(100,100);
dock5->setWidget(l); dock5->setWidget(l);
if (l->tqqt_cast("KDockContainer")) qDebug("KDockContainer created for dock 5"); if (l->qt_cast("KDockContainer")) qDebug("KDockContainer created for dock 5");
/*****************************************************/ /*****************************************************/
/*****************************************************/ /*****************************************************/
@ -112,7 +112,7 @@ DockApplication::DockApplication( const char* name )
l->setBackgroundColor(white); l->setBackgroundColor(white);
l->setMinimumSize(100,100); l->setMinimumSize(100,100);
dock6->setWidget(l); dock6->setWidget(l);
if (l->tqqt_cast("KDockContainer")) qDebug("KDockContainer created for dock 6"); if (l->qt_cast("KDockContainer")) qDebug("KDockContainer created for dock 6");
/*****************************************************/ /*****************************************************/

@ -47,7 +47,7 @@ public:
} }
virtual ~KLimitedIODevice() {} virtual ~KLimitedIODevice() {}
virtual bool open( int m ) { virtual bool open( OpenMode m ) {
//kdDebug(7005) << "KLimitedIODevice::open m=" << m << endl; //kdDebug(7005) << "KLimitedIODevice::open m=" << m << endl;
if ( m & IO_ReadOnly ) { if ( m & IO_ReadOnly ) {
/*bool ok = false; /*bool ok = false;

@ -44,6 +44,7 @@ namespace KIO {
class KIO_EXPORT Slave : public KIO::SlaveInterface class KIO_EXPORT Slave : public KIO::SlaveInterface
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
protected: protected:
/** /**

@ -119,7 +119,7 @@ DockContainer::~DockContainer()
it = m_map.begin(); it = m_map.begin();
KDockWidget *w=it.key(); KDockWidget *w=it.key();
if (m_overlapButtons.tqcontains(w)) { if (m_overlapButtons.tqcontains(w)) {
(static_cast<KDockWidgetHeader*>(w->getHeader()->tqqt_cast("KDockWidgetHeader")))->removeButton(m_overlapButtons[w]); (static_cast<KDockWidgetHeader*>(w->getHeader()->qt_cast("KDockWidgetHeader")))->removeButton(m_overlapButtons[w]);
m_overlapButtons.remove(w); m_overlapButtons.remove(w);
} }
m_map.remove(w); m_map.remove(w);
@ -149,7 +149,7 @@ void DockContainer::init()
if ( parentDockWidget() && parentDockWidget()->parent() ) if ( parentDockWidget() && parentDockWidget()->parent() )
{ {
KDockSplitter *sp= static_cast<KDockSplitter*>(parentDockWidget()-> KDockSplitter *sp= static_cast<KDockSplitter*>(parentDockWidget()->
tqparent()->tqqt_cast("KDockSplitter")); tqparent()->qt_cast("KDockSplitter"));
if ( sp ) if ( sp )
sp->setSeparatorPosX( m_separatorPos ); sp->setSeparatorPosX( m_separatorPos );
} }
@ -184,7 +184,7 @@ void DockContainer::insertWidget (KDockWidget *dwdg, TQPixmap pixmap, const TQSt
if (((KDockWidget*)tqparentWidget())->mayBeShow()) if (((KDockWidget*)tqparentWidget())->mayBeShow())
((KDockWidget*)tqparentWidget())->dockBack(); ((KDockWidget*)tqparentWidget())->dockBack();
if (w->getHeader()->tqqt_cast("KDockWidgetHeader")) if (w->getHeader()->qt_cast("KDockWidgetHeader"))
{ {
kdDebug(760)<<"*** KDockWidgetHeader has been found"<<endl; kdDebug(760)<<"*** KDockWidgetHeader has been found"<<endl;
@ -357,7 +357,7 @@ void DockContainer::removeWidget(KDockWidget* dwdg)
m_map.remove(w); m_map.remove(w);
m_revMap.remove(id); m_revMap.remove(id);
if (m_overlapButtons.tqcontains(w)) { if (m_overlapButtons.tqcontains(w)) {
(static_cast<KDockWidgetHeader*>(w->getHeader()->tqqt_cast("KDockWidgetHeader")))->removeButton(m_overlapButtons[w]); (static_cast<KDockWidgetHeader*>(w->getHeader()->qt_cast("KDockWidgetHeader")))->removeButton(m_overlapButtons[w]);
m_overlapButtons.remove(w); m_overlapButtons.remove(w);
} }
KDockContainer::removeWidget(w); KDockContainer::removeWidget(w);
@ -405,7 +405,7 @@ void DockContainer::tabClicked(int t)
} }
m_ws->raiseWidget(t); m_ws->raiseWidget(t);
if (m_ws->widget(t)) { if (m_ws->widget(t)) {
KDockWidget *tmpDw=static_cast<KDockWidget*>(m_ws->widget(t)->tqqt_cast("KDockWidget")); KDockWidget *tmpDw=static_cast<KDockWidget*>(m_ws->widget(t)->qt_cast("KDockWidget"));
if (tmpDw) { if (tmpDw) {
if (tmpDw->getWidget()) tmpDw->getWidget()->setFocus(); if (tmpDw->getWidget()) tmpDw->getWidget()->setFocus();
} else kdDebug(760)<<"Something really weird is going on"<<endl; } else kdDebug(760)<<"Something really weird is going on"<<endl;
@ -423,7 +423,7 @@ void DockContainer::tabClicked(int t)
if ( parentDockWidget() && parentDockWidget()->parent() ) if ( parentDockWidget() && parentDockWidget()->parent() )
{ {
KDockSplitter *sp= static_cast<KDockSplitter*>(parentDockWidget()-> KDockSplitter *sp= static_cast<KDockSplitter*>(parentDockWidget()->
tqparent()->tqqt_cast("KDockSplitter")); tqparent()->qt_cast("KDockSplitter"));
if ( sp ) if ( sp )
m_separatorPos = sp->separatorPos(); m_separatorPos = sp->separatorPos();
} }
@ -476,7 +476,7 @@ void DockContainer::save(KConfig* cfg,const TQString& group_or_prefix)
if ( parentDockWidget() && parentDockWidget()->parent() ) if ( parentDockWidget() && parentDockWidget()->parent() )
{ {
KDockSplitter *sp= static_cast<KDockSplitter*>(parentDockWidget()-> KDockSplitter *sp= static_cast<KDockSplitter*>(parentDockWidget()->
tqparent()->tqqt_cast("KDockSplitter")); tqparent()->qt_cast("KDockSplitter"));
if ( sp ) if ( sp )
cfg->writeEntry( "separatorPosition", m_separatorPos ); cfg->writeEntry( "separatorPosition", m_separatorPos );
} }

@ -202,7 +202,7 @@ void ToggleToolViewAction::anDWChanged()
setChecked(true); setChecked(true);
else if (isChecked() && (m_dw->parentDockTabGroup() && else if (isChecked() && (m_dw->parentDockTabGroup() &&
((static_cast<KDockWidget*>(m_dw->parentDockTabGroup()-> ((static_cast<KDockWidget*>(m_dw->parentDockTabGroup()->
tqparent()->tqqt_cast("KDockWidget")))->mayBeShow()))) tqparent()->qt_cast("KDockWidget")))->mayBeShow())))
setChecked(false); setChecked(false);
} }

@ -311,16 +311,16 @@ void MainWindow::setToolViewStyle(int flag)
{ {
d->m_styleIDEAlMode = flag; // see KMultiTabBar for the first 3 bits d->m_styleIDEAlMode = flag; // see KMultiTabBar for the first 3 bits
DockContainer *tmpL=(DockContainer*) (m_leftContainer->getWidget()->tqqt_cast("KMDI::DockContainer")); DockContainer *tmpL=(DockContainer*) (m_leftContainer->getWidget()->qt_cast("KMDI::DockContainer"));
if (tmpL) tmpL->setStyle(flag); if (tmpL) tmpL->setStyle(flag);
DockContainer *tmpR=(DockContainer*) (m_rightContainer->getWidget()->tqqt_cast("KMDI::DockContainer")); DockContainer *tmpR=(DockContainer*) (m_rightContainer->getWidget()->qt_cast("KMDI::DockContainer"));
if (tmpR) tmpR->setStyle(flag); if (tmpR) tmpR->setStyle(flag);
DockContainer *tmpT=(DockContainer*) (m_topContainer->getWidget()->tqqt_cast("KMDI::DockContainer")); DockContainer *tmpT=(DockContainer*) (m_topContainer->getWidget()->qt_cast("KMDI::DockContainer"));
if (tmpT) tmpT->setStyle(flag); if (tmpT) tmpT->setStyle(flag);
DockContainer *tmpB=(DockContainer*) (m_bottomContainer->getWidget()->tqqt_cast("KMDI::DockContainer")); DockContainer *tmpB=(DockContainer*) (m_bottomContainer->getWidget()->qt_cast("KMDI::DockContainer"));
if (tmpB) tmpB->setStyle(flag); if (tmpB) tmpB->setStyle(flag);
d->m_toolviewStyle = flag; d->m_toolviewStyle = flag;

@ -140,7 +140,7 @@ KMdiDockContainer::~KMdiDockContainer()
KDockWidget *w = it.key(); KDockWidget *w = it.key();
if ( m_overlapButtons.tqcontains( w ) ) if ( m_overlapButtons.tqcontains( w ) )
{ {
( static_cast<KDockWidgetHeader*>( w->getHeader()->tqqt_cast( "KDockWidgetHeader" ) ) )->removeButton( m_overlapButtons[w] ); ( static_cast<KDockWidgetHeader*>( w->getHeader()->qt_cast( "KDockWidgetHeader" ) ) )->removeButton( m_overlapButtons[w] );
m_overlapButtons.remove( w ); m_overlapButtons.remove( w );
} }
m_map.remove( w ); m_map.remove( w );
@ -172,7 +172,7 @@ void KMdiDockContainer::init()
// try to restore splitter size // try to restore splitter size
if ( parentDockWidget() && parentDockWidget()->tqparent() ) if ( parentDockWidget() && parentDockWidget()->tqparent() )
{ {
KDockSplitter * sp = static_cast<KDockSplitter*>( parentDockWidget()->tqparent()->tqqt_cast( "KDockSplitter" ) ); KDockSplitter * sp = static_cast<KDockSplitter*>( parentDockWidget()->tqparent()->qt_cast( "KDockSplitter" ) );
if ( sp ) if ( sp )
sp->setSeparatorPosX( m_separatorPos ); sp->setSeparatorPosX( m_separatorPos );
} }
@ -207,12 +207,12 @@ void KMdiDockContainer::insertWidget ( KDockWidget *dwdg, TQPixmap pixmap, const
if ( ( ( KDockWidget* ) tqparentWidget() ) ->mayBeShow() ) if ( ( ( KDockWidget* ) tqparentWidget() ) ->mayBeShow() )
( ( KDockWidget* ) tqparentWidget() ) ->dockBack(); ( ( KDockWidget* ) tqparentWidget() ) ->dockBack();
if ( w->getHeader()->tqqt_cast( "KDockWidgetHeader" ) ) if ( w->getHeader()->qt_cast( "KDockWidgetHeader" ) )
{ {
kdDebug( 760 ) << k_funcinfo << "The dockwidget we're adding has a header" << endl; kdDebug( 760 ) << k_funcinfo << "The dockwidget we're adding has a header" << endl;
kdDebug( 760 ) << k_funcinfo << "Adding our overlap mode button to it" << endl; kdDebug( 760 ) << k_funcinfo << "Adding our overlap mode button to it" << endl;
KDockWidgetHeader *hdr = static_cast<KDockWidgetHeader*>( w->getHeader()->tqqt_cast( "KDockWidgetHeader" ) ); KDockWidgetHeader *hdr = static_cast<KDockWidgetHeader*>( w->getHeader()->qt_cast( "KDockWidgetHeader" ) );
KDockButton_Private *btn = new KDockButton_Private( hdr, "OverlapButton" ); KDockButton_Private *btn = new KDockButton_Private( hdr, "OverlapButton" );
TQToolTip::add( btn, i18n( "Switch between overlap and side by side mode", "Overlap" ) ); TQToolTip::add( btn, i18n( "Switch between overlap and side by side mode", "Overlap" ) );
@ -272,7 +272,7 @@ bool KMdiDockContainer::eventFilter( TQObject *obj, TQEvent *event )
break; break;
} }
KDockWidgetHeader *hdr = static_cast<KDockWidgetHeader*>( w->getHeader()->tqqt_cast( "KDockWidgetHeader" ) ); KDockWidgetHeader *hdr = static_cast<KDockWidgetHeader*>( w->getHeader()->qt_cast( "KDockWidgetHeader" ) );
if ( !hdr ) if ( !hdr )
{ {
kdDebug(760) << "Wrong header type in KMdiDockContainer::eventFilter" << endl; kdDebug(760) << "Wrong header type in KMdiDockContainer::eventFilter" << endl;
@ -387,7 +387,7 @@ void KMdiDockContainer::removeWidget( KDockWidget* dwdg )
m_revMap.remove( id ); m_revMap.remove( id );
if ( m_overlapButtons.tqcontains( w ) ) if ( m_overlapButtons.tqcontains( w ) )
{ {
( static_cast<KDockWidgetHeader*>( w->getHeader() ->tqqt_cast( "KDockWidgetHeader" ) ) )->removeButton( m_overlapButtons[ w ] ); ( static_cast<KDockWidgetHeader*>( w->getHeader() ->qt_cast( "KDockWidgetHeader" ) ) )->removeButton( m_overlapButtons[ w ] );
m_overlapButtons.remove( w ); m_overlapButtons.remove( w );
} }
KDockContainer::removeWidget( w ); KDockContainer::removeWidget( w );
@ -442,7 +442,7 @@ void KMdiDockContainer::tabClicked( int t )
if ( m_ws->widget( t ) ) if ( m_ws->widget( t ) )
{ {
m_ws->raiseWidget( t ); m_ws->raiseWidget( t );
KDockWidget * tmpDw = static_cast<KDockWidget*>( m_ws->widget( t )->tqqt_cast( "KDockWidget" ) ); KDockWidget * tmpDw = static_cast<KDockWidget*>( m_ws->widget( t )->qt_cast( "KDockWidget" ) );
if ( tmpDw ) if ( tmpDw )
{ {
if ( tmpDw->getWidget() ) if ( tmpDw->getWidget() )
@ -467,7 +467,7 @@ void KMdiDockContainer::tabClicked( int t )
// try save splitter position // try save splitter position
if ( parentDockWidget() && parentDockWidget()->tqparent() ) if ( parentDockWidget() && parentDockWidget()->tqparent() )
{ {
KDockSplitter * sp = static_cast<KDockSplitter*>( parentDockWidget()->tqparent()->tqqt_cast( "KDockSplitter" ) ); KDockSplitter * sp = static_cast<KDockSplitter*>( parentDockWidget()->tqparent()->qt_cast( "KDockSplitter" ) );
if ( sp ) if ( sp )
m_separatorPos = sp->separatorPos(); m_separatorPos = sp->separatorPos();
} }
@ -639,7 +639,7 @@ void KMdiDockContainer::save( KConfig* cfg, const TQString& group_or_prefix )
if ( parentDockWidget() && parentDockWidget() ->tqparent() ) if ( parentDockWidget() && parentDockWidget() ->tqparent() )
{ {
KDockSplitter * sp = static_cast<KDockSplitter*>( parentDockWidget() -> KDockSplitter * sp = static_cast<KDockSplitter*>( parentDockWidget() ->
tqparent() ->tqqt_cast( "KDockSplitter" ) ); tqparent() ->qt_cast( "KDockSplitter" ) );
if ( sp ) if ( sp )
cfg->writeEntry( "separatorPosition", m_separatorPos ); cfg->writeEntry( "separatorPosition", m_separatorPos );
} }

@ -84,7 +84,7 @@ void ToggleToolViewAction::anDWChanged()
setChecked( true ); setChecked( true );
else if ( isChecked() && ( m_dw->parentDockTabGroup() && else if ( isChecked() && ( m_dw->parentDockTabGroup() &&
( ( static_cast<KDockWidget*>( m_dw->parentDockTabGroup() -> ( ( static_cast<KDockWidget*>( m_dw->parentDockTabGroup() ->
tqparent() ->tqqt_cast( "KDockWidget" ) ) ) ->mayBeShow() ) ) ) tqparent() ->qt_cast( "KDockWidget" ) ) ) ->mayBeShow() ) ) )
setChecked( false ); setChecked( false );
} }

@ -1739,28 +1739,28 @@ void KMdiMainFrm::setIDEAlModeStyle( int flags )
d->m_styleIDEAlMode = flags; // see KMultiTabBar for the first 3 bits d->m_styleIDEAlMode = flags; // see KMultiTabBar for the first 3 bits
if ( m_leftContainer ) if ( m_leftContainer )
{ {
KMdiDockContainer * tmpL = ( KMdiDockContainer* ) ( m_leftContainer->getWidget()->tqqt_cast( "KMdiDockContainer" ) ); KMdiDockContainer * tmpL = ( KMdiDockContainer* ) ( m_leftContainer->getWidget()->qt_cast( "KMdiDockContainer" ) );
if ( tmpL ) if ( tmpL )
tmpL->setStyle( flags ); tmpL->setStyle( flags );
} }
if ( m_rightContainer ) if ( m_rightContainer )
{ {
KMdiDockContainer * tmpR = ( KMdiDockContainer* ) ( m_rightContainer->getWidget()->tqqt_cast( "KMdiDockContainer" ) ); KMdiDockContainer * tmpR = ( KMdiDockContainer* ) ( m_rightContainer->getWidget()->qt_cast( "KMdiDockContainer" ) );
if ( tmpR ) if ( tmpR )
tmpR->setStyle( flags ); tmpR->setStyle( flags );
} }
if ( m_topContainer ) if ( m_topContainer )
{ {
KMdiDockContainer * tmpT = ( KMdiDockContainer* ) ( m_topContainer->getWidget()->tqqt_cast( "KMdiDockContainer" ) ); KMdiDockContainer * tmpT = ( KMdiDockContainer* ) ( m_topContainer->getWidget()->qt_cast( "KMdiDockContainer" ) );
if ( tmpT ) if ( tmpT )
tmpT->setStyle( flags ); tmpT->setStyle( flags );
} }
if ( m_bottomContainer ) if ( m_bottomContainer )
{ {
KMdiDockContainer * tmpB = ( KMdiDockContainer* ) ( m_bottomContainer->getWidget()->tqqt_cast( "KMdiDockContainer" ) ); KMdiDockContainer * tmpB = ( KMdiDockContainer* ) ( m_bottomContainer->getWidget()->qt_cast( "KMdiDockContainer" ) );
if ( tmpB ) if ( tmpB )
tmpB->setStyle( flags ); tmpB->setStyle( flags );
} }

@ -68,6 +68,7 @@ class KProcess;
class KUTILS_EXPORT KCModuleProxy : public TQWidget class KUTILS_EXPORT KCModuleProxy : public TQWidget
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
friend class KCModuleProxyRootCommunicatorImpl; friend class KCModuleProxyRootCommunicatorImpl;

@ -358,7 +358,7 @@ void KCMultiDialog::slotAboutToShow(TQWidget *page)
if( ! obj ) if( ! obj )
return; return;
KCModuleProxy * module = ( KCModuleProxy* )obj->tqqt_cast( KCModuleProxy * module = ( KCModuleProxy* )obj->qt_cast(
"KCModuleProxy" ); "KCModuleProxy" );
if( ! module ) if( ! module )
return; return;

@ -429,7 +429,7 @@ void KFindDialog::showPatterns()
if ( d->m_regexpDialog ) if ( d->m_regexpDialog )
{ {
KRegExpEditorInterface *iface = static_cast<KRegExpEditorInterface *>( d->m_regexpDialog->tqqt_cast( "KRegExpEditorInterface" ) ); KRegExpEditorInterface *iface = static_cast<KRegExpEditorInterface *>( d->m_regexpDialog->qt_cast( "KRegExpEditorInterface" ) );
assert( iface ); assert( iface );
iface->setRegExp( pattern() ); iface->setRegExp( pattern() );

@ -696,7 +696,7 @@ void KPluginSelector::defaults()
// tabwidget - defaults() will be called for all of them) // tabwidget - defaults() will be called for all of them)
TQWidget * pluginconfig = d->widgetstack->visibleWidget(); TQWidget * pluginconfig = d->widgetstack->visibleWidget();
KCModuleProxy * kcm = ( KCModuleProxy* )pluginconfig->tqqt_cast( KCModuleProxy * kcm = ( KCModuleProxy* )pluginconfig->qt_cast(
"KCModuleProxy" ); "KCModuleProxy" );
if( kcm ) if( kcm )
{ {

Loading…
Cancel
Save