diff options
Diffstat (limited to 'kopete/kopete/kopeteeditglobalidentitywidget.cpp')
-rw-r--r-- | kopete/kopete/kopeteeditglobalidentitywidget.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/kopete/kopeteeditglobalidentitywidget.cpp b/kopete/kopete/kopeteeditglobalidentitywidget.cpp index a9cd3c0c..9df7052c 100644 --- a/kopete/kopete/kopeteeditglobalidentitywidget.cpp +++ b/kopete/kopete/kopeteeditglobalidentitywidget.cpp @@ -17,7 +17,7 @@ #include "kopeteeditglobalidentitywidget.h" -// Qt include +// TQt include #include <tqlayout.h> #include <tqimage.h> #include <tqpixmap.h> @@ -42,10 +42,10 @@ #include "kopetemetacontact.h" -ClickableLabel::ClickableLabel(TQWidget *parent, const char *name) - : TQLabel(parent, name) +ClickableLabel::ClickableLabel(TQWidget *tqparent, const char *name) + : TQLabel(tqparent, name) { - setCursor(TQCursor(Qt::PointingHandCursor)); + setCursor(TQCursor(TQt::PointingHandCursor)); } void ClickableLabel::mouseReleaseEvent(TQMouseEvent *event) @@ -73,8 +73,8 @@ public: TQString lastNickname; }; -KopeteEditGlobalIdentityWidget::KopeteEditGlobalIdentityWidget(TQWidget *parent, const char *name) - : TQWidget(parent, name) +KopeteEditGlobalIdentityWidget::KopeteEditGlobalIdentityWidget(TQWidget *tqparent, const char *name) + : TQWidget(tqparent, name) { d = new Private; @@ -100,7 +100,7 @@ void KopeteEditGlobalIdentityWidget::setIconSize(int size) d->labelPicture->setMinimumSize(TQSize(d->iconSize, d->iconSize)); d->labelPicture->setMaximumSize(TQSize(d->iconSize, d->iconSize)); if( !d->myself->photo().isNull() ) - d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQImage::ScaleMin))); + d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQ_ScaleMin))); } void KopeteEditGlobalIdentityWidget::iconSizeChanged() @@ -115,7 +115,7 @@ void KopeteEditGlobalIdentityWidget::iconSizeChanged() d->labelPicture->setMinimumSize(TQSize(d->iconSize, d->iconSize)); d->labelPicture->setMaximumSize(TQSize(d->iconSize, d->iconSize)); if( !d->myself->photo().isNull() ) - d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQImage::ScaleMin))); + d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQ_ScaleMin))); } } @@ -149,7 +149,7 @@ void KopeteEditGlobalIdentityWidget::updateGUI(const TQString &key, const TQVari // Update the picture and the tooltip if( !d->myself->photo().isNull() ) { - d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQImage::ScaleMin))); + d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQ_ScaleMin))); TQToolTip::add(d->labelPicture, "<qt><img src=\""+ value.toString() +"\"></qt>"); } } @@ -163,7 +163,7 @@ void KopeteEditGlobalIdentityWidget::updateGUI(const TQString &key, const TQVari void KopeteEditGlobalIdentityWidget::photoClicked() { - KURL photoURL = KFileDialog::getImageOpenURL(TQString::null, this, i18n("Global Photo")); + KURL photoURL = KFileDialog::getImageOpenURL(TQString(), this, i18n("Global Photo")); if(photoURL.isEmpty()) return; @@ -183,7 +183,7 @@ void KopeteEditGlobalIdentityWidget::photoClicked() if(photo.width() > 96 || photo.height() > 96) { // Scale and crop the picture. - photo = photo.smoothScale( 96, 96, TQImage::ScaleMin ); + photo = photo.smoothScale( 96, 96, TQ_ScaleMin ); // crop image if not square if(photo.width() < photo.height()) photo = photo.copy((photo.width()-photo.height())/2, 0, 96, 96); @@ -194,7 +194,7 @@ void KopeteEditGlobalIdentityWidget::photoClicked() else if (photo.width() < 32 || photo.height() < 32) { // Scale and crop the picture. - photo = photo.smoothScale( 32, 32, TQImage::ScaleMin ); + photo = photo.smoothScale( 32, 32, TQ_ScaleMin ); // crop image if not square if(photo.width() < photo.height()) photo = photo.copy((photo.width()-photo.height())/2, 0, 32, 32); @@ -227,7 +227,7 @@ void KopeteEditGlobalIdentityWidget::lineNicknameTextChanged(const TQString &tex // Display the nickname in red if they are any change. if(text != d->lastNickname) { - d->lineNickname->setPaletteForegroundColor(Qt::red); + d->lineNickname->setPaletteForegroundColor(TQt::red); } // The nickname re-become like it was before, reset the palette. else |