summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp')
-rw-r--r--kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp b/kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp
index 28a8532d..700c91e5 100644
--- a/kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp
+++ b/kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp
@@ -19,13 +19,13 @@
#include "yahoouserinfodialog.h"
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qspinbox.h>
-#include <qcombobox.h>
-#include <qtextedit.h>
-#include <qobject.h>
-#include <qtextcodec.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqspinbox.h>
+#include <tqcombobox.h>
+#include <tqtextedit.h>
+#include <tqobject.h>
+#include <tqtextcodec.h>
#include <kdatewidget.h>
#include <kdebug.h>
@@ -39,34 +39,34 @@
#include "yahoootherinfowidget.h"
#include "yahoocontact.h"
-YahooUserInfoDialog::YahooUserInfoDialog( YahooContact *c, QWidget * parent, const char * name )
+YahooUserInfoDialog::YahooUserInfoDialog( YahooContact *c, TQWidget * parent, const char * name )
: KDialogBase( KDialogBase::IconList, 0, parent, name, false, i18n( "Yahoo User Information" ), User2|User1|Cancel, Cancel, false, i18n("Save and Close"), i18n("Merge with existing entry") )
{
kdDebug(14180) << k_funcinfo << "Creating new yahoo user info widget" << endl;
m_contact = c;
showButton( User2, false );
- QFrame* genInfo = addPage( i18n( "General Info" ),
+ TQFrame* genInfo = addPage( i18n( "General Info" ),
i18n( "General Yahoo Information" ),
- KGlobal::iconLoader()->loadIcon( QString::fromLatin1( "identity" ), KIcon::Desktop ) );
- QVBoxLayout* genLayout = new QVBoxLayout( genInfo );
+ KGlobal::iconLoader()->loadIcon( TQString::fromLatin1( "identity" ), KIcon::Desktop ) );
+ TQVBoxLayout* genLayout = new TQVBoxLayout( genInfo );
m_genInfoWidget = new YahooGeneralInfoWidget( genInfo, "Basic Information" );
genLayout->addWidget( m_genInfoWidget );
- QFrame* workInfo = addPage( i18n( "Work Info" ),
+ TQFrame* workInfo = addPage( i18n( "Work Info" ),
i18n( "Work Information" ),
- KGlobal::iconLoader()->loadIcon( QString::fromLatin1( "attach" ), KIcon::Desktop ) );
- QVBoxLayout* workLayout = new QVBoxLayout( workInfo );
+ KGlobal::iconLoader()->loadIcon( TQString::fromLatin1( "attach" ), KIcon::Desktop ) );
+ TQVBoxLayout* workLayout = new TQVBoxLayout( workInfo );
m_workInfoWidget = new YahooWorkInfoWidget( workInfo, "Work Information" );
workLayout->addWidget( m_workInfoWidget );
- QFrame* otherInfo = addPage( i18n( "Other Info" ),
+ TQFrame* otherInfo = addPage( i18n( "Other Info" ),
i18n( "Other Yahoo Information" ),
- KGlobal::iconLoader()->loadIcon( QString::fromLatin1( "email" ), KIcon::Desktop ) );
- QVBoxLayout* otherLayout = new QVBoxLayout( otherInfo );
+ KGlobal::iconLoader()->loadIcon( TQString::fromLatin1( "email" ), KIcon::Desktop ) );
+ TQVBoxLayout* otherLayout = new TQVBoxLayout( otherInfo );
m_otherInfoWidget = new YahooOtherInfoWidget( otherInfo, "Other Information" );
otherLayout->addWidget( m_otherInfoWidget );
- QObject::connect(this, SIGNAL(user1Clicked()), this, SLOT(slotSaveAndCloseClicked()));
+ TQObject::connect(this, TQT_SIGNAL(user1Clicked()), this, TQT_SLOT(slotSaveAndCloseClicked()));
}
void YahooUserInfoDialog::setAccountConnected( bool isOnline )
@@ -107,10 +107,10 @@ void YahooUserInfoDialog::slotSaveAndCloseClicked()
entry.privateState = m_genInfoWidget->stateEdit->text();
entry.privateZIP = m_genInfoWidget->zipEdit->text();
entry.privateCountry = m_genInfoWidget->countryEdit->text();
- QString bi = m_genInfoWidget->birthdayEdit->text();
- entry.birthday = QDate( bi.section("/",2,2).toInt(), bi.section("/",1,1).toInt(), bi.section("/",0,0).toInt() );
- QString an = m_genInfoWidget->anniversaryEdit->text();
- entry.anniversary = QDate( an.section("/",2,2).toInt(), an.section("/",1,1).toInt(), an.section("/",0,0).toInt() );
+ TQString bi = m_genInfoWidget->birthdayEdit->text();
+ entry.birthday = TQDate( bi.section("/",2,2).toInt(), bi.section("/",1,1).toInt(), bi.section("/",0,0).toInt() );
+ TQString an = m_genInfoWidget->anniversaryEdit->text();
+ entry.anniversary = TQDate( an.section("/",2,2).toInt(), an.section("/",1,1).toInt(), an.section("/",0,0).toInt() );
entry.additional1 = m_otherInfoWidget->note1Edit->text();
entry.additional2 = m_otherInfoWidget->note2Edit->text();
entry.additional3 = m_otherInfoWidget->note3Edit->text();
@@ -126,7 +126,7 @@ void YahooUserInfoDialog::slotSaveAndCloseClicked()
emit saveYABEntry( entry );
- QDialog::accept();
+ TQDialog::accept();
}
void YahooUserInfoDialog::slotUser2()
@@ -170,16 +170,16 @@ void YahooUserInfoDialog::slotUser2()
entry.birthday = oldEntry->birthday;
else
{
- QString bi = m_genInfoWidget->birthdayEdit->text();
- entry.birthday = QDate( bi.section("/",2,2).toInt(), bi.section("/",1,1).toInt(), bi.section("/",0,0).toInt() );
+ TQString bi = m_genInfoWidget->birthdayEdit->text();
+ entry.birthday = TQDate( bi.section("/",2,2).toInt(), bi.section("/",1,1).toInt(), bi.section("/",0,0).toInt() );
}
if( m_genInfoWidget->anniversaryEdit->text().isEmpty() )
entry.anniversary = oldEntry->anniversary;
else
{
- QString an = m_genInfoWidget->anniversaryEdit->text();
- entry.anniversary = QDate( an.section("/",2,2).toInt(), an.section("/",1,1).toInt(), an.section("/",0,0).toInt() );
+ TQString an = m_genInfoWidget->anniversaryEdit->text();
+ entry.anniversary = TQDate( an.section("/",2,2).toInt(), an.section("/",1,1).toInt(), an.section("/",0,0).toInt() );
}
entry.additional1 = m_otherInfoWidget->note1Edit->text().isEmpty() ? oldEntry->additional1 : m_otherInfoWidget->note1Edit->text();
@@ -198,7 +198,7 @@ void YahooUserInfoDialog::slotUser2()
emit saveYABEntry( entry );
}
- QDialog::accept();
+ TQDialog::accept();
}
void YahooUserInfoDialog::setData( const YABEntry &yab )
@@ -219,9 +219,9 @@ void YahooUserInfoDialog::setData( const YABEntry &yab )
m_genInfoWidget->titleEdit->setText( yab.title );
if( yab.birthday.isValid() )
- m_genInfoWidget->birthdayEdit->setText( QString("%1/%2/%3").arg( yab.birthday.day() ).arg( yab.birthday.month() ).arg( yab.birthday.year() ));
+ m_genInfoWidget->birthdayEdit->setText( TQString("%1/%2/%3").arg( yab.birthday.day() ).arg( yab.birthday.month() ).arg( yab.birthday.year() ));
if( yab.anniversary.isValid() )
- m_genInfoWidget->anniversaryEdit->setText( QString("%1/%2/%3").arg( yab.anniversary.day() ).arg( yab.anniversary.month() ).arg( yab.anniversary.year() ));
+ m_genInfoWidget->anniversaryEdit->setText( TQString("%1/%2/%3").arg( yab.anniversary.day() ).arg( yab.anniversary.month() ).arg( yab.anniversary.year() ));
m_genInfoWidget->addressEdit->setText( yab.privateAdress );
m_genInfoWidget->cityEdit->setText( yab.privateCity );