From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/protocols/groupwise/ui/gwaddcontactpage.cpp | 34 ++++---- kopete/protocols/groupwise/ui/gwaddcontactpage.h | 8 +- .../protocols/groupwise/ui/gwchatpropsdialog.cpp | 38 ++++----- kopete/protocols/groupwise/ui/gwchatpropsdialog.h | 4 +- .../protocols/groupwise/ui/gwchatsearchdialog.cpp | 28 +++---- kopete/protocols/groupwise/ui/gwchatsearchdialog.h | 2 +- .../protocols/groupwise/ui/gwcontactproperties.cpp | 42 +++++----- .../protocols/groupwise/ui/gwcontactproperties.h | 10 +-- .../protocols/groupwise/ui/gweditaccountwidget.cpp | 28 +++---- .../protocols/groupwise/ui/gweditaccountwidget.h | 8 +- kopete/protocols/groupwise/ui/gwprivacydialog.cpp | 90 +++++++++++----------- kopete/protocols/groupwise/ui/gwprivacydialog.h | 4 +- .../groupwise/ui/gwreceiveinvitationdialog.cpp | 14 ++-- .../groupwise/ui/gwreceiveinvitationdialog.h | 2 +- kopete/protocols/groupwise/ui/gwsearch.cpp | 52 ++++++------- kopete/protocols/groupwise/ui/gwsearch.h | 10 +-- 16 files changed, 187 insertions(+), 187 deletions(-) (limited to 'kopete/protocols/groupwise/ui') diff --git a/kopete/protocols/groupwise/ui/gwaddcontactpage.cpp b/kopete/protocols/groupwise/ui/gwaddcontactpage.cpp index 93616f95..5ece3882 100644 --- a/kopete/protocols/groupwise/ui/gwaddcontactpage.cpp +++ b/kopete/protocols/groupwise/ui/gwaddcontactpage.cpp @@ -21,15 +21,15 @@ #include "gwaddcontactpage.h" -//#include -#include -#include -#include -#include -#include -#include -#include -#include +//#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -45,23 +45,23 @@ #include "gwaddui.h" #include "userdetailsmanager.h" -GroupWiseAddContactPage::GroupWiseAddContactPage( Kopete::Account * owner, QWidget* parent, const char* name ) +GroupWiseAddContactPage::GroupWiseAddContactPage( Kopete::Account * owner, TQWidget* parent, const char* name ) : AddContactPage(parent, name) { m_account = static_cast( owner ); kdDebug(GROUPWISE_DEBUG_GLOBAL) << k_funcinfo << endl; - ( new QVBoxLayout( this ) )->setAutoAdd( true ); + ( new TQVBoxLayout( this ) )->setAutoAdd( true ); if (owner->isConnected ()) { - m_searchUI = new GroupWiseContactSearch( m_account, QListView::Single, false, + m_searchUI = new GroupWiseContactSearch( m_account, TQListView::Single, false, this, "acwsearchwidget" ); show(); m_canadd = true; } else { - m_noaddMsg1 = new QLabel (i18n ("You need to be connected to be able to add contacts."), this); - m_noaddMsg2 = new QLabel (i18n ("Connect to GroupWise Messenger and try again."), this); + m_noaddMsg1 = new TQLabel (i18n ("You need to be connected to be able to add contacts."), this); + m_noaddMsg2 = new TQLabel (i18n ("Connect to GroupWise Messenger and try again."), this); m_canadd = false; } } @@ -77,10 +77,10 @@ bool GroupWiseAddContactPage::apply( Kopete::Account* account, Kopete::MetaConta { if ( validateData() ) { - QString contactId; - QString displayName; + TQString contactId; + TQString displayName; - QValueList< ContactDetails > selected = m_searchUI->selectedResults(); + TQValueList< ContactDetails > selected = m_searchUI->selectedResults(); if ( selected.count() == 1 ) { ContactDetails dt = selected.first(); diff --git a/kopete/protocols/groupwise/ui/gwaddcontactpage.h b/kopete/protocols/groupwise/ui/gwaddcontactpage.h index aa195edd..0b34d5c8 100644 --- a/kopete/protocols/groupwise/ui/gwaddcontactpage.h +++ b/kopete/protocols/groupwise/ui/gwaddcontactpage.h @@ -42,7 +42,7 @@ class GroupWiseAddContactPage : public AddContactPage { Q_OBJECT public: - GroupWiseAddContactPage( Kopete::Account * owner, QWidget* parent = 0, const char* name = 0 ); + GroupWiseAddContactPage( Kopete::Account * owner, TQWidget* parent = 0, const char* name = 0 ); ~GroupWiseAddContactPage(); /** @@ -54,14 +54,14 @@ public: */ virtual bool validateData(); protected: - QValueList< GroupWise::ContactDetails > m_searchResults; + TQValueList< GroupWise::ContactDetails > m_searchResults; unsigned char searchOperation( int comboIndex ); GroupWiseAccount * m_account; GroupWiseAddUI * m_gwAddUI; //TODO: make wrapper GroupWiseContactSearch * m_searchUI; - QLabel *m_noaddMsg1; - QLabel *m_noaddMsg2; + TQLabel *m_noaddMsg1; + TQLabel *m_noaddMsg2; bool m_canadd; }; diff --git a/kopete/protocols/groupwise/ui/gwchatpropsdialog.cpp b/kopete/protocols/groupwise/ui/gwchatpropsdialog.cpp index eabb75ab..1cfee7ee 100644 --- a/kopete/protocols/groupwise/ui/gwchatpropsdialog.cpp +++ b/kopete/protocols/groupwise/ui/gwchatpropsdialog.cpp @@ -16,10 +16,10 @@ ************************************************************************* */ -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -29,7 +29,7 @@ #include "gwchatpropsdialog.h" -GroupWiseChatPropsDialog::GroupWiseChatPropsDialog( QWidget * parent, const char * name ) +GroupWiseChatPropsDialog::GroupWiseChatPropsDialog( TQWidget * parent, const char * name ) : KDialogBase( parent, name, false, i18n( "Chatroom properties" ), KDialogBase::Ok|KDialogBase::Cancel, Ok, true ), m_dirty( false ) { @@ -37,7 +37,7 @@ GroupWiseChatPropsDialog::GroupWiseChatPropsDialog( QWidget * parent, const char } GroupWiseChatPropsDialog::GroupWiseChatPropsDialog( const GroupWise::Chatroom & room, bool readOnly, - QWidget * parent, const char * name ) + TQWidget * parent, const char * name ) : KDialogBase( parent, name, false, i18n( "Chatroom properties" ), KDialogBase::Ok|KDialogBase::Cancel, Ok, true ), m_dirty( false ) { @@ -49,7 +49,7 @@ GroupWiseChatPropsDialog::GroupWiseChatPropsDialog( const GroupWise::Chatroom & m_widget->m_query->setText( room.query ); m_widget->m_topic->setText( room.topic ); m_widget->m_archive->setChecked( room.archive ); - m_widget->m_maxUsers->setText( QString::number( room.maxUsers ) ); + m_widget->m_maxUsers->setText( TQString::number( room.maxUsers ) ); m_widget->m_createdOn->setText( room.createdOn.toString() ); m_widget->m_creator->setText( room.creatorDN ); @@ -82,18 +82,18 @@ void GroupWiseChatPropsDialog::initialise() { kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << endl; m_widget = new GroupWiseChatPropsWidget( this ); - connect( m_widget->m_topic, SIGNAL( textChanged( const QString & ) ), SLOT( slotWidgetChanged() ) ); - connect( m_widget->m_owner, SIGNAL( textChanged( const QString & ) ), SLOT( slotWidgetChanged() ) ); - connect( m_widget->m_createdOn, SIGNAL( textChanged( const QString & ) ), SLOT( slotWidgetChanged() ) ); - connect( m_widget->m_creator, SIGNAL( textChanged( const QString & ) ), SLOT( slotWidgetChanged() ) ); - connect( m_widget->m_description, SIGNAL( textChanged( const QString & ) ), SLOT( slotWidgetChanged() ) ); - connect( m_widget->m_disclaimer, SIGNAL( textChanged( const QString & ) ), SLOT( slotWidgetChanged() ) ); - connect( m_widget->m_query, SIGNAL( textChanged( const QString & ) ), SLOT( slotWidgetChanged() ) ); - connect( m_widget->m_archive, SIGNAL( textChanged( const QString & ) ), SLOT( slotWidgetChanged() ) ); - connect( m_widget->m_maxUsers, SIGNAL( textChanged( const QString & ) ), SLOT( slotWidgetChanged() ) ); - connect( m_widget->m_btnAddAcl, SIGNAL( clicked() ), SLOT( slotWidgetChanged() ) ); - connect( m_widget->m_btnEditAcl, SIGNAL( clicked() ), SLOT( slotWidgetChanged() ) ); - connect( m_widget->m_btnDeleteAcl, SIGNAL( clicked() ), SLOT( slotWidgetChanged() ) ); + connect( m_widget->m_topic, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( slotWidgetChanged() ) ); + connect( m_widget->m_owner, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( slotWidgetChanged() ) ); + connect( m_widget->m_createdOn, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( slotWidgetChanged() ) ); + connect( m_widget->m_creator, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( slotWidgetChanged() ) ); + connect( m_widget->m_description, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( slotWidgetChanged() ) ); + connect( m_widget->m_disclaimer, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( slotWidgetChanged() ) ); + connect( m_widget->m_query, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( slotWidgetChanged() ) ); + connect( m_widget->m_archive, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( slotWidgetChanged() ) ); + connect( m_widget->m_maxUsers, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( slotWidgetChanged() ) ); + connect( m_widget->m_btnAddAcl, TQT_SIGNAL( clicked() ), TQT_SLOT( slotWidgetChanged() ) ); + connect( m_widget->m_btnEditAcl, TQT_SIGNAL( clicked() ), TQT_SLOT( slotWidgetChanged() ) ); + connect( m_widget->m_btnDeleteAcl, TQT_SIGNAL( clicked() ), TQT_SLOT( slotWidgetChanged() ) ); setMainWidget( m_widget ); show(); } diff --git a/kopete/protocols/groupwise/ui/gwchatpropsdialog.h b/kopete/protocols/groupwise/ui/gwchatpropsdialog.h index 058d6b20..7228bb57 100644 --- a/kopete/protocols/groupwise/ui/gwchatpropsdialog.h +++ b/kopete/protocols/groupwise/ui/gwchatpropsdialog.h @@ -45,12 +45,12 @@ class GroupWiseChatPropsDialog : public KDialogBase /** * Construct an empty dialog */ - GroupWiseChatPropsDialog( QWidget * parent, const char * name ); + GroupWiseChatPropsDialog( TQWidget * parent, const char * name ); /** * Construct a populated dialog */ GroupWiseChatPropsDialog( const GroupWise::Chatroom & room, bool readOnly, - QWidget * parent, const char * name ); + TQWidget * parent, const char * name ); ~GroupWiseChatPropsDialog() {} diff --git a/kopete/protocols/groupwise/ui/gwchatsearchdialog.cpp b/kopete/protocols/groupwise/ui/gwchatsearchdialog.cpp index fb67a03e..b9021b1f 100644 --- a/kopete/protocols/groupwise/ui/gwchatsearchdialog.cpp +++ b/kopete/protocols/groupwise/ui/gwchatsearchdialog.cpp @@ -16,7 +16,7 @@ ************************************************************************* */ -#include +#include #include #include @@ -34,7 +34,7 @@ #include "gwchatsearchdialog.h" -GroupWiseChatSearchDialog::GroupWiseChatSearchDialog( GroupWiseAccount * account, QWidget *parent, const char *name ) +GroupWiseChatSearchDialog::GroupWiseChatSearchDialog( GroupWiseAccount * account, TQWidget *parent, const char *name ) : KDialogBase( parent, name, false, i18n( "Search Chatrooms" ), KDialogBase::Ok|KDialogBase::Apply|KDialogBase::Cancel, Ok, true ), m_account( account ) { @@ -44,12 +44,12 @@ GroupWiseChatSearchDialog::GroupWiseChatSearchDialog( GroupWiseAccount * account m_manager = m_account->client()->chatroomManager(); - connect ( m_manager, SIGNAL( updated() ), SLOT( slotManagerUpdated() ) ); - connect ( m_manager, SIGNAL( gotProperties( const GroupWise::Chatroom & ) ), - SLOT( slotGotProperties( const GroupWise::Chatroom & ) ) ); + connect ( m_manager, TQT_SIGNAL( updated() ), TQT_SLOT( slotManagerUpdated() ) ); + connect ( m_manager, TQT_SIGNAL( gotProperties( const GroupWise::Chatroom & ) ), + TQT_SLOT( slotGotProperties( const GroupWise::Chatroom & ) ) ); - connect( m_widget->m_btnRefresh, SIGNAL( clicked() ), SLOT( slotUpdateClicked() ) ); - connect( m_widget->m_btnProperties, SIGNAL( clicked() ), SLOT( slotPropertiesClicked() ) ); + connect( m_widget->m_btnRefresh, TQT_SIGNAL( clicked() ), TQT_SLOT( slotUpdateClicked() ) ); + connect( m_widget->m_btnProperties, TQT_SIGNAL( clicked() ), TQT_SLOT( slotPropertiesClicked() ) ); m_manager->updateRooms(); show(); @@ -63,12 +63,12 @@ void GroupWiseChatSearchDialog::slotUpdateClicked() { kdDebug ( GROUPWISE_DEBUG_GLOBAL ) << "updating chatroom list " << endl; m_widget->m_chatrooms->clear(); - QListViewItem * first = m_widget->m_chatrooms->firstChild(); - QString updateMessage = i18n("Updating chatroom list..." ); + TQListViewItem * first = m_widget->m_chatrooms->firstChild(); + TQString updateMessage = i18n("Updating chatroom list..." ); /* if ( first ) - new QListViewItem( first, updateMessage ); + new TQListViewItem( first, updateMessage ); else*/ - new QListViewItem( m_widget->m_chatrooms, updateMessage ); + new TQListViewItem( m_widget->m_chatrooms, updateMessage ); m_manager->updateRooms(); } @@ -80,17 +80,17 @@ void GroupWiseChatSearchDialog::slotManagerUpdated() const ChatroomMap::iterator end = rooms.end(); while ( it != end ) { - new QListViewItem( m_widget->m_chatrooms, + new TQListViewItem( m_widget->m_chatrooms, it.data().displayName, m_account->protocol()->dnToDotted( it.data().ownerDN ), - QString::number( it.data().participantsCount ) ); + TQString::number( it.data().participantsCount ) ); ++it; } } void GroupWiseChatSearchDialog::slotPropertiesClicked() { - QListViewItem * selected = m_widget->m_chatrooms->selectedItem(); + TQListViewItem * selected = m_widget->m_chatrooms->selectedItem(); if ( selected ) { m_manager->requestProperties( selected->text( 0 ) ); diff --git a/kopete/protocols/groupwise/ui/gwchatsearchdialog.h b/kopete/protocols/groupwise/ui/gwchatsearchdialog.h index 667e6394..c65cfa43 100644 --- a/kopete/protocols/groupwise/ui/gwchatsearchdialog.h +++ b/kopete/protocols/groupwise/ui/gwchatsearchdialog.h @@ -30,7 +30,7 @@ class GroupWiseChatSearchDialog : public KDialogBase { Q_OBJECT public: - GroupWiseChatSearchDialog( GroupWiseAccount * account, QWidget * parent, const char * name ); + GroupWiseChatSearchDialog( GroupWiseAccount * account, TQWidget * parent, const char * name ); ~GroupWiseChatSearchDialog(); protected: void populateWidget(); diff --git a/kopete/protocols/groupwise/ui/gwcontactproperties.cpp b/kopete/protocols/groupwise/ui/gwcontactproperties.cpp index 120296ce..92f4da11 100644 --- a/kopete/protocols/groupwise/ui/gwcontactproperties.cpp +++ b/kopete/protocols/groupwise/ui/gwcontactproperties.cpp @@ -16,13 +16,13 @@ ************************************************************************* */ -#include -#include -#include -#include +#include +#include +#include +#include #include -#include -#include +#include +#include #include #include @@ -41,8 +41,8 @@ #include "gwcontactproperties.h" -GroupWiseContactProperties::GroupWiseContactProperties( GroupWiseContact * contact, QWidget *parent, const char *name) - : QObject(parent, name) +GroupWiseContactProperties::GroupWiseContactProperties( GroupWiseContact * contact, TQWidget *parent, const char *name) + : TQObject(parent, name) { init(); // set up the contents of the props widget @@ -56,8 +56,8 @@ GroupWiseContactProperties::GroupWiseContactProperties( GroupWiseContact * conta m_dialog->show(); } -GroupWiseContactProperties::GroupWiseContactProperties( GroupWise::ContactDetails cd, QWidget *parent, const char *name ) - : QObject(parent, name) +GroupWiseContactProperties::GroupWiseContactProperties( GroupWise::ContactDetails cd, TQWidget *parent, const char *name ) + : TQObject(parent, name) { init(); // set up the contents of the props widget @@ -78,28 +78,28 @@ GroupWiseContactProperties::~GroupWiseContactProperties() void GroupWiseContactProperties::init() { - m_dialog = new KDialogBase( ::qt_cast( parent() ), "gwcontactpropsdialog", false, i18n( "Contact Properties" ), KDialogBase::Ok ); + m_dialog = new KDialogBase( ::qt_cast( parent() ), "gwcontactpropsdialog", false, i18n( "Contact Properties" ), KDialogBase::Ok ); m_propsWidget = new GroupWiseContactPropsWidget( m_dialog ); // set up the context menu and copy action - m_copyAction = KStdAction::copy( this, SLOT( slotCopy() ), 0 ); + m_copyAction = KStdAction::copy( this, TQT_SLOT( slotCopy() ), 0 ); connect( m_propsWidget->m_propsView, - SIGNAL( contextMenuRequested( QListViewItem *, const QPoint & , int) ), - SLOT( slotShowContextMenu( QListViewItem *, const QPoint & ) ) ); + TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint & , int) ), + TQT_SLOT( slotShowContextMenu( TQListViewItem *, const TQPoint & ) ) ); // insert the props widget into the dialog m_dialog->setMainWidget( m_propsWidget ); } -void GroupWiseContactProperties::setupProperties( QMap< QString, QString > serverProps ) +void GroupWiseContactProperties::setupProperties( TQMap< TQString, TQString > serverProps ) { m_propsWidget->m_propsView->header()->hide(); - QMap< QString, QString >::Iterator it; - QMap< QString, QString >::Iterator end = serverProps.end(); + TQMap< TQString, TQString >::Iterator it; + TQMap< TQString, TQString >::Iterator end = serverProps.end(); for ( it = serverProps.begin(); it != end; ++it ) { kdDebug( GROUPWISE_DEBUG_GLOBAL ) << " adding property: " << it.key() << ", " << it.data() << endl; - QString key = it.key(); - QString localised; + TQString key = it.key(); + TQString localised; if ( key == "telephoneNumber" ) localised = i18n( "Telephone Number" ); else if ( key == "OU" ) @@ -121,13 +121,13 @@ void GroupWiseContactProperties::setupProperties( QMap< QString, QString > serve } } -void GroupWiseContactProperties::slotShowContextMenu( QListViewItem * item, const QPoint & pos ) +void GroupWiseContactProperties::slotShowContextMenu( TQListViewItem * item, const TQPoint & pos ) { if ( item ) kdDebug( GROUPWISE_DEBUG_GLOBAL ) << "for item " << item->text(0) << ", " << item->text(1) << endl; else kdDebug( GROUPWISE_DEBUG_GLOBAL ) << "no selected item" << endl; - QPopupMenu * popupMenu = new QPopupMenu( m_propsWidget->m_propsView ); + TQPopupMenu * popupMenu = new TQPopupMenu( m_propsWidget->m_propsView ); m_copyAction->plug( popupMenu ); popupMenu->exec( pos ); } diff --git a/kopete/protocols/groupwise/ui/gwcontactproperties.h b/kopete/protocols/groupwise/ui/gwcontactproperties.h index 5684cf2a..4538644e 100644 --- a/kopete/protocols/groupwise/ui/gwcontactproperties.h +++ b/kopete/protocols/groupwise/ui/gwcontactproperties.h @@ -20,7 +20,7 @@ #define GROUPWISECONTACTPROPERTIES_H -#include +#include class GroupWiseContactPropsWidget; class KDialogBase; @@ -39,17 +39,17 @@ public: /** * Display properties given a GroupWiseContact */ - GroupWiseContactProperties( GroupWiseContact * contact, QWidget *parent, const char *name ); + GroupWiseContactProperties( GroupWiseContact * contact, TQWidget *parent, const char *name ); /** * Display properties given a GroupWise::ContactDetails */ - GroupWiseContactProperties( GroupWise::ContactDetails contactDetails, QWidget *parent = 0, const char *name = 0 ); + GroupWiseContactProperties( GroupWise::ContactDetails contactDetails, TQWidget *parent = 0, const char *name = 0 ); ~GroupWiseContactProperties(); protected: - void setupProperties( QMap< QString, QString > serverProps ); + void setupProperties( TQMap< TQString, TQString > serverProps ); void init(); protected slots: - void slotShowContextMenu( QListViewItem *, const QPoint & ); + void slotShowContextMenu( TQListViewItem *, const TQPoint & ); void slotCopy(); private: GroupWiseContactPropsWidget * m_propsWidget; diff --git a/kopete/protocols/groupwise/ui/gweditaccountwidget.cpp b/kopete/protocols/groupwise/ui/gweditaccountwidget.cpp index 87468ccf..7f049d7c 100644 --- a/kopete/protocols/groupwise/ui/gweditaccountwidget.cpp +++ b/kopete/protocols/groupwise/ui/gweditaccountwidget.cpp @@ -19,10 +19,10 @@ ************************************************************************* */ -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -40,16 +40,16 @@ #include "gweditaccountwidget.h" -GroupWiseEditAccountWidget::GroupWiseEditAccountWidget( QWidget* parent, Kopete::Account* theAccount) -: QWidget( parent ), KopeteEditAccountWidget( theAccount ) +GroupWiseEditAccountWidget::GroupWiseEditAccountWidget( TQWidget* parent, Kopete::Account* theAccount) +: TQWidget( parent ), KopeteEditAccountWidget( theAccount ) { kdDebug(GROUPWISE_DEBUG_GLOBAL) << k_funcinfo << endl; - m_layout = new QVBoxLayout( this ); + m_layout = new TQVBoxLayout( this ); m_preferencesDialog = new GroupWiseAccountPreferences( this ); m_layout->addWidget( m_preferencesDialog ); - connect( m_preferencesDialog->m_password, SIGNAL( changed() ), this, SLOT( configChanged() ) ); - connect( m_preferencesDialog->m_server, SIGNAL( textChanged( const QString & ) ), this, SLOT( configChanged() ) ); - connect( m_preferencesDialog->m_port, SIGNAL( valueChanged( int ) ), this, SLOT( configChanged() ) ); + connect( m_preferencesDialog->m_password, TQT_SIGNAL( changed() ), this, TQT_SLOT( configChanged() ) ); + connect( m_preferencesDialog->m_server, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SLOT( configChanged() ) ); + connect( m_preferencesDialog->m_port, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( configChanged() ) ); if ( account() ) reOpen(); else @@ -60,9 +60,9 @@ GroupWiseEditAccountWidget::GroupWiseEditAccountWidget( QWidget* parent, Kopete: m_preferencesDialog->m_server->setText( config->readEntry( "DefaultServer" ) ); m_preferencesDialog->m_port->setValue( config->readNumEntry( "DefaultPort", 8300 ) ); } - QWidget::setTabOrder( m_preferencesDialog->m_userId, m_preferencesDialog->m_password->mRemembered ); - QWidget::setTabOrder( m_preferencesDialog->m_password->mRemembered, m_preferencesDialog->m_password->mPassword ); - QWidget::setTabOrder( m_preferencesDialog->m_password->mPassword, m_preferencesDialog->m_autoConnect ); + TQWidget::setTabOrder( m_preferencesDialog->m_userId, m_preferencesDialog->m_password->mRemembered ); + TQWidget::setTabOrder( m_preferencesDialog->m_password->mRemembered, m_preferencesDialog->m_password->mPassword ); + TQWidget::setTabOrder( m_preferencesDialog->m_password->mPassword, m_preferencesDialog->m_autoConnect ); } @@ -119,7 +119,7 @@ void GroupWiseEditAccountWidget::writeConfig() { kdDebug(GROUPWISE_DEBUG_GLOBAL) << k_funcinfo << endl; account()->configGroup()->writeEntry( "Server", m_preferencesDialog->m_server->text() ); - account()->configGroup()->writeEntry( "Port", QString::number( m_preferencesDialog->m_port->value() ) ); + account()->configGroup()->writeEntry( "Port", TQString::number( m_preferencesDialog->m_port->value() ) ); account()->configGroup()->writeEntry( "AlwaysAcceptInvitations", m_preferencesDialog->m_alwaysAccept->isChecked() ? "true" : "false" ); diff --git a/kopete/protocols/groupwise/ui/gweditaccountwidget.h b/kopete/protocols/groupwise/ui/gweditaccountwidget.h index 27c54ee2..038adb40 100644 --- a/kopete/protocols/groupwise/ui/gweditaccountwidget.h +++ b/kopete/protocols/groupwise/ui/gweditaccountwidget.h @@ -22,7 +22,7 @@ #ifndef TESTBEDEDITACCOUNTWIDGET_H #define TESTBEDEDITACCOUNTWIDGET_H -#include +#include #include class QVBoxLayout; @@ -33,11 +33,11 @@ class GroupWiseAccountPreferences; * A widget for editing this protocol's accounts * @author Will Stephenson */ -class GroupWiseEditAccountWidget : public QWidget, public KopeteEditAccountWidget +class GroupWiseEditAccountWidget : public TQWidget, public KopeteEditAccountWidget { Q_OBJECT public: - GroupWiseEditAccountWidget( QWidget* parent, Kopete::Account* account); + GroupWiseEditAccountWidget( TQWidget* parent, Kopete::Account* account); ~GroupWiseEditAccountWidget(); @@ -57,7 +57,7 @@ protected: void reOpen(); void writeConfig(); Kopete::Account *m_account; - QVBoxLayout *m_layout; + TQVBoxLayout *m_layout; GroupWiseAccountPreferences *m_preferencesDialog; }; diff --git a/kopete/protocols/groupwise/ui/gwprivacydialog.cpp b/kopete/protocols/groupwise/ui/gwprivacydialog.cpp index d46daf4a..f18d6737 100644 --- a/kopete/protocols/groupwise/ui/gwprivacydialog.cpp +++ b/kopete/protocols/groupwise/ui/gwprivacydialog.cpp @@ -16,11 +16,11 @@ ************************************************************************* */ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -39,16 +39,16 @@ class PrivacyLBI : public QListBoxPixmap { public: - PrivacyLBI( QListBox * listBox, const QPixmap & pixmap, const QString & text, const QString & dn ) - : QListBoxPixmap( listBox, pixmap, text ), m_dn( dn ) + PrivacyLBI( TQListBox * listBox, const TQPixmap & pixmap, const TQString & text, const TQString & dn ) + : TQListBoxPixmap( listBox, pixmap, text ), m_dn( dn ) { } - QString dn() { return m_dn; } + TQString dn() { return m_dn; } private: - QString m_dn; + TQString m_dn; }; -GroupWisePrivacyDialog::GroupWisePrivacyDialog( GroupWiseAccount * account, QWidget *parent, const char *name ) +GroupWisePrivacyDialog::GroupWisePrivacyDialog( GroupWiseAccount * account, TQWidget *parent, const char *name ) : KDialogBase( parent, name, false, i18n( "Account specific privacy settings", "Manage Privacy for %1" ).arg( account->accountId() ), KDialogBase::Ok|KDialogBase::Apply|KDialogBase::Cancel, Ok, true ), m_account( account ), m_dirty( false ), m_searchDlg(0) { @@ -65,16 +65,16 @@ GroupWisePrivacyDialog::GroupWisePrivacyDialog( GroupWiseAccount * account, QWid populateWidgets(); - m_privacy->m_allowList->setSelectionMode( QListBox::Extended ); - m_privacy->m_denyList->setSelectionMode( QListBox::Extended ); + m_privacy->m_allowList->setSelectionMode( TQListBox::Extended ); + m_privacy->m_denyList->setSelectionMode( TQListBox::Extended ); - connect( m_privacy->m_btnAllow, SIGNAL( clicked() ), SLOT( slotAllowClicked() ) ); - connect( m_privacy->m_btnBlock, SIGNAL( clicked() ), SLOT( slotBlockClicked() ) ); - connect( m_privacy->m_btnAdd, SIGNAL( clicked() ), SLOT( slotAddClicked() ) ); - connect( m_privacy->m_btnRemove, SIGNAL( clicked() ), SLOT( slotRemoveClicked() ) ); - connect( m_privacy->m_allowList, SIGNAL( selectionChanged() ), SLOT( slotAllowListClicked() ) ); - connect( m_privacy->m_denyList, SIGNAL( selectionChanged() ), SLOT( slotDenyListClicked() ) ); - connect( mgr, SIGNAL( privacyChanged( const QString &, bool ) ), SLOT( slotPrivacyChanged() ) ); + connect( m_privacy->m_btnAllow, TQT_SIGNAL( clicked() ), TQT_SLOT( slotAllowClicked() ) ); + connect( m_privacy->m_btnBlock, TQT_SIGNAL( clicked() ), TQT_SLOT( slotBlockClicked() ) ); + connect( m_privacy->m_btnAdd, TQT_SIGNAL( clicked() ), TQT_SLOT( slotAddClicked() ) ); + connect( m_privacy->m_btnRemove, TQT_SIGNAL( clicked() ), TQT_SLOT( slotRemoveClicked() ) ); + connect( m_privacy->m_allowList, TQT_SIGNAL( selectionChanged() ), TQT_SLOT( slotAllowListClicked() ) ); + connect( m_privacy->m_denyList, TQT_SIGNAL( selectionChanged() ), TQT_SLOT( slotDenyListClicked() ) ); + connect( mgr, TQT_SIGNAL( privacyChanged( const TQString &, bool ) ), TQT_SLOT( slotPrivacyChanged() ) ); m_privacy->m_btnAdd->setEnabled( true ); m_privacy->m_btnAllow->setEnabled( false ); m_privacy->m_btnBlock->setEnabled( false ); @@ -97,18 +97,18 @@ void GroupWisePrivacyDialog::populateWidgets() PrivacyManager * mgr = m_account->client()->privacyManager(); // default policy - QString defaultPolicyText = i18n( "" ); + TQString defaultPolicyText = i18n( "" ); if ( mgr->defaultAllow() ) - m_defaultPolicy = new QListBoxText( m_privacy->m_allowList, defaultPolicyText ); + m_defaultPolicy = new TQListBoxText( m_privacy->m_allowList, defaultPolicyText ); else - m_defaultPolicy = new QListBoxText( m_privacy->m_denyList, defaultPolicyText ); + m_defaultPolicy = new TQListBoxText( m_privacy->m_denyList, defaultPolicyText ); - QPixmap icon = m_account->protocol()->groupwiseAvailable.iconFor( m_account ); + TQPixmap icon = m_account->protocol()->groupwiseAvailable.iconFor( m_account ); // allow list - QStringList allowList = mgr->allowList(); - QStringList::Iterator end = allowList.end(); - for ( QStringList::Iterator it = allowList.begin(); it != end; ++it ) + TQStringList allowList = mgr->allowList(); + TQStringList::Iterator end = allowList.end(); + for ( TQStringList::Iterator it = allowList.begin(); it != end; ++it ) { GroupWise::ContactDetails cd = m_account->client()->userDetailsManager()->details( *it ); if ( cd.fullName.isEmpty() ) @@ -116,9 +116,9 @@ void GroupWisePrivacyDialog::populateWidgets() new PrivacyLBI( m_privacy->m_allowList, icon, cd.fullName, *it ); } // deny list - QStringList denyList = mgr->denyList(); + TQStringList denyList = mgr->denyList(); end = denyList.end(); - for ( QStringList::Iterator it = denyList.begin(); it != end; ++it ) + for ( TQStringList::Iterator it = denyList.begin(); it != end; ++it ) { GroupWise::ContactDetails cd = m_account->client()->userDetailsManager()->details( *it ); if ( cd.fullName.isEmpty() ) @@ -148,7 +148,7 @@ void GroupWisePrivacyDialog::slotBlockClicked() if ( m_privacy->m_allowList->isSelected( i ) ) { m_dirty = true; - QListBoxItem * lbi = m_privacy->m_allowList->item( i ); + TQListBoxItem * lbi = m_privacy->m_allowList->item( i ); m_privacy->m_allowList->takeItem( lbi ); m_privacy->m_denyList->insertItem( lbi ); } @@ -164,7 +164,7 @@ void GroupWisePrivacyDialog::slotAllowClicked() if ( m_privacy->m_denyList->isSelected( i ) ) { m_dirty = true; - QListBoxItem * lbi = m_privacy->m_denyList->item( i ); + TQListBoxItem * lbi = m_privacy->m_denyList->item( i ); m_privacy->m_denyList->takeItem( lbi ); m_privacy->m_allowList->insertItem( lbi ); } @@ -179,10 +179,10 @@ void GroupWisePrivacyDialog::slotAddClicked() m_searchDlg = new KDialogBase( this, "privacysearchdialog", false, i18n( "Search for Contact to Block" ), KDialogBase::Ok|KDialogBase::Cancel ); - m_search = new GroupWiseContactSearch( m_account, QListView::Multi, false, m_searchDlg, "privacysearchwidget" ); + m_search = new GroupWiseContactSearch( m_account, TQListView::Multi, false, m_searchDlg, "privacysearchwidget" ); m_searchDlg->setMainWidget( m_search ); - connect( m_searchDlg, SIGNAL( okClicked() ), SLOT( slotSearchedForUsers() ) ); - connect( m_search, SIGNAL( selectionValidates( bool ) ), m_searchDlg, SLOT( enableButtonOK( bool ) ) ); + connect( m_searchDlg, TQT_SIGNAL( okClicked() ), TQT_SLOT( slotSearchedForUsers() ) ); + connect( m_search, TQT_SIGNAL( selectionValidates( bool ) ), m_searchDlg, TQT_SLOT( enableButtonOK( bool ) ) ); m_searchDlg->enableButtonOK( false ); } m_searchDlg->show(); @@ -191,10 +191,10 @@ void GroupWisePrivacyDialog::slotAddClicked() void GroupWisePrivacyDialog::slotSearchedForUsers() { // create an item for each result, in the block list - QValueList< ContactDetails > selected = m_search->selectedResults(); - QValueList< ContactDetails >::Iterator it = selected.begin(); - const QValueList< ContactDetails >::Iterator end = selected.end(); - QPixmap icon = m_account->protocol()->groupwiseAvailable.iconFor( m_account ); + TQValueList< ContactDetails > selected = m_search->selectedResults(); + TQValueList< ContactDetails >::Iterator it = selected.begin(); + const TQValueList< ContactDetails >::Iterator end = selected.end(); + TQPixmap icon = m_account->protocol()->groupwiseAvailable.iconFor( m_account ); for ( ; it != end; ++it ) { m_dirty = true; @@ -213,7 +213,7 @@ void GroupWisePrivacyDialog::slotRemoveClicked() if ( m_privacy->m_denyList->isSelected( i ) ) { m_dirty = true; - QListBoxItem * lbi = m_privacy->m_denyList->item( i ); + TQListBoxItem * lbi = m_privacy->m_denyList->item( i ); // can't remove the default policy if ( lbi == m_defaultPolicy ) continue; @@ -225,7 +225,7 @@ void GroupWisePrivacyDialog::slotRemoveClicked() if ( m_privacy->m_allowList->isSelected( i ) ) { m_dirty = true; - QListBoxItem * lbi = m_privacy->m_allowList->item( i ); + TQListBoxItem * lbi = m_privacy->m_allowList->item( i ); // can't remove the default policy if ( lbi == m_defaultPolicy ) continue; @@ -238,9 +238,9 @@ void GroupWisePrivacyDialog::slotRemoveClicked() void GroupWisePrivacyDialog::slotAllowListClicked() { // don't get into feedback - disconnect( m_privacy->m_denyList, SIGNAL( selectionChanged() ), this, SLOT( slotDenyListClicked() ) ); + disconnect( m_privacy->m_denyList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotDenyListClicked() ) ); m_privacy->m_denyList->clearSelection(); - connect( m_privacy->m_denyList, SIGNAL( selectionChanged() ), SLOT( slotDenyListClicked() ) ); + connect( m_privacy->m_denyList, TQT_SIGNAL( selectionChanged() ), TQT_SLOT( slotDenyListClicked() ) ); bool selected = false; for( int i = m_privacy->m_allowList->count() - 1; i >= 0 ; --i ) { @@ -258,9 +258,9 @@ void GroupWisePrivacyDialog::slotAllowListClicked() void GroupWisePrivacyDialog::slotDenyListClicked() { // don't get into feedback - disconnect( m_privacy->m_allowList, SIGNAL( selectionChanged() ), this, SLOT( slotAllowListClicked() ) ); + disconnect( m_privacy->m_allowList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotAllowListClicked() ) ); m_privacy->m_allowList->clearSelection(); - connect( m_privacy->m_allowList, SIGNAL( selectionChanged() ), SLOT( slotAllowListClicked() ) ); + connect( m_privacy->m_allowList, TQT_SIGNAL( selectionChanged() ), TQT_SLOT( slotAllowListClicked() ) ); bool selected = false; for( int i = m_privacy->m_denyList->count() - 1; i >= 0 ; --i ) { @@ -310,8 +310,8 @@ void GroupWisePrivacyDialog::commitChanges() if ( m_account->isConnected() ) { bool defaultDeny = false; - QStringList denyList; - QStringList allowList; + TQStringList denyList; + TQStringList allowList; // pass on our current allow, deny and default policy to the PrivacyManager for( int i = 0; i < (int)m_privacy->m_denyList->count(); ++i ) { diff --git a/kopete/protocols/groupwise/ui/gwprivacydialog.h b/kopete/protocols/groupwise/ui/gwprivacydialog.h index a5467e47..e296e5b2 100644 --- a/kopete/protocols/groupwise/ui/gwprivacydialog.h +++ b/kopete/protocols/groupwise/ui/gwprivacydialog.h @@ -35,7 +35,7 @@ class GroupWisePrivacyDialog : public KDialogBase { Q_OBJECT public: - GroupWisePrivacyDialog( GroupWiseAccount * account, QWidget * parent, const char * name ); + GroupWisePrivacyDialog( GroupWiseAccount * account, TQWidget * parent, const char * name ); ~GroupWisePrivacyDialog(); protected: void commitChanges(); @@ -59,7 +59,7 @@ private: GroupWiseAccount * m_account; GroupWisePrivacyWidget * m_privacy; GroupWiseContactSearch * m_search; - QListBoxItem * m_defaultPolicy; + TQListBoxItem * m_defaultPolicy; bool m_dirty; KDialogBase * m_searchDlg; }; diff --git a/kopete/protocols/groupwise/ui/gwreceiveinvitationdialog.cpp b/kopete/protocols/groupwise/ui/gwreceiveinvitationdialog.cpp index 5b0b4014..6005f61a 100644 --- a/kopete/protocols/groupwise/ui/gwreceiveinvitationdialog.cpp +++ b/kopete/protocols/groupwise/ui/gwreceiveinvitationdialog.cpp @@ -16,8 +16,8 @@ ************************************************************************* */ -#include -#include +#include +#include #include #include @@ -33,13 +33,13 @@ #include "gwreceiveinvitationdialog.h" -ReceiveInvitationDialog::ReceiveInvitationDialog( GroupWiseAccount * account, const ConferenceEvent & event, QWidget *parent, const char *name) +ReceiveInvitationDialog::ReceiveInvitationDialog( GroupWiseAccount * account, const ConferenceEvent & event, TQWidget *parent, const char *name) : KDialogBase( i18n("Invitation to Conversation"), KDialogBase::Yes|KDialogBase::No, KDialogBase::Yes, KDialogBase::No, parent, name, false ) { m_account = account; m_guid = event.guid; - connect( this, SIGNAL( yesClicked() ), SLOT( slotYesClicked() ) ); - connect( this, SIGNAL( noClicked() ), SLOT( slotNoClicked() ) ); + connect( this, TQT_SIGNAL( yesClicked() ), TQT_SLOT( slotYesClicked() ) ); + connect( this, TQT_SIGNAL( noClicked() ), TQT_SLOT( slotNoClicked() ) ); GroupWiseContact * c = account->contactForDN( event.user ); @@ -50,7 +50,7 @@ ReceiveInvitationDialog::ReceiveInvitationDialog( GroupWiseAccount * account, co m_wid->m_contactName->setText( event.user ); m_wid->m_dateTime->setText( KGlobal::locale()->formatDateTime( event.timeStamp ) ); - m_wid->m_message->setText( QString("%1").arg( event.message ) ); + m_wid->m_message->setText( TQString("%1").arg( event.message ) ); setMainWidget( m_wid ); } @@ -63,7 +63,7 @@ void ReceiveInvitationDialog::slotYesClicked() { m_account->client()->joinConference( m_guid ); // save the state of always accept invitations - QString alwaysAccept = m_wid->cb_dontShowAgain->isChecked() ? "true" : "false"; + TQString alwaysAccept = m_wid->cb_dontShowAgain->isChecked() ? "true" : "false"; m_account->configGroup()->writeEntry( "AlwaysAcceptInvitations", alwaysAccept ); deleteLater(); } diff --git a/kopete/protocols/groupwise/ui/gwreceiveinvitationdialog.h b/kopete/protocols/groupwise/ui/gwreceiveinvitationdialog.h index 0486c964..529ceaa3 100644 --- a/kopete/protocols/groupwise/ui/gwreceiveinvitationdialog.h +++ b/kopete/protocols/groupwise/ui/gwreceiveinvitationdialog.h @@ -32,7 +32,7 @@ class ReceiveInvitationDialog : public KDialogBase { Q_OBJECT public: - ReceiveInvitationDialog( GroupWiseAccount * account, const ConferenceEvent & event, QWidget *parent, const char *name ); + ReceiveInvitationDialog( GroupWiseAccount * account, const ConferenceEvent & event, TQWidget *parent, const char *name ); ~ReceiveInvitationDialog(); signals: void invitationAccepted( bool, const GroupWise::ConferenceGuid & guid ); diff --git a/kopete/protocols/groupwise/ui/gwsearch.cpp b/kopete/protocols/groupwise/ui/gwsearch.cpp index 1c80e3eb..885b6192 100644 --- a/kopete/protocols/groupwise/ui/gwsearch.cpp +++ b/kopete/protocols/groupwise/ui/gwsearch.cpp @@ -16,12 +16,12 @@ ************************************************************************* */ -#include -#include -#include -#include -#include -//#include +#include +#include +#include +#include +#include +//#include #include #include @@ -40,31 +40,31 @@ class GWSearchResultsLVI : public QListViewItem { public: - GWSearchResultsLVI( QListView * parent, GroupWise::ContactDetails details, int status, const QPixmap & statusPM/*, const QString & userId */) - : QListViewItem( parent, QString::null, details.givenName, details.surname, GroupWiseProtocol::protocol()->dnToDotted( details.dn ) ), m_details( details ), m_status( status ) + GWSearchResultsLVI( TQListView * parent, GroupWise::ContactDetails details, int status, const TQPixmap & statusPM/*, const TQString & userId */) + : TQListViewItem( parent, TQString::null, details.givenName, details.surname, GroupWiseProtocol::protocol()->dnToDotted( details.dn ) ), m_details( details ), m_status( status ) { setPixmap( 0, statusPM ); } - QString key( int column, bool ascending ) const + TQString key( int column, bool ascending ) const { if ( column == 0 ) - return QString::number( 99 - m_status ); + return TQString::number( 99 - m_status ); else - return QListViewItem::key( column, ascending ); + return TQListViewItem::key( column, ascending ); } GroupWise::ContactDetails m_details; int m_status; }; -GroupWiseContactSearch::GroupWiseContactSearch( GroupWiseAccount * account, QListView::SelectionMode mode, bool onlineOnly, QWidget *parent, const char *name) +GroupWiseContactSearch::GroupWiseContactSearch( GroupWiseAccount * account, TQListView::SelectionMode mode, bool onlineOnly, TQWidget *parent, const char *name) : GroupWiseContactSearchWidget(parent, name), m_account( account ), m_onlineOnly( onlineOnly ) { m_results->setSelectionMode( mode ); m_results->setAllColumnsShowFocus( true ); - connect( m_details, SIGNAL( clicked() ), SLOT( slotShowDetails() ) ); - connect( m_results, SIGNAL( selectionChanged() ), SLOT( slotValidateSelection() ) ); - connect( m_search, SIGNAL( clicked() ), SLOT( slotDoSearch() ) ); - connect( m_clear, SIGNAL( clicked() ), SLOT( slotClear() ) ); + connect( m_details, TQT_SIGNAL( clicked() ), TQT_SLOT( slotShowDetails() ) ); + connect( m_results, TQT_SIGNAL( selectionChanged() ), TQT_SLOT( slotValidateSelection() ) ); + connect( m_search, TQT_SIGNAL( clicked() ), TQT_SLOT( slotDoSearch() ) ); + connect( m_clear, TQT_SIGNAL( clicked() ), TQT_SLOT( slotClear() ) ); } @@ -84,7 +84,7 @@ void GroupWiseContactSearch::slotClear() void GroupWiseContactSearch::slotDoSearch() { // build a query - QValueList< GroupWise::UserSearchQueryTerm > searchTerms; + TQValueList< GroupWise::UserSearchQueryTerm > searchTerms; if ( !m_firstName->text().isEmpty() ) { GroupWise::UserSearchQueryTerm arg; @@ -130,7 +130,7 @@ void GroupWiseContactSearch::slotDoSearch() // start a search task SearchUserTask * st = new SearchUserTask( m_account->client()->rootTask() ); st->search( searchTerms ); - connect( st, SIGNAL( finished() ), SLOT( slotGotSearchResults() ) ); + connect( st, TQT_SIGNAL( finished() ), TQT_SLOT( slotGotSearchResults() ) ); st->go( true ); m_matchCount->setText( i18n( "Searching" ) ); } @@ -145,7 +145,7 @@ void GroupWiseContactSearch::slotShowDetails() { kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << endl; // get the first selected result - QValueList< ContactDetails > selected = selectedResults(); + TQValueList< ContactDetails > selected = selectedResults(); if ( selected.count() ) { // if they are already in our contact list, show that version @@ -167,8 +167,8 @@ void GroupWiseContactSearch::slotGotSearchResults() m_matchCount->setText( i18n( "1 matching user found", "%n matching users found", m_searchResults.count() ) ); m_results->clear(); - QValueList< GroupWise::ContactDetails >::Iterator it = m_searchResults.begin(); - QValueList< GroupWise::ContactDetails >::Iterator end = m_searchResults.end(); + TQValueList< GroupWise::ContactDetails >::Iterator it = m_searchResults.begin(); + TQValueList< GroupWise::ContactDetails >::Iterator end = m_searchResults.end(); for ( ; it != end; ++it ) { // it's necessary to change the status used for the LVIs, @@ -210,10 +210,10 @@ void GroupWiseContactSearch::slotGotSearchResults() slotValidateSelection(); } -QValueList< GroupWise::ContactDetails > GroupWiseContactSearch::selectedResults() +TQValueList< GroupWise::ContactDetails > GroupWiseContactSearch::selectedResults() { - QValueList< GroupWise::ContactDetails > lst; - QListViewItemIterator it( m_results ); + TQValueList< GroupWise::ContactDetails > lst; + TQListViewItemIterator it( m_results ); while ( it.current() ) { if ( it.current()->isSelected() ) lst.append( static_cast< GWSearchResultsLVI * >( it.current() )->m_details ); @@ -248,7 +248,7 @@ void GroupWiseContactSearch::slotValidateSelection() if ( m_onlineOnly ) { // check that one of the selected items is online - QListViewItemIterator it( m_results ); + TQListViewItemIterator it( m_results ); while ( it.current() ) { if ( it.current()->isSelected() && @@ -263,7 +263,7 @@ void GroupWiseContactSearch::slotValidateSelection() else { // check that at least one item is selected - QListViewItemIterator it( m_results ); + TQListViewItemIterator it( m_results ); while ( it.current() ) { if ( it.current()->isSelected() ) diff --git a/kopete/protocols/groupwise/ui/gwsearch.h b/kopete/protocols/groupwise/ui/gwsearch.h index 83ee205e..ec57cfb1 100644 --- a/kopete/protocols/groupwise/ui/gwsearch.h +++ b/kopete/protocols/groupwise/ui/gwsearch.h @@ -18,7 +18,7 @@ #ifndef GWSEARCH_H #define GWSEARCH_H -#include +#include #include "gwcontactsearch.h" class GroupWiseAccount; @@ -34,10 +34,10 @@ class GroupWiseContactSearch : public GroupWiseContactSearchWidget { Q_OBJECT public: - GroupWiseContactSearch( GroupWiseAccount * account, QListView::SelectionMode mode, bool onlineOnly, - QWidget *parent = 0, const char *name = 0); + GroupWiseContactSearch( GroupWiseAccount * account, TQListView::SelectionMode mode, bool onlineOnly, + TQWidget *parent = 0, const char *name = 0); ~GroupWiseContactSearch(); - QValueList< GroupWise::ContactDetails > selectedResults(); + TQValueList< GroupWise::ContactDetails > selectedResults(); signals: void selectionValidates( bool ); protected: @@ -50,7 +50,7 @@ protected slots: void slotShowDetails(); void slotValidateSelection(); private: - QValueList< GroupWise::ContactDetails > m_searchResults; + TQValueList< GroupWise::ContactDetails > m_searchResults; GroupWiseAccount * m_account; bool m_onlineOnly; }; -- cgit v1.2.3