summaryrefslogtreecommitdiffstats
path: root/kaddressbook/imagewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/imagewidget.cpp')
-rw-r--r--kaddressbook/imagewidget.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kaddressbook/imagewidget.cpp b/kaddressbook/imagewidget.cpp
index b69e90bb2..722b8dd78 100644
--- a/kaddressbook/imagewidget.cpp
+++ b/kaddressbook/imagewidget.cpp
@@ -52,9 +52,9 @@ ImageLoader::ImageLoader( TQWidget *parent )
{
}
-KABC::Picture ImageLoader::loadPicture( const KURL &url, bool *ok )
+TDEABC::Picture ImageLoader::loadPicture( const KURL &url, bool *ok )
{
- KABC::Picture picture;
+ TDEABC::Picture picture;
TQString tempFile;
if ( url.isEmpty() )
@@ -117,13 +117,13 @@ void ImageButton::setReadOnly( bool readOnly )
mReadOnly = readOnly;
}
-void ImageButton::setPicture( const KABC::Picture &picture )
+void ImageButton::setPicture( const TDEABC::Picture &picture )
{
mPicture = picture;
updateGUI();
}
-KABC::Picture ImageButton::picture() const
+TDEABC::Picture ImageButton::picture() const
{
return mPicture;
}
@@ -188,7 +188,7 @@ void ImageButton::dropEvent( TQDropEvent *event )
if ( mImageLoader ) {
bool ok = false;
- KABC::Picture pic = mImageLoader->loadPicture( urls[ 0 ], &ok );
+ TDEABC::Picture pic = mImageLoader->loadPicture( urls[ 0 ], &ok );
if ( ok ) {
mPicture = pic;
updateGUI();
@@ -228,7 +228,7 @@ void ImageButton::load()
if ( url.isValid() ) {
if ( mImageLoader ) {
bool ok = false;
- KABC::Picture pic = mImageLoader->loadPicture( url, &ok );
+ TDEABC::Picture pic = mImageLoader->loadPicture( url, &ok );
if ( ok ) {
mPicture = pic;
updateGUI();
@@ -240,7 +240,7 @@ void ImageButton::load()
void ImageButton::clear()
{
- mPicture = KABC::Picture();
+ mPicture = TDEABC::Picture();
updateGUI();
emit changed();
@@ -279,40 +279,40 @@ void ImageBaseWidget::setReadOnly( bool readOnly )
mImageButton->setReadOnly( mReadOnly );
}
-void ImageBaseWidget::setImage( const KABC::Picture &photo )
+void ImageBaseWidget::setImage( const TDEABC::Picture &photo )
{
mImageButton->setPicture( photo );
}
-KABC::Picture ImageBaseWidget::image() const
+TDEABC::Picture ImageBaseWidget::image() const
{
return mImageButton->picture();
}
-ImageWidget::ImageWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name )
+ImageWidget::ImageWidget( TDEABC::AddressBook *ab, TQWidget *parent, const char *name )
: KAB::ContactEditorWidget( ab, parent, name )
{
TQHBoxLayout *layout = new TQHBoxLayout( this, KDialog::marginHint(),
KDialog::spacingHint() );
- mPhotoWidget = new ImageBaseWidget( KABC::Addressee::photoLabel(), this );
+ mPhotoWidget = new ImageBaseWidget( TDEABC::Addressee::photoLabel(), this );
layout->addWidget( mPhotoWidget );
- mLogoWidget = new ImageBaseWidget( KABC::Addressee::logoLabel(), this );
+ mLogoWidget = new ImageBaseWidget( TDEABC::Addressee::logoLabel(), this );
layout->addWidget( mLogoWidget );
connect( mPhotoWidget, TQT_SIGNAL( changed() ), TQT_SLOT( setModified() ) );
connect( mLogoWidget, TQT_SIGNAL( changed() ), TQT_SLOT( setModified() ) );
}
-void ImageWidget::loadContact( KABC::Addressee *addr )
+void ImageWidget::loadContact( TDEABC::Addressee *addr )
{
mPhotoWidget->setImage( addr->photo() );
mLogoWidget->setImage( addr->logo() );
}
-void ImageWidget::storeContact( KABC::Addressee *addr )
+void ImageWidget::storeContact( TDEABC::Addressee *addr )
{
addr->setPhoto( mPhotoWidget->image() );
addr->setLogo( mLogoWidget->image() );