diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-13 00:26:14 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-13 00:26:14 +0000 |
commit | e192d1b3be27a26e344ae48cc6aea31185fe0a99 (patch) | |
tree | 080c21ee8a1a1a496c0b37b2a8fcb3381de04cd2 /kbabel/commonui | |
parent | 6e7b4925121d177e954df2cca45443cfd78bda40 (diff) | |
download | tdesdk-e192d1b3be27a26e344ae48cc6aea31185fe0a99.tar.gz tdesdk-e192d1b3be27a26e344ae48cc6aea31185fe0a99.zip |
Finish TQt4 porting of kdesdk (kbabel)
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236386 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/commonui')
-rw-r--r-- | kbabel/commonui/context.cpp | 2 | ||||
-rw-r--r-- | kbabel/commonui/finddialog.cpp | 2 | ||||
-rw-r--r-- | kbabel/commonui/klisteditor.ui | 14 | ||||
-rw-r--r-- | kbabel/commonui/projectprefwidgets.cpp | 12 | ||||
-rw-r--r-- | kbabel/commonui/roughtransdlg.cpp | 2 | ||||
-rw-r--r-- | kbabel/commonui/toolselectionwidget.cpp | 4 |
6 files changed, 18 insertions, 18 deletions
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<KTextEditor::Document *>( factory->create( this, 0, "KTextEditor::Document" ) ); + _part = static_cast<KTextEditor::Document *>( 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<TQDialog>( "KRegExpEditor/KRegExpEditor", TQString(), this ); + _regExpEditDialog = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( "KRegExpEditor/KRegExpEditor", TQString(), TQT_TQOBJECT(this) ); KRegExpEditorInterface *iface = dynamic_cast<KRegExpEditorInterface *>( _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 @@ </connection> <connection> <sender>_edit</sender> - <signal>textChanged(const QString&)</signal> + <signal>textChanged(const TQString&)</signal> <receiver>KListEditor</receiver> - <slot>editChanged(const QString&)</slot> + <slot>editChanged(const TQString&)</slot> </connection> <connection> <sender>_list</sender> @@ -234,9 +234,9 @@ </connection> <connection> <sender>_list</sender> - <signal>highlighted(const QString&)</signal> + <signal>highlighted(const TQString&)</signal> <receiver>_edit</receiver> - <slot>setText(const QString&)</slot> + <slot>setText(const TQString&)</slot> </connection> </connections> <includes> @@ -252,9 +252,9 @@ <slot>upInList()</slot> <slot>updateButtons( int newIndex )</slot> <slot>updateList()</slot> - <slot>setList( QStringList contents )</slot> - <slot access="protected">editChanged( const QString & s )</slot> - <slot>setTitle( const QString & s )</slot> + <slot>setList( TQStringList contents )</slot> + <slot access="protected">editChanged( const TQString & s )</slot> + <slot>setTitle( const TQString & s )</slot> <slot returnType="TQStringList">list()</slot> </Q_SLOTS> <tqlayoutdefaults spacing="6" margin="11"/> 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<TQDialog> - ("KRegExpEditor/KRegExpEditor", TQString(), this ); + ("KRegExpEditor/KRegExpEditor", TQString(), TQT_TQOBJECT(this) ); KRegExpEditorInterface *iface = dynamic_cast<KRegExpEditorInterface *>( _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<KDataToolInfo>::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<KDataToolInfo>::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; |