From e192d1b3be27a26e344ae48cc6aea31185fe0a99 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 13 Jun 2011 00:26:14 +0000 Subject: Finish TQt4 porting of kdesdk (kbabel) git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236386 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kbabel/commonui/context.cpp | 2 +- kbabel/commonui/finddialog.cpp | 2 +- kbabel/commonui/klisteditor.ui | 14 +++++++------- kbabel/commonui/projectprefwidgets.cpp | 12 ++++++------ kbabel/commonui/roughtransdlg.cpp | 2 +- kbabel/commonui/toolselectionwidget.cpp | 4 ++-- 6 files changed, 18 insertions(+), 18 deletions(-) (limited to 'kbabel/commonui') diff --git a/kbabel/commonui/context.cpp b/kbabel/commonui/context.cpp index 63e07b28..4c91d1ad 100644 --- a/kbabel/commonui/context.cpp +++ b/kbabel/commonui/context.cpp @@ -278,7 +278,7 @@ bool SourceContext::loadPart() _view=0; return false; } - _part = static_cast( factory->create( this, 0, "KTextEditor::Document" ) ); + _part = static_cast( factory->create( TQT_TQOBJECT(this), 0, "KTextEditor::Document" ) ); if( !_part ) { diff --git a/kbabel/commonui/finddialog.cpp b/kbabel/commonui/finddialog.cpp index a08347fc..18dcd721 100644 --- a/kbabel/commonui/finddialog.cpp +++ b/kbabel/commonui/finddialog.cpp @@ -520,7 +520,7 @@ void FindDialog::inButtonsClicked(int id) void FindDialog::regExpButtonClicked() { if ( _regExpEditDialog == 0 ) - _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery( "KRegExpEditor/KRegExpEditor", TQString(), this ); + _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery( "KRegExpEditor/KRegExpEditor", TQString(), TQT_TQOBJECT(this) ); KRegExpEditorInterface *iface = dynamic_cast( _regExpEditDialog ); if( iface ) diff --git a/kbabel/commonui/klisteditor.ui b/kbabel/commonui/klisteditor.ui index cb6c43ac..e10be269 100644 --- a/kbabel/commonui/klisteditor.ui +++ b/kbabel/commonui/klisteditor.ui @@ -222,9 +222,9 @@ _edit - textChanged(const QString&) + textChanged(const TQString&) KListEditor - editChanged(const QString&) + editChanged(const TQString&) _list @@ -234,9 +234,9 @@ _list - highlighted(const QString&) + highlighted(const TQString&) _edit - setText(const QString&) + setText(const TQString&) @@ -252,9 +252,9 @@ upInList() updateButtons( int newIndex ) updateList() - setList( QStringList contents ) - editChanged( const QString & s ) - setTitle( const QString & s ) + setList( TQStringList contents ) + editChanged( const TQString & s ) + setTitle( const TQString & s ) list() diff --git a/kbabel/commonui/projectprefwidgets.cpp b/kbabel/commonui/projectprefwidgets.cpp index 4a363c47..abafec59 100644 --- a/kbabel/commonui/projectprefwidgets.cpp +++ b/kbabel/commonui/projectprefwidgets.cpp @@ -87,11 +87,11 @@ static TQSize tqsizeHintForWidget(const TQWidget* widget) TQSize size; int numChild = 0; - TQObjectList *l = (TQObjectList*)(widget->tqchildren()); + TQObjectList l = widget->childrenListObject(); - for( uint i=0; i < l->count(); i++ ) + for( uint i=0; i < l.count(); i++ ) { - TQObject *o = l->at(i); + TQObject *o = l.at(i); if( o->isWidgetType() ) { numChild += 1; @@ -571,12 +571,12 @@ bool IdentityPreferences::eventFilter(TQObject *o, TQEvent *e) TQString mail=url.path(); bool handled=false; - if(o == _mailEdit) + if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(_mailEdit)) { handled=true; _mailEdit->setText(mail); } - else if(o == _listEdit) + else if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(_listEdit)) { handled=true; _listEdit->setText(mail); @@ -778,7 +778,7 @@ void MiscPreferences::regExpButtonClicked() { if ( _regExpEditDialog==0 ) _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery - ("KRegExpEditor/KRegExpEditor", TQString(), this ); + ("KRegExpEditor/KRegExpEditor", TQString(), TQT_TQOBJECT(this) ); KRegExpEditorInterface *iface = dynamic_cast( _regExpEditDialog ); if( iface ) diff --git a/kbabel/commonui/roughtransdlg.cpp b/kbabel/commonui/roughtransdlg.cpp index 3928e42c..046ad2de 100644 --- a/kbabel/commonui/roughtransdlg.cpp +++ b/kbabel/commonui/roughtransdlg.cpp @@ -278,7 +278,7 @@ void RoughTransDlg::translate() for(int i = 0; i < total; i++) { progressbar->setProgress(i+1); - kapp->processEvents(100); + kapp->tqprocessEvents(100); if(stop || cancel) break; diff --git a/kbabel/commonui/toolselectionwidget.cpp b/kbabel/commonui/toolselectionwidget.cpp index 4fadd865..78a3c0a4 100644 --- a/kbabel/commonui/toolselectionwidget.cpp +++ b/kbabel/commonui/toolselectionwidget.cpp @@ -78,7 +78,7 @@ void ToolSelectionWidget::setSelectedTools( const TQStringList& tools ) TQValueList::ConstIterator entry = _allTools.begin(); for( ; entry != _allTools.end(); ++entry ) { - TQString uic=*(*entry).userCommands().at((*entry).commands().findIndex("validate")); + TQString uic=*(*entry).userCommands().at((*entry).commands().tqfindIndex("validate")); if( tools.tqcontains((*entry).service()->library()) ) selectedListBox()->insertItem( uic ); else @@ -96,7 +96,7 @@ TQStringList ToolSelectionWidget::selectedTools() TQValueList::ConstIterator entry = _allTools.begin(); for( ; entry != _allTools.end(); ++entry ) { - if( usedNames.tqcontains(*((*entry).userCommands().at((*entry).commands().findIndex("validate")))) ) + if( usedNames.tqcontains(*((*entry).userCommands().at((*entry).commands().tqfindIndex("validate")))) ) result += (*entry).service()->library(); } return result; -- cgit v1.2.1