summaryrefslogtreecommitdiffstats
path: root/kaddressbook/kaddressbookview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/kaddressbookview.cpp')
-rw-r--r--kaddressbook/kaddressbookview.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kaddressbook/kaddressbookview.cpp b/kaddressbook/kaddressbookview.cpp
index 72e70675f..28fd81afd 100644
--- a/kaddressbook/kaddressbookview.cpp
+++ b/kaddressbook/kaddressbookview.cpp
@@ -21,8 +21,8 @@
without including the source code for Qt in the source distribution.
*/
-#include <qlayout.h>
-#include <qpopupmenu.h>
+#include <tqlayout.h>
+#include <tqpopupmenu.h>
#include <kabc/addressbook.h>
#include <kabc/distributionlistdialog.h>
@@ -37,14 +37,14 @@
#include "kaddressbookview.h"
-KAddressBookView::KAddressBookView( KAB::Core *core, QWidget *parent,
+KAddressBookView::KAddressBookView( KAB::Core *core, TQWidget *parent,
const char *name )
- : QWidget( parent, name ), mCore( core ), mFieldList()
+ : TQWidget( parent, name ), mCore( core ), mFieldList()
{
initGUI();
- connect( mCore->searchManager(), SIGNAL( contactsUpdated() ),
- SLOT( updateView() ) );
+ connect( mCore->searchManager(), TQT_SIGNAL( contactsUpdated() ),
+ TQT_SLOT( updateView() ) );
}
KAddressBookView::~KAddressBookView()
@@ -69,20 +69,20 @@ void KAddressBookView::writeConfig( KConfig* )
// Most of writing the config is handled by the ConfigureViewDialog
}
-QString KAddressBookView::selectedEmails()
+TQString KAddressBookView::selectedEmails()
{
bool first = true;
- QString emailAddrs;
- const QStringList uidList = selectedUids();
+ TQString emailAddrs;
+ const TQStringList uidList = selectedUids();
KABC::Addressee addr;
- QString email;
+ TQString email;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = uidList.begin(); it != uidList.end(); ++it ) {
addr = mCore->addressBook()->findByUid( *it );
if ( !addr.isEmpty() ) {
- QString m = QString::null;
+ TQString m = TQString::null;
if ( addr.emails().count() > 1 )
m = KABC::EmailSelector::getEmail( addr.emails(), addr.preferredEmail(), this );
@@ -122,10 +122,10 @@ KABC::Addressee::List KAddressBookView::addressees()
void KAddressBookView::initGUI()
{
// Create the layout
- QVBoxLayout *layout = new QVBoxLayout( this );
+ TQVBoxLayout *layout = new TQVBoxLayout( this );
// Add the view widget
- mViewWidget = new QWidget( this );
+ mViewWidget = new TQWidget( this );
layout->addWidget( mViewWidget );
}
@@ -144,7 +144,7 @@ KAddressBookView::DefaultFilterType KAddressBookView::defaultFilterType() const
return mDefaultFilterType;
}
-const QString &KAddressBookView::defaultFilterName() const
+const TQString &KAddressBookView::defaultFilterName() const
{
return mDefaultFilterName;
}
@@ -154,33 +154,33 @@ KAB::Core *KAddressBookView::core() const
return mCore;
}
-void KAddressBookView::popup( const QPoint &point )
+void KAddressBookView::popup( const TQPoint &point )
{
if ( !mCore->guiClient() ) {
kdWarning() << "No GUI client set!" << endl;
return;
}
- QPopupMenu *menu = static_cast<QPopupMenu*>( mCore->guiClient()->factory()->container( "RMBPopup",
+ TQPopupMenu *menu = static_cast<TQPopupMenu*>( mCore->guiClient()->factory()->container( "RMBPopup",
mCore->guiClient() ) );
if ( menu )
menu->popup( point );
}
-QWidget *KAddressBookView::viewWidget()
+TQWidget *KAddressBookView::viewWidget()
{
return mViewWidget;
}
void KAddressBookView::updateView()
{
- const QStringList uidList = selectedUids();
+ const TQStringList uidList = selectedUids();
refresh(); // This relists and deselects everything, in all views
if ( !uidList.isEmpty() ) {
// Keep previous selection
- QStringList::ConstIterator it, uidListEnd( uidList.end() );
+ TQStringList::ConstIterator it, uidListEnd( uidList.end() );
for ( it = uidList.begin(); it != uidListEnd; ++it )
setSelected( *it, true );
@@ -189,12 +189,12 @@ void KAddressBookView::updateView()
if ( !contacts.isEmpty() )
setFirstSelected( true );
else
- emit selected( QString::null );
+ emit selected( TQString::null );
}
}
ViewConfigureWidget *ViewFactory::configureWidget( KABC::AddressBook *ab,
- QWidget *parent,
+ TQWidget *parent,
const char *name )
{
return new ViewConfigureWidget( ab, parent, name );