Rename additional members for tqt3

pull/2/head
Timothy Pearson 12 years ago
parent 0a382195c4
commit 2242eb95a7

@ -115,7 +115,7 @@ void KateConsole::sendInput( const TQString& text )
if (!m_part) return;
TerminalInterface *t = static_cast<TerminalInterface*>( m_part->qt_cast( "TerminalInterface" ) );
TerminalInterface *t = static_cast<TerminalInterface*>( m_part->tqt_cast( "TerminalInterface" ) );
if (!t) return;

@ -35,7 +35,7 @@ DCOPRef KateDocManagerDCOPIface::document (uint n)
if (!doc)
return DCOPRef ();
DCOPObject *obj = static_cast<DCOPObject*>(doc->qt_cast("DCOPObject"));
DCOPObject *obj = static_cast<DCOPObject*>(doc->tqt_cast("DCOPObject"));
if (!obj)
return DCOPRef ();
@ -50,7 +50,7 @@ DCOPRef KateDocManagerDCOPIface::activeDocument ()
if (!doc)
return DCOPRef ();
DCOPObject *obj = static_cast<DCOPObject*>(doc->qt_cast("DCOPObject"));
DCOPObject *obj = static_cast<DCOPObject*>(doc->tqt_cast("DCOPObject"));
if (!obj)
return DCOPRef ();
@ -75,7 +75,7 @@ DCOPRef KateDocManagerDCOPIface::documentWithID (uint id)
if (!doc)
return DCOPRef ();
DCOPObject *obj = static_cast<DCOPObject*>(doc->qt_cast("DCOPObject"));
DCOPObject *obj = static_cast<DCOPObject*>(doc->tqt_cast("DCOPObject"));
if (!obj)
return DCOPRef ();
@ -90,7 +90,7 @@ DCOPRef KateDocManagerDCOPIface::openURL (KURL url, TQString encoding)
if (!doc)
return DCOPRef ();
DCOPObject *obj = static_cast<DCOPObject*>(doc->qt_cast("DCOPObject"));
DCOPObject *obj = static_cast<DCOPObject*>(doc->tqt_cast("DCOPObject"));
if (!obj)
return DCOPRef ();

