summaryrefslogtreecommitdiffstats
path: root/korn/keditlistboxman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korn/keditlistboxman.cpp')
-rw-r--r--korn/keditlistboxman.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/korn/keditlistboxman.cpp b/korn/keditlistboxman.cpp
index 43cce8318..cab1d777a 100644
--- a/korn/keditlistboxman.cpp
+++ b/korn/keditlistboxman.cpp
@@ -21,10 +21,10 @@
#include <kconfig.h>
#include <kdebug.h>
-#include <qmap.h>
-#include <qstring.h>
+#include <tqmap.h>
+#include <tqstring.h>
-KEditListBoxManager::KEditListBoxManager( QWidget *parent, const char *name,
+KEditListBoxManager::KEditListBoxManager( TQWidget *parent, const char *name,
bool checkAtEntering, int buttons )
: KEditListBox( parent, name, checkAtEntering, buttons ),
_config( 0 ),
@@ -35,7 +35,7 @@ KEditListBoxManager::KEditListBoxManager( QWidget *parent, const char *name,
init();
}
-KEditListBoxManager::KEditListBoxManager( const QString& title, QWidget *parent,
+KEditListBoxManager::KEditListBoxManager( const TQString& title, TQWidget *parent,
const char *name, bool checkAtEntering,
int buttons)
: KEditListBox( title, parent, name, checkAtEntering, buttons ),
@@ -47,9 +47,9 @@ KEditListBoxManager::KEditListBoxManager( const QString& title, QWidget *parent,
init();
}
-KEditListBoxManager::KEditListBoxManager( const QString& title,
+KEditListBoxManager::KEditListBoxManager( const TQString& title,
const KEditListBox::CustomEditor &customEditor,
- QWidget *parent, const char *name,
+ TQWidget *parent, const char *name,
bool checkAtEntering, int buttons )
: KEditListBox( title, customEditor, parent, name, checkAtEntering, buttons ),
_config( 0 ),
@@ -72,23 +72,23 @@ void KEditListBoxManager::setConfig( KConfig* config )
readNames();
}
-void KEditListBoxManager::setGroupName( const QString& name )
+void KEditListBoxManager::setGroupName( const TQString& name )
{
if( _groupName )
*_groupName = name;
else
- _groupName = new QString( name );
+ _groupName = new TQString( name );
if( _config )
readNames();
}
-void KEditListBoxManager::setSubGroupName( const QString& name )
+void KEditListBoxManager::setSubGroupName( const TQString& name )
{
if( _subGroupName )
*_subGroupName = name;
else
- _subGroupName = new QString( name );
+ _subGroupName = new TQString( name );
if( _config && _groupName )
readNames();
@@ -96,12 +96,12 @@ void KEditListBoxManager::setSubGroupName( const QString& name )
void KEditListBoxManager::init()
{
- connect( this, SIGNAL( changed() ), this, SLOT( slotChanged() ) );
- connect( this, SIGNAL( added( const QString& ) ), this, SLOT( slotAdded( const QString& ) ) );
- connect( this, SIGNAL( removed( const QString& ) ), this, SLOT( slotRemoved( const QString& ) ) );
+ connect( this, TQT_SIGNAL( changed() ), this, TQT_SLOT( slotChanged() ) );
+ connect( this, TQT_SIGNAL( added( const TQString& ) ), this, TQT_SLOT( slotAdded( const TQString& ) ) );
+ connect( this, TQT_SIGNAL( removed( const TQString& ) ), this, TQT_SLOT( slotRemoved( const TQString& ) ) );
- connect( this->listBox(), SIGNAL( doubleClicked( QListBoxItem * ) ), this, SLOT( slotActivated( QListBoxItem * ) ) );
- connect( this->listBox(), SIGNAL( returnPressed( QListBoxItem * ) ), this, SLOT( slotActivated( QListBoxItem * ) ) );
+ connect( this->listBox(), TQT_SIGNAL( doubleClicked( TQListBoxItem * ) ), this, TQT_SLOT( slotActivated( TQListBoxItem * ) ) );
+ connect( this->listBox(), TQT_SIGNAL( returnPressed( TQListBoxItem * ) ), this, TQT_SLOT( slotActivated( TQListBoxItem * ) ) );
}
void KEditListBoxManager::readNames()
@@ -112,7 +112,7 @@ void KEditListBoxManager::readNames()
while( _config->hasGroup( _groupName->arg( number ) ) )
{
_config->setGroup( _groupName->arg( number ) );
- this->insertItem( _config->readEntry( "name", QString::null ) );
+ this->insertItem( _config->readEntry( "name", TQString::null ) );
++number;
}
@@ -140,16 +140,16 @@ void KEditListBoxManager::slotChanged()
_config->setGroup( _groupName->arg( this->currentItem() ) );
- if( this->currentItem() > 0 && this->text( this->currentItem() - 1 ) == _config->readEntry( "name", QString::null ) )
+ if( this->currentItem() > 0 && this->text( this->currentItem() - 1 ) == _config->readEntry( "name", TQString::null ) )
changeItem( this->currentItem() - 1, this->currentItem() ); //moved down
else if( this->currentItem() < this->count() - 1 &&
- this->text( this->currentItem() + 1 ) == _config->readEntry( "name", QString::null ) )
+ this->text( this->currentItem() + 1 ) == _config->readEntry( "name", TQString::null ) )
changeItem( this->currentItem(), this->currentItem() + 1 ); //moved up
- else if( this->currentText() != _config->readEntry( "name", QString::null ) )
+ else if( this->currentText() != _config->readEntry( "name", TQString::null ) )
changedText(); //changed
}
-void KEditListBoxManager::slotAdded( const QString& name )
+void KEditListBoxManager::slotAdded( const TQString& name )
{
//Update _prevCount
_prevCount = this->count();
@@ -167,7 +167,7 @@ void KEditListBoxManager::slotAdded( const QString& name )
emit setDefaults( name, number, _config );
}
-void KEditListBoxManager::slotRemoved( const QString& name )
+void KEditListBoxManager::slotRemoved( const TQString& name )
{
//Update prevCount
_prevCount = this->count();
@@ -186,7 +186,7 @@ void KEditListBoxManager::slotRemoved( const QString& name )
break;
}
_config->setGroup( _groupName->arg( number ) );
- if( name == _config->readEntry( "name", QString::null ) )
+ if( name == _config->readEntry( "name", TQString::null ) )
break; //found
++number; //Try next group
@@ -212,7 +212,7 @@ void KEditListBoxManager::slotRemoved( const QString& name )
}
}
-void KEditListBoxManager::slotActivated( QListBoxItem* item )
+void KEditListBoxManager::slotActivated( TQListBoxItem* item )
{
if( item )
emit activated( item->text() );
@@ -220,8 +220,8 @@ void KEditListBoxManager::slotActivated( QListBoxItem* item )
void KEditListBoxManager::moveItem( int src, int dest )
{
- QMap<QString, QString> *srcList = new QMap<QString, QString >;
- QMap<QString, QString>::iterator it;
+ TQMap<TQString, TQString> *srcList = new TQMap<TQString, TQString >;
+ TQMap<TQString, TQString>::iterator it;
int subnumber = 0;
*srcList = _config->entryMap( _groupName->arg( src ) );
@@ -248,9 +248,9 @@ void KEditListBoxManager::moveItem( int src, int dest )
void KEditListBoxManager::changeItem( int first, int last )
{
- QMap<QString, QString> *firstList = new QMap<QString, QString >;
- QMap<QString, QString> *lastList = new QMap<QString, QString >;
- QMap<QString, QString>::iterator it;
+ TQMap<TQString, TQString> *firstList = new TQMap<TQString, TQString >;
+ TQMap<TQString, TQString> *lastList = new TQMap<TQString, TQString >;
+ TQMap<TQString, TQString>::iterator it;
int subnumber = 0;
*firstList = _config->entryMap( _groupName->arg( first ) );