summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/groupwise/ui/gwsearch.cpp
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/groupwise/ui/gwsearch.cpp
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/groupwise/ui/gwsearch.cpp')
-rw-r--r--kopete/protocols/groupwise/ui/gwsearch.cpp52
1 files changed, 26 insertions, 26 deletions
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 <qcombobox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qlistview.h>
-#include <qpushbutton.h>
-//#include <qvaluelist.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqlistview.h>
+#include <tqpushbutton.h>
+//#include <tqvaluelist.h>
#include <kdebug.h>
#include <klocale.h>
@@ -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() )