summaryrefslogtreecommitdiffstats
path: root/kaddressbook/keywidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/keywidget.cpp')
-rw-r--r--kaddressbook/keywidget.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kaddressbook/keywidget.cpp b/kaddressbook/keywidget.cpp
index 671d0729..8af9f261 100644
--- a/kaddressbook/keywidget.cpp
+++ b/kaddressbook/keywidget.cpp
@@ -70,14 +70,14 @@ KeyWidget::~KeyWidget()
{
}
-void KeyWidget::setKeys( const KABC::Key::List &list )
+void KeyWidget::setKeys( const TDEABC::Key::List &list )
{
mKeyList = list;
updateKeyCombo();
}
-KABC::Key::List KeyWidget::keys() const
+TDEABC::Key::List KeyWidget::keys() const
{
return mKeyList;
}
@@ -88,19 +88,19 @@ void KeyWidget::addKey()
TQStringList keyTypeNames;
TQStringList existingKeyTypes;
- KABC::Key::List::ConstIterator listIt;
+ TDEABC::Key::List::ConstIterator listIt;
for ( listIt = mKeyList.begin(); listIt != mKeyList.end(); ++listIt ) {
- if ( (*listIt).type() != KABC::Key::Custom )
- existingKeyTypes.append( KABC::Key::typeLabel( (*listIt).type() ) );
+ if ( (*listIt).type() != TDEABC::Key::Custom )
+ existingKeyTypes.append( TDEABC::Key::typeLabel( (*listIt).type() ) );
}
- KABC::Key::TypeList typeList = KABC::Key::typeList();
- KABC::Key::TypeList::ConstIterator it;
+ TDEABC::Key::TypeList typeList = TDEABC::Key::typeList();
+ TDEABC::Key::TypeList::ConstIterator it;
for ( it = typeList.begin(); it != typeList.end(); ++it ) {
- if ( (*it) != KABC::Key::Custom &&
- !existingKeyTypes.contains( KABC::Key::typeLabel( *it ) ) ) {
- keyMap.insert( KABC::Key::typeLabel( *it ), *it );
- keyTypeNames.append( KABC::Key::typeLabel( *it ) );
+ if ( (*it) != TDEABC::Key::Custom &&
+ !existingKeyTypes.contains( TDEABC::Key::typeLabel( *it ) ) ) {
+ keyMap.insert( TDEABC::Key::typeLabel( *it ), *it );
+ keyTypeNames.append( TDEABC::Key::typeLabel( *it ) );
}
}
@@ -111,7 +111,7 @@ void KeyWidget::addKey()
int type = keyMap[ name ];
if ( !keyTypeNames.contains( name ) )
- type = KABC::Key::Custom;
+ type = TDEABC::Key::Custom;
KURL url = KFileDialog::getOpenURL();
if ( url.isEmpty() )
@@ -133,8 +133,8 @@ void KeyWidget::addKey()
s >> data;
file.close();
- KABC::Key key( data, type );
- if ( type == KABC::Key::Custom )
+ TDEABC::Key key( data, type );
+ if ( type == TDEABC::Key::Custom )
key.setCustomTypeString( name );
mKeyList.append( key );
@@ -165,7 +165,7 @@ void KeyWidget::removeKey()
void KeyWidget::exportKey()
{
- KABC::Key key = (*mKeyList.at( mKeyCombo->currentItem() ) );
+ TDEABC::Key key = (*mKeyList.at( mKeyCombo->currentItem() ) );
KURL url = KFileDialog::getSaveURL();
@@ -183,12 +183,12 @@ void KeyWidget::updateKeyCombo()
int pos = mKeyCombo->currentItem();
mKeyCombo->clear();
- KABC::Key::List::ConstIterator it;
+ TDEABC::Key::List::ConstIterator it;
for ( it = mKeyList.begin(); it != mKeyList.end(); ++it ) {
- if ( (*it).type() == KABC::Key::Custom )
+ if ( (*it).type() == TDEABC::Key::Custom )
mKeyCombo->insertItem( (*it).customTypeString() );
else
- mKeyCombo->insertItem( KABC::Key::typeLabel( (*it).type() ) );
+ mKeyCombo->insertItem( TDEABC::Key::typeLabel( (*it).type() ) );
}
mKeyCombo->setCurrentItem( pos );