diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbabel/commonui/toolselectionwidget.cpp | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/commonui/toolselectionwidget.cpp')
-rw-r--r-- | kbabel/commonui/toolselectionwidget.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kbabel/commonui/toolselectionwidget.cpp b/kbabel/commonui/toolselectionwidget.cpp index 56759490..1e97f473 100644 --- a/kbabel/commonui/toolselectionwidget.cpp +++ b/kbabel/commonui/toolselectionwidget.cpp @@ -34,33 +34,33 @@ #include <kdatatool.h> #include <kdebug.h> -#include <qlistbox.h> +#include <tqlistbox.h> -ToolSelectionWidget::ToolSelectionWidget( QWidget * parent, const char * name ) +ToolSelectionWidget::ToolSelectionWidget( TQWidget * parent, const char * name ) : KActionSelector( parent, name ) { } -void ToolSelectionWidget::loadTools( const QStringList &commands, - const QValueList<KDataToolInfo>& tools) +void ToolSelectionWidget::loadTools( const TQStringList &commands, + const TQValueList<KDataToolInfo>& tools) { if ( tools.isEmpty() ) return; _allTools = tools; - QValueList<KDataToolInfo>::ConstIterator entry = tools.begin(); + TQValueList<KDataToolInfo>::ConstIterator entry = tools.begin(); for( ; entry != tools.end(); ++entry ) { - QStringList userCommands = (*entry).userCommands(); - QStringList toolCommands = (*entry).commands(); + TQStringList userCommands = (*entry).userCommands(); + TQStringList toolCommands = (*entry).commands(); Q_ASSERT(!toolCommands.isEmpty()); if ( toolCommands.count() != userCommands.count() ) kdWarning() << "KDataTool desktop file error (" << (*entry).service() << "). " << toolCommands.count() << " commands and " << userCommands.count() << " descriptions." << endl; - QStringList::ConstIterator uit = userCommands.begin(); - QStringList::ConstIterator cit = toolCommands.begin(); + TQStringList::ConstIterator uit = userCommands.begin(); + TQStringList::ConstIterator cit = toolCommands.begin(); for (; uit != userCommands.end() && cit != toolCommands.end(); ++uit, ++cit ) { if( commands.contains(*cit) ) @@ -71,14 +71,14 @@ void ToolSelectionWidget::loadTools( const QStringList &commands, } } -void ToolSelectionWidget::setSelectedTools( const QStringList& tools ) +void ToolSelectionWidget::setSelectedTools( const TQStringList& tools ) { availableListBox()->clear(); selectedListBox()->clear(); - QValueList<KDataToolInfo>::ConstIterator entry = _allTools.begin(); + TQValueList<KDataToolInfo>::ConstIterator entry = _allTools.begin(); for( ; entry != _allTools.end(); ++entry ) { - QString uic=*(*entry).userCommands().at((*entry).commands().findIndex("validate")); + TQString uic=*(*entry).userCommands().at((*entry).commands().findIndex("validate")); if( tools.contains((*entry).service()->library()) ) selectedListBox()->insertItem( uic ); else @@ -86,14 +86,14 @@ void ToolSelectionWidget::setSelectedTools( const QStringList& tools ) } } -QStringList ToolSelectionWidget::selectedTools() +TQStringList ToolSelectionWidget::selectedTools() { - QStringList usedNames; + TQStringList usedNames; for( uint i=0; i<selectedListBox()->count() ; i++ ) usedNames += selectedListBox()->text(i); - QStringList result; - QValueList<KDataToolInfo>::ConstIterator entry = _allTools.begin(); + TQStringList result; + TQValueList<KDataToolInfo>::ConstIterator entry = _allTools.begin(); for( ; entry != _allTools.end(); ++entry ) { if( usedNames.contains(*((*entry).userCommands().at((*entry).commands().findIndex("validate")))) ) |