summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/ui
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/yahoo/ui
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/yahoo/ui')
-rw-r--r--kopete/protocols/yahoo/ui/yahooinvitelistimpl.cpp36
-rw-r--r--kopete/protocols/yahoo/ui/yahooinvitelistimpl.h24
-rw-r--r--kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp60
-rw-r--r--kopete/protocols/yahoo/ui/yahoouserinfodialog.h2
-rw-r--r--kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp40
-rw-r--r--kopete/protocols/yahoo/ui/yahoowebcamdialog.h12
6 files changed, 87 insertions, 87 deletions
diff --git a/kopete/protocols/yahoo/ui/yahooinvitelistimpl.cpp b/kopete/protocols/yahoo/ui/yahooinvitelistimpl.cpp
index dcd6e184..594e7a01 100644
--- a/kopete/protocols/yahoo/ui/yahooinvitelistimpl.cpp
+++ b/kopete/protocols/yahoo/ui/yahooinvitelistimpl.cpp
@@ -19,27 +19,27 @@
#include <kdebug.h>
-#include <qlistbox.h>
-#include <qlineedit.h>
+#include <tqlistbox.h>
+#include <tqlineedit.h>
-YahooInviteListImpl::YahooInviteListImpl(QWidget *parent, const char *name) : YahooInviteListBase(parent,name)
+YahooInviteListImpl::YahooInviteListImpl(TQWidget *parent, const char *name) : YahooInviteListBase(parent,name)
{
- listFriends->setSelectionMode( QListBox::Extended );
- listInvited->setSelectionMode( QListBox::Extended );
+ listFriends->setSelectionMode( TQListBox::Extended );
+ listInvited->setSelectionMode( TQListBox::Extended );
}
YahooInviteListImpl::~YahooInviteListImpl()
{
}
-void YahooInviteListImpl::setRoom( const QString &room )
+void YahooInviteListImpl::setRoom( const TQString &room )
{
kdDebug(14180) << k_funcinfo << "Setting roomname to: " << room << endl;
m_room = room;
}
-void YahooInviteListImpl::fillFriendList( const QStringList &buddies )
+void YahooInviteListImpl::fillFriendList( const TQStringList &buddies )
{
kdDebug(14180) << k_funcinfo << "Adding friends: " << buddies << endl;
@@ -59,11 +59,11 @@ void YahooInviteListImpl::updateListBoxes()
listInvited->sort();
}
-void YahooInviteListImpl::addInvitees( const QStringList &invitees )
+void YahooInviteListImpl::addInvitees( const TQStringList &invitees )
{
kdDebug(14180) << k_funcinfo << "Adding invitees: " << invitees << endl;
- for( QStringList::const_iterator it = invitees.begin(); it != invitees.end(); it++ )
+ for( TQStringList::const_iterator it = invitees.begin(); it != invitees.end(); it++ )
{
if( m_inviteeList.find( *it ) == m_inviteeList.end() )
m_inviteeList.push_back( *it );
@@ -74,11 +74,11 @@ void YahooInviteListImpl::addInvitees( const QStringList &invitees )
updateListBoxes();
}
-void YahooInviteListImpl::removeInvitees( const QStringList &invitees )
+void YahooInviteListImpl::removeInvitees( const TQStringList &invitees )
{
kdDebug(14180) << k_funcinfo << "Removing invitees: " << invitees << endl;
- for( QStringList::const_iterator it = invitees.begin(); it != invitees.end(); it++ )
+ for( TQStringList::const_iterator it = invitees.begin(); it != invitees.end(); it++ )
{
if( m_buddyList.find( *it ) == m_buddyList.end() )
m_buddyList.push_back( *it );
@@ -89,7 +89,7 @@ void YahooInviteListImpl::removeInvitees( const QStringList &invitees )
updateListBoxes();
}
-void YahooInviteListImpl::addParticipant( const QString &p )
+void YahooInviteListImpl::addParticipant( const TQString &p )
{
m_participants.push_back( p );
}
@@ -100,7 +100,7 @@ void YahooInviteListImpl::btnInvite_clicked()
if( m_inviteeList.count() )
emit readyToInvite( m_room, m_inviteeList,m_participants, editMessage->text() );
- QDialog::accept();
+ TQDialog::accept();
}
@@ -108,7 +108,7 @@ void YahooInviteListImpl::btnCancel_clicked()
{
kdDebug(14180) << k_funcinfo << endl;
- QDialog::reject();
+ TQDialog::reject();
}
@@ -116,12 +116,12 @@ void YahooInviteListImpl::btnAddCustom_clicked()
{
kdDebug(14180) << k_funcinfo << endl;
- QString userId;
+ TQString userId;
userId = editBuddyAdd->text();
if( userId.isEmpty() )
return;
- addInvitees( QStringList(userId) );
+ addInvitees( TQStringList(userId) );
editBuddyAdd->clear();
}
@@ -130,7 +130,7 @@ void YahooInviteListImpl::btnRemove_clicked()
{
kdDebug(14180) << k_funcinfo << endl;
- QStringList buddies;
+ TQStringList buddies;
for( uint i=0; i<listInvited->count(); i++ )
{
if (listInvited->isSelected(i))
@@ -146,7 +146,7 @@ void YahooInviteListImpl::btnAdd_clicked()
{
kdDebug(14180) << k_funcinfo << endl;
- QStringList buddies;
+ TQStringList buddies;
for( uint i=0; i<listFriends->count(); i++ )
{
if (listFriends->isSelected(i))
diff --git a/kopete/protocols/yahoo/ui/yahooinvitelistimpl.h b/kopete/protocols/yahoo/ui/yahooinvitelistimpl.h
index 76577f36..94fa6402 100644
--- a/kopete/protocols/yahoo/ui/yahooinvitelistimpl.h
+++ b/kopete/protocols/yahoo/ui/yahooinvitelistimpl.h
@@ -18,7 +18,7 @@
#ifndef YAHOO_INVITE_LIST_IMPL
#define YAHOO_INVITE_LIST_IMPL
-#include <qwidget.h>
+#include <tqwidget.h>
#include "yahooinvitelistbase.h"
@@ -26,18 +26,18 @@ class YahooInviteListImpl : public YahooInviteListBase
{
Q_OBJECT
public:
- YahooInviteListImpl(QWidget *parent=0, const char *name=0);
+ YahooInviteListImpl(TQWidget *parent=0, const char *name=0);
~YahooInviteListImpl();
- void fillFriendList( const QStringList &buddies );
- void addInvitees( const QStringList &buddies );
- void removeInvitees( const QStringList &buddies );
- void setRoom( const QString &room );
- void addParticipant( const QString &participant );
+ void fillFriendList( const TQStringList &buddies );
+ void addInvitees( const TQStringList &buddies );
+ void removeInvitees( const TQStringList &buddies );
+ void setRoom( const TQString &room );
+ void addParticipant( const TQString &participant );
private:
signals:
- void readyToInvite( const QString &room, const QStringList &buddies, const QStringList &participants, const QString &msg );
+ void readyToInvite( const TQString &room, const TQStringList &buddies, const TQStringList &participants, const TQString &msg );
protected slots:
public slots:
@@ -49,10 +49,10 @@ public slots:
private:
void updateListBoxes();
- QStringList m_buddyList;
- QStringList m_inviteeList;
- QStringList m_participants;
- QString m_room;
+ TQStringList m_buddyList;
+ TQStringList m_inviteeList;
+ TQStringList m_participants;
+ TQString m_room;
};
#endif
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 );
diff --git a/kopete/protocols/yahoo/ui/yahoouserinfodialog.h b/kopete/protocols/yahoo/ui/yahoouserinfodialog.h
index 6500d412..e8529033 100644
--- a/kopete/protocols/yahoo/ui/yahoouserinfodialog.h
+++ b/kopete/protocols/yahoo/ui/yahoouserinfodialog.h
@@ -33,7 +33,7 @@ class YahooUserInfoDialog : public KDialogBase
{
Q_OBJECT
public:
- YahooUserInfoDialog( YahooContact *c, QWidget* parent = 0, const char* name = 0 );
+ YahooUserInfoDialog( YahooContact *c, TQWidget* parent = 0, const char* name = 0 );
void setAccountConnected( bool isOnline );
signals:
void saveYABEntry( YABEntry & );
diff --git a/kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp b/kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp
index 1c7d4ef7..caa3c75a 100644
--- a/kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp
+++ b/kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp
@@ -16,39 +16,39 @@
#include "yahoowebcamdialog.h"
-#include <qframe.h>
-#include <qobject.h>
-#include <qwidget.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qvbox.h>
+#include <tqframe.h>
+#include <tqobject.h>
+#include <tqwidget.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqvbox.h>
#include <kdebug.h>
#include <klocale.h>
#include <webcamwidget.h>
-YahooWebcamDialog::YahooWebcamDialog( const QString &contactId, QWidget * parent, const char * name )
+YahooWebcamDialog::YahooWebcamDialog( const TQString &contactId, TQWidget * parent, const char * name )
: KDialogBase( KDialogBase::Plain, i18n( "Webcam for %1" ).arg( contactId ),
KDialogBase::Close, KDialogBase::Close, parent, name, false, true /*seperator*/ )
{
- setInitialSize( QSize(320,290), false );
+ setInitialSize( TQSize(320,290), false );
setEscapeButton( KDialogBase::Close );
- QObject::connect( this, SIGNAL( closeClicked() ), this, SIGNAL( closingWebcamDialog() ) );
+ TQObject::connect( this, TQT_SIGNAL( closeClicked() ), this, TQT_SIGNAL( closingWebcamDialog() ) );
contactName = contactId;
- QWidget *page = plainPage();
+ TQWidget *page = plainPage();
setMainWidget(page);
- QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
+ TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() );
m_imageContainer = new Kopete::WebcamWidget( page );
m_imageContainer->setText( i18n( "No webcam image received" ) );
m_imageContainer->setMinimumSize(320,240);
- m_imageContainer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
+ m_imageContainer->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
topLayout->add( m_imageContainer );
- m_Viewer = new QLabel( page );
- m_Viewer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
+ m_Viewer = new TQLabel( page );
+ m_Viewer->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
m_Viewer->hide();
topLayout->add( m_Viewer );
@@ -60,20 +60,20 @@ YahooWebcamDialog::~ YahooWebcamDialog( )
}
-void YahooWebcamDialog::newImage( const QPixmap &image )
+void YahooWebcamDialog::newImage( const TQPixmap &image )
{
m_imageContainer->updatePixmap( image );
}
void YahooWebcamDialog::webcamPaused()
{
- m_imageContainer->setText( QString::fromLatin1("*** Webcam paused ***") );
+ m_imageContainer->setText( TQString::fromLatin1("*** Webcam paused ***") );
}
void YahooWebcamDialog::webcamClosed( int reason )
{
kdDebug(14180) << k_funcinfo << "webcam closed with reason?? " << reason <<endl;
- QString closeReason;
+ TQString closeReason;
switch ( reason )
{
case 1:
@@ -92,13 +92,13 @@ void YahooWebcamDialog::webcamClosed( int reason )
m_imageContainer->setText( closeReason );
}
-void YahooWebcamDialog::setViewer( const QStringList &viewer )
+void YahooWebcamDialog::setViewer( const TQStringList &viewer )
{
- QString s = i18n( "%1 viewer(s)" ).arg( viewer.size() );
+ TQString s = i18n( "%1 viewer(s)" ).arg( viewer.size() );
if( viewer.size() )
{
s += ": ";
- for ( QStringList::ConstIterator it = viewer.begin(); it != viewer.end(); ++it ) {
+ for ( TQStringList::ConstIterator it = viewer.begin(); it != viewer.end(); ++it ) {
if( it != viewer.begin() )
s += ", ";
s += *it;
diff --git a/kopete/protocols/yahoo/ui/yahoowebcamdialog.h b/kopete/protocols/yahoo/ui/yahoowebcamdialog.h
index 8400e53d..8f130e03 100644
--- a/kopete/protocols/yahoo/ui/yahoowebcamdialog.h
+++ b/kopete/protocols/yahoo/ui/yahoowebcamdialog.h
@@ -17,7 +17,7 @@
#ifndef YAHOOWEBCAMDIALOG_H_
#define YAHOOWEBCAMDIALOG_H_
-#include <qstring.h>
+#include <tqstring.h>
#include <kdialogbase.h>
@@ -34,12 +34,12 @@ class YahooWebcamDialog : public KDialogBase
{
Q_OBJECT
public:
- YahooWebcamDialog( const QString &, QWidget* parent = 0, const char* name = 0 );
+ YahooWebcamDialog( const TQString &, TQWidget* parent = 0, const char* name = 0 );
~YahooWebcamDialog();
- void setViewer( const QStringList & );
+ void setViewer( const TQStringList & );
public slots:
- void newImage( const QPixmap &image );
+ void newImage( const TQPixmap &image );
void webcamClosed( int );
void webcamPaused();
signals:
@@ -47,8 +47,8 @@ signals:
private:
Kopete::WebcamWidget *m_imageContainer;
- QLabel *m_Viewer;
- QString contactName;
+ TQLabel *m_Viewer;
+ TQString contactName;
};