summaryrefslogtreecommitdiffstats
path: root/kbabel/commonui/toolselectionwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/commonui/toolselectionwidget.cpp')
-rw-r--r--kbabel/commonui/toolselectionwidget.cpp32
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")))) )