@ -256,7 +256,7 @@ bool ToolView::visible () const
void ToolView::childEvent ( TQChildEvent *ev )
{
// set the widget to be focus proxy if possible
if (ev->inserted() && ev->child() && TQT_TQOBJECT(ev->child())->qt_cast(TQWIDGET_OBJECT_NAME_STRING)) {
if (ev->inserted() && ev->child() && TQT_TQOBJECT(ev->child())->tqt_cast(TQWIDGET_OBJECT_NAME_STRING)) {
setFocusProxy (::tqqt_cast<QWidget*>(TQT_TQOBJECT(ev->child())));
}

@ -168,7 +168,7 @@ void KateViewManager::updateViewSpaceActions ()
}
void KateViewManager::tabChanged(TQWidget* widget) {
KateViewSpaceContainer *container=static_cast<KateViewSpaceContainer*>(widget->qt_cast("KateViewSpaceContainer"));
KateViewSpaceContainer *container=static_cast<KateViewSpaceContainer*>(widget->tqt_cast("KateViewSpaceContainer"));
Q_ASSERT(container);
m_currentContainer=container;

@ -450,7 +450,7 @@ void KateViewSpaceContainer::splitViewSpace( KateViewSpace* vs,
TQValueList<int> psizes;
if ( ! isFirstTime )
if ( TQSplitter *ps = static_cast<TQSplitter*>(vs->parentWidget()->qt_cast(TQSPLITTER_OBJECT_NAME_STRING)) )
if ( TQSplitter *ps = static_cast<TQSplitter*>(vs->parentWidget()->tqt_cast(TQSPLITTER_OBJECT_NAME_STRING)) )
psizes = ps->sizes();
Qt::Orientation o = isHoriz ? Qt::Vertical : Qt::Horizontal;
@ -471,7 +471,7 @@ void KateViewSpaceContainer::splitViewSpace( KateViewSpace* vs,
s->moveToFirst( vsNew );
if (!isFirstTime)
if (TQSplitter *ps = static_cast<TQSplitter*>(s->parentWidget()->qt_cast(TQSPLITTER_OBJECT_NAME_STRING)) )
if (TQSplitter *ps = static_cast<TQSplitter*>(s->parentWidget()->tqt_cast(TQSPLITTER_OBJECT_NAME_STRING)) )
ps->setSizes( psizes );
s->show();

@ -107,8 +107,8 @@ KWrite::KWrite (KTextEditor::Document *doc)
guiFactory()->addClient( m_view );
// install a working kate part popup dialog thingy
if (static_cast<Kate::View*>(m_view->qt_cast("Kate::View")))
static_cast<Kate::View*>(m_view->qt_cast("Kate::View"))->installPopup ((TQPopupMenu*)(factory()->container("ktexteditor_popup", this)) );
if (static_cast<Kate::View*>(m_view->tqt_cast("Kate::View")))
static_cast<Kate::View*>(m_view->tqt_cast("Kate::View"))->installPopup ((TQPopupMenu*)(factory()->container("ktexteditor_popup", this)) );
// init with more usefull size, stolen from konq :)
if (!initialGeometrySet())

@ -99,7 +99,7 @@ PluginViewInterface *pluginViewInterface (Plugin *plugin)
if (!plugin)
return 0;
return static_cast<PluginViewInterface*>(plugin->qt_cast("Kate::PluginViewInterface"));
return static_cast<PluginViewInterface*>(plugin->tqt_cast("Kate::PluginViewInterface"));
}
}

@ -59,5 +59,5 @@ PluginConfigInterface *Kate::pluginConfigInterface (Plugin *plugin)
if (!plugin)
return 0;
return static_cast<PluginConfigInterface*>(plugin->qt_cast("Kate::PluginConfigInterface"));
return static_cast<PluginConfigInterface*>(plugin->tqt_cast("Kate::PluginConfigInterface"));
}

@ -64,5 +64,5 @@ PluginConfigInterfaceExtension *Kate::pluginConfigInterfaceExtension (Plugin *pl
if (!plugin)
return 0;
return static_cast<PluginConfigInterfaceExtension*>(plugin->qt_cast("Kate::PluginConfigInterfaceExtension"));
return static_cast<PluginConfigInterfaceExtension*>(plugin->tqt_cast("Kate::PluginConfigInterfaceExtension"));
}

@ -60,7 +60,7 @@ TQWidget *ToolViewManager::createToolView (const TQString &identifier, ToolViewM
bool ToolViewManager::moveToolView (TQWidget *widget, ToolViewManager::Position pos)
{
if (!widget || !widget->qt_cast("KateMDI::ToolView"))
if (!widget || !widget->tqt_cast("KateMDI::ToolView"))
return false;
return d->toolViewMan->moveToolView (static_cast<KateMDI::ToolView*>(widget), (KMultiTabBar::KMultiTabBarPosition)pos);
@ -68,7 +68,7 @@ bool ToolViewManager::moveToolView (TQWidget *widget, ToolViewManager::Position
bool ToolViewManager::showToolView(TQWidget *widget)
{
if (!widget || !widget->qt_cast("KateMDI::ToolView"))
if (!widget || !widget->tqt_cast("KateMDI::ToolView"))
return false;
return d->toolViewMan->showToolView (static_cast<KateMDI::ToolView*>(widget));
@ -76,7 +76,7 @@ bool ToolViewManager::showToolView(TQWidget *widget)
bool ToolViewManager::hideToolView(TQWidget *widget)
{
if (!widget || !widget->qt_cast("KateMDI::ToolView"))
if (!widget || !widget->tqt_cast("KateMDI::ToolView"))
return false;
return d->toolViewMan->hideToolView (static_cast<KateMDI::ToolView*>(widget));

@ -417,7 +417,7 @@ void ComponentChooser::slotServiceSelected(TQListBoxItem* it) {
TQWidget *newConfigWidget = 0;
if (cfgType.isEmpty() || (cfgType=="component"))
{
if (!(configWidget && configWidget->qt_cast("CfgComponent")))
if (!(configWidget && configWidget->tqt_cast("CfgComponent")))
{
CfgComponent* cfgcomp = new CfgComponent(configContainer);
cfgcomp->ChooserDocu->setText(i18n("Choose from the list below which component should be used by default for the %1 service.").arg(it->text()));
@ -430,7 +430,7 @@ void ComponentChooser::slotServiceSelected(TQListBoxItem* it) {
}
else if (cfgType=="internal_email")
{
if (!(configWidget && configWidget->qt_cast("CfgEmailClient")))
if (!(configWidget && configWidget->tqt_cast("CfgEmailClient")))
{
newConfigWidget = new CfgEmailClient(configContainer);
}
@ -438,7 +438,7 @@ void ComponentChooser::slotServiceSelected(TQListBoxItem* it) {
}
else if (cfgType=="internal_terminal")
{
if (!(configWidget && configWidget->qt_cast("CfgTerminalEmulator")))
if (!(configWidget && configWidget->tqt_cast("CfgTerminalEmulator")))
{
newConfigWidget = new CfgTerminalEmulator(configContainer);
}
@ -446,7 +446,7 @@ void ComponentChooser::slotServiceSelected(TQListBoxItem* it) {
}
else if (cfgType=="internal_browser")
{
if (!(configWidget && configWidget->qt_cast("CfgBrowser")))
if (!(configWidget && configWidget->tqt_cast("CfgBrowser")))
{
newConfigWidget = new CfgBrowser(configContainer);
}
@ -465,7 +465,7 @@ void ComponentChooser::slotServiceSelected(TQListBoxItem* it) {
}
if (configWidget)
static_cast<CfgPlugin*>(configWidget->qt_cast("CfgPlugin"))->load(&cfg);
static_cast<CfgPlugin*>(configWidget->tqt_cast("CfgPlugin"))->load(&cfg);
emitChanged(false);
latestEditedService=static_cast<MyListBoxItem*>(it)->File;
@ -487,7 +487,7 @@ void ComponentChooser::load() {
if( configWidget )
{
CfgPlugin * plugin = static_cast<CfgPlugin*>(
configWidget->qt_cast( "CfgPlugin" ) );
configWidget->tqt_cast( "CfgPlugin" ) );
if( plugin )
{
KSimpleConfig cfg(latestEditedService);
@ -500,7 +500,7 @@ void ComponentChooser::save() {
if( configWidget )
{
CfgPlugin * plugin = static_cast<CfgPlugin*>(
configWidget->qt_cast( "CfgPlugin" ) );
configWidget->tqt_cast( "CfgPlugin" ) );
if( plugin )
{
KSimpleConfig cfg(latestEditedService);
@ -512,7 +512,7 @@ void ComponentChooser::save() {
void ComponentChooser::restoreDefault() {
if (configWidget)
{
static_cast<CfgPlugin*>(configWidget->qt_cast("CfgPlugin"))->defaults();
static_cast<CfgPlugin*>(configWidget->tqt_cast("CfgPlugin"))->defaults();
emitChanged(true);
}

@ -498,7 +498,7 @@ void KfindTabWidget::slotEditRegExp()
if ( ! regExpDialog )
regExpDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( "KRegExpEditor/KRegExpEditor", TQString(), TQT_TQOBJECT(this) );
KRegExpEditorInterface *iface = static_cast<KRegExpEditorInterface *>( regExpDialog->qt_cast( "KRegExpEditorInterface" ) );
KRegExpEditorInterface *iface = static_cast<KRegExpEditorInterface *>( regExpDialog->tqt_cast( "KRegExpEditorInterface" ) );
if ( !iface )
return;

@ -204,7 +204,7 @@ void ListView::rename( TQListViewItem* item, int c )
if ( gui ) {
if ( ! _regExpEditor )
_regExpEditor = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( "KRegExpEditor/KRegExpEditor", TQString(), TQT_TQOBJECT(this) );
KRegExpEditorInterface *iface = static_cast<KRegExpEditorInterface *>( _regExpEditor->qt_cast( "KRegExpEditorInterface" ) );
KRegExpEditorInterface *iface = static_cast<KRegExpEditorInterface *>( _regExpEditor->tqt_cast( "KRegExpEditorInterface" ) );
assert( iface );
iface->setRegExp( item->text( 0 ) );

@ -1082,7 +1082,7 @@ bool KonqView::callExtensionMethod( const char *methodName )
return false;
TQUObject o[ 1 ];
obj->qt_invoke( id, o );
obj->tqt_invoke( id, o );
return true;
}
@ -1099,7 +1099,7 @@ bool KonqView::callExtensionBoolMethod( const char *methodName, bool value )
static_TQUType_bool.set( o + 1, value );
obj->qt_invoke( id, o );
obj->tqt_invoke( id, o );
return true;
}
@ -1116,7 +1116,7 @@ bool KonqView::callExtensionStringMethod( const char *methodName, TQString value
static_TQUType_TQString.set( o + 1, value );
obj->qt_invoke( id, o );
obj->tqt_invoke( id, o );
return true;
}
@ -1133,7 +1133,7 @@ bool KonqView::callExtensionURLMethod( const char *methodName, const KURL& value
static_TQUType_ptr.set( o + 1, &value );
obj->qt_invoke( id, o );
obj->tqt_invoke( id, o );
return true;
}

@ -52,7 +52,7 @@ void KonqSidebarPlugin::handlePreviewOnMouseOver(const KFileItem& /*items*/) {}
bool KonqSidebarPlugin::universalMode() {
if (!parent()) return false;
KonqSidebarIface *ksi=static_cast<KonqSidebarIface*>(parent()->qt_cast("KonqSidebarIface"));
KonqSidebarIface *ksi=static_cast<KonqSidebarIface*>(parent()->tqt_cast("KonqSidebarIface"));
if (!ksi) return false;
kdDebug()<<"calling KonqSidebarIface->universalMode()"<<endl;
return ksi->universalMode();

@ -680,7 +680,7 @@ void Sidebar_Widget::stdAction(const char *handlestd)
return;
kdDebug() << "Action slot was found, it will be called now" << endl;
TQUObject o[ 1 ];
mod->module->qt_invoke( id, o );
mod->module->tqt_invoke( id, o );
return;
}

@ -38,7 +38,7 @@ KonqSidebarDirTreeModule::KonqSidebarDirTreeModule( KonqSidebarTree * parentTree
KonqSidebarPlugin * plugin = parentTree->part();
// KonqSidebarPlugin::universalMode() is protected :-|
if ( plugin->parent() ) {
KonqSidebarIface * ksi = static_cast<KonqSidebarIface*>( plugin->parent()->qt_cast( "KonqSidebarIface" ) );
KonqSidebarIface * ksi = static_cast<KonqSidebarIface*>( plugin->parent()->tqt_cast( "KonqSidebarIface" ) );
universalMode = ksi ? ksi->universalMode() : false;
} */

@ -148,7 +148,7 @@ void QXtEventLoopPrivate::unhook()
appContext = ownContext = 0;
}
extern bool qt_try_modal( TQWidget *, XEvent * ); // defined in qapplication_x11.cpp
extern bool tqt_try_modal( TQWidget *, XEvent * ); // defined in qapplication_x11.cpp
Boolean qmotif_event_dispatcher( XEvent *event )
{
TQApplication::sendPostedEvents();
@ -206,7 +206,7 @@ Boolean qmotif_event_dispatcher( XEvent *event )
return True;
if ( qMotif && TQApplication::activeModalWidget() ) {
if ( !qt_try_modal(qMotif, event) )
if ( !tqt_try_modal(qMotif, event) )
return True;
}

@ -649,7 +649,7 @@ KdmItem::parentWidget() const
if (!this->parent())
return 0;
if (parent()->qt_cast(TQWIDGET_OBJECT_NAME_STRING))
if (parent()->tqt_cast(TQWIDGET_OBJECT_NAME_STRING))
return (TQWidget*)parent();
return ((KdmItem*)parent())->parentWidget();
}

@ -147,7 +147,7 @@ public:
TQString baseDir() const
{
if (basedir.isEmpty() && parent())
return static_cast<KdmItem *>( parent()->qt_cast( "KdmItem" ) )->baseDir();
return static_cast<KdmItem *>( parent()->tqt_cast( "KdmItem" ) )->baseDir();
return basedir;
}

@ -378,7 +378,7 @@ KdmThemer::slotActivated( const TQString &id )
return;
item->widget()->setFocus();
TQLineEdit *le = (TQLineEdit*)item->widget()->qt_cast(TQLINEEDIT_OBJECT_NAME_STRING);
TQLineEdit *le = (TQLineEdit*)item->widget()->tqt_cast(TQLINEEDIT_OBJECT_NAME_STRING);
if (le)
le->selectAll();
}

Loading…
Cancel
Save