summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/yahooeditaccount.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/yahoo/yahooeditaccount.cpp')
-rw-r--r--kopete/protocols/yahoo/yahooeditaccount.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kopete/protocols/yahoo/yahooeditaccount.cpp b/kopete/protocols/yahoo/yahooeditaccount.cpp
index c83905ed..c2508a58 100644
--- a/kopete/protocols/yahoo/yahooeditaccount.cpp
+++ b/kopete/protocols/yahoo/yahooeditaccount.cpp
@@ -17,14 +17,14 @@
*/
// QT Includes
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qimage.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qspinbox.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqimage.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqspinbox.h>
// KDE Includes
#include <klocale.h>
@@ -47,7 +47,7 @@
#include "yahooeditaccount.h"
// Yahoo Add Contact page
-YahooEditAccount::YahooEditAccount(YahooProtocol *protocol, Kopete::Account *theAccount, QWidget *parent, const char* /*name*/): YahooEditAccountBase(parent), KopeteEditAccountWidget(theAccount)
+YahooEditAccount::YahooEditAccount(YahooProtocol *protocol, Kopete::Account *theAccount, TQWidget *parent, const char* /*name*/): YahooEditAccountBase(parent), KopeteEditAccountWidget(theAccount)
{
kdDebug(YAHOO_GEN_DEBUG) << k_funcinfo << endl;
@@ -63,7 +63,7 @@ YahooEditAccount::YahooEditAccount(YahooProtocol *protocol, Kopete::Account *the
mAutoConnect->setChecked(acct->excludeConnect());
mPasswordWidget->load( &acct->password() );
- QString pagerServer = account()->configGroup()->readEntry("Server", "scs.msg.yahoo.com");
+ TQString pagerServer = account()->configGroup()->readEntry("Server", "scs.msg.yahoo.com");
int pagerPort = account()->configGroup()->readNumEntry("Port", 5050);
if( pagerServer != "scs.msg.yahoo.com" || pagerPort != 5050 )
optionOverrideServer->setChecked( true );
@@ -72,11 +72,11 @@ YahooEditAccount::YahooEditAccount(YahooProtocol *protocol, Kopete::Account *the
editServerAddress->setText( pagerServer );
sbxServerPort->setValue( pagerPort );
- QString iconUrl = account()->configGroup()->readEntry("pictureUrl", "");
+ TQString iconUrl = account()->configGroup()->readEntry("pictureUrl", "");
bool sendPicture = account()->configGroup()->readBoolEntry("sendPicture", false);
optionSendBuddyIcon->setChecked( sendPicture );
buttonSelectPicture->setEnabled( sendPicture );
- connect( optionSendBuddyIcon, SIGNAL( toggled( bool ) ), buttonSelectPicture, SLOT( setEnabled( bool ) ) );
+ connect( optionSendBuddyIcon, TQT_SIGNAL( toggled( bool ) ), buttonSelectPicture, TQT_SLOT( setEnabled( bool ) ) );
editPictureUrl->setText( iconUrl );
if( !iconUrl.isEmpty() )
m_Picture->setPixmap( KURL( iconUrl ).path() );
@@ -86,15 +86,15 @@ YahooEditAccount::YahooEditAccount(YahooProtocol *protocol, Kopete::Account *the
mGlobalIdentity->setChecked( account()->configGroup()->readBoolEntry("ExcludeGlobalIdentity", false) );
}
- QObject::connect(buttonRegister, SIGNAL(clicked()), this, SLOT(slotOpenRegister()));
- QObject::connect(buttonSelectPicture, SIGNAL(clicked()), this, SLOT(slotSelectPicture()));
+ TQObject::connect(buttonRegister, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOpenRegister()));
+ TQObject::connect(buttonSelectPicture, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSelectPicture()));
optionSendBuddyIcon->setEnabled( account() );
/* Set tab order to password custom widget correctly */
- QWidget::setTabOrder( mAutoConnect, mPasswordWidget->mRemembered );
- QWidget::setTabOrder( mPasswordWidget->mRemembered, mPasswordWidget->mPassword );
- QWidget::setTabOrder( mPasswordWidget->mPassword, buttonRegister );
+ TQWidget::setTabOrder( mAutoConnect, mPasswordWidget->mRemembered );
+ TQWidget::setTabOrder( mPasswordWidget->mRemembered, mPasswordWidget->mPassword );
+ TQWidget::setTabOrder( mPasswordWidget->mPassword, buttonRegister );
show();
}
@@ -148,7 +148,7 @@ Kopete::Account *YahooEditAccount::apply()
}
else
{
- yahooAccount->setBuddyIcon( KURL( QString::null ) );
+ yahooAccount->setBuddyIcon( KURL( TQString::null ) );
}
// Global Identity
@@ -164,16 +164,16 @@ void YahooEditAccount::slotOpenRegister()
void YahooEditAccount::slotSelectPicture()
{
- KURL file = KFileDialog::getImageOpenURL( QString::null, this, i18n( "Yahoo Buddy Icon" ) );
+ KURL file = KFileDialog::getImageOpenURL( TQString::null, this, i18n( "Yahoo Buddy Icon" ) );
if ( file.isEmpty() )
return;
- QImage picture(file.path());
+ TQImage picture(file.path());
if( !picture.isNull() )
{
- picture = KPixmapRegionSelectorDialog::getSelectedImage( QPixmap(picture), 96, 96, this );
- QString newlocation( locateLocal( "appdata", "yahoopictures/"+ file.fileName().lower() ) ) ;
+ picture = KPixmapRegionSelectorDialog::getSelectedImage( TQPixmap(picture), 96, 96, this );
+ TQString newlocation( locateLocal( "appdata", "yahoopictures/"+ file.fileName().lower() ) ) ;
file = KURL(newlocation);
if( !picture.save( newlocation, "PNG" ))
{