summaryrefslogtreecommitdiffstats
path: root/kmail/recipientspicker.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/recipientspicker.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/recipientspicker.h')
-rw-r--r--kmail/recipientspicker.h86
1 files changed, 43 insertions, 43 deletions
diff --git a/kmail/recipientspicker.h b/kmail/recipientspicker.h
index 4f8b82bb8..82e1d0bf7 100644
--- a/kmail/recipientspicker.h
+++ b/kmail/recipientspicker.h
@@ -30,9 +30,9 @@
#include <kabc/addressee.h>
#include <kabc/stdaddressbook.h>
-#include <qwidget.h>
-#include <qdialog.h>
-#include <qtooltip.h>
+#include <tqwidget.h>
+#include <tqdialog.h>
+#include <tqtooltip.h>
class QComboBox;
@@ -52,7 +52,7 @@ class LDAPSearchDialog;
class RecipientItem
{
public:
- typedef QValueList<RecipientItem *> List;
+ typedef TQValueList<RecipientItem *> List;
#ifdef KDEPIM_NEW_DISTRLISTS
RecipientItem( KABC::AddressBook *ab );
@@ -63,44 +63,44 @@ class RecipientItem
void setDistributionList( KABC::DistributionList * );
KABC::DistributionList * distributionList();
#endif
- void setAddressee( const KABC::Addressee &, const QString &email );
+ void setAddressee( const KABC::Addressee &, const TQString &email );
- void setRecipientType( const QString &type );
- QString recipientType() const;
+ void setRecipientType( const TQString &type );
+ TQString recipientType() const;
- QString recipient() const;
+ TQString recipient() const;
- QPixmap icon() const;
- QString name() const;
- QString email() const;
+ TQPixmap icon() const;
+ TQString name() const;
+ TQString email() const;
- QString key() const { return mKey; }
+ TQString key() const { return mKey; }
- QString tooltip() const;
+ TQString tooltip() const;
private:
#ifdef KDEPIM_NEW_DISTRLISTS
- QString createTooltip( KPIM::DistributionList & ) const;
+ TQString createTooltip( KPIM::DistributionList & ) const;
#else
- QString createTooltip( KABC::DistributionList * ) const;
+ TQString createTooltip( KABC::DistributionList * ) const;
#endif
KABC::Addressee mAddressee;
- QString mName;
- QString mEmail;
- QString mRecipient;
+ TQString mName;
+ TQString mEmail;
+ TQString mRecipient;
#ifdef KDEPIM_NEW_DISTRLISTS
KPIM::DistributionList mDistributionList;
KABC::AddressBook *mAddressBook;
#else
KABC::DistributionList *mDistributionList;
#endif
- QString mType;
- QString mTooltip;
+ TQString mType;
+ TQString mTooltip;
- QPixmap mIcon;
+ TQPixmap mIcon;
- QString mKey;
+ TQString mKey;
};
class RecipientViewItem : public KListViewItem
@@ -117,10 +117,10 @@ class RecipientViewItem : public KListViewItem
class RecipientsListToolTip : public QToolTip
{
public:
- RecipientsListToolTip( QWidget *parent, KListView * );
+ RecipientsListToolTip( TQWidget *parent, KListView * );
protected:
- void maybeTip( const QPoint &pos );
+ void maybeTip( const TQPoint &pos );
private:
KListView *mListView;
@@ -129,14 +129,14 @@ class RecipientsListToolTip : public QToolTip
class RecipientsCollection
{
public:
- RecipientsCollection( const QString & );
+ RecipientsCollection( const TQString & );
~RecipientsCollection();
void setReferenceContainer( bool );
bool isReferenceContainer() const;
- void setTitle( const QString & );
- QString title() const;
+ void setTitle( const TQString & );
+ TQString title() const;
void addItem( RecipientItem * );
@@ -149,28 +149,28 @@ class RecipientsCollection
void deleteAll();
- QString id() const;
+ TQString id() const;
private:
// flag to indicate if this collection contains just references
// or should manage memory (de)allocation as well.
bool mIsReferenceContainer;
- QString mId;
- QString mTitle;
- QMap<QString, RecipientItem *> mKeyMap;
+ TQString mId;
+ TQString mTitle;
+ TQMap<TQString, RecipientItem *> mKeyMap;
};
class SearchLine : public KListViewSearchLine
{
Q_OBJECT
public:
- SearchLine( QWidget *parent, KListView *listView );
+ SearchLine( TQWidget *parent, KListView *listView );
signals:
void downPressed();
protected:
- void keyPressEvent( QKeyEvent * );
+ void keyPressEvent( TQKeyEvent * );
};
using namespace KABC;
@@ -179,7 +179,7 @@ class RecipientsPicker : public QDialog
{
Q_OBJECT
public:
- RecipientsPicker( QWidget *parent );
+ RecipientsPicker( TQWidget *parent );
~RecipientsPicker();
void setRecipients( const Recipient::List & );
@@ -196,14 +196,14 @@ class RecipientsPicker : public QDialog
void insertRecentAddresses();
void insertCollection( RecipientsCollection *coll );
- void keyPressEvent( QKeyEvent *ev );
+ void keyPressEvent( TQKeyEvent *ev );
void readConfig();
void writeConfig();
void pick( Recipient::Type );
- void setDefaultButton( QPushButton *button );
+ void setDefaultButton( TQPushButton *button );
void rebuildAllRecipientsList();
@@ -212,7 +212,7 @@ class RecipientsPicker : public QDialog
void slotToClicked();
void slotCcClicked();
void slotBccClicked();
- void slotPicked( QListViewItem * );
+ void slotPicked( TQListViewItem * );
void slotPicked();
void setFocusList();
void resetSearch();
@@ -222,18 +222,18 @@ class RecipientsPicker : public QDialog
private:
KABC::StdAddressBook *mAddressBook;
- QComboBox *mCollectionCombo;
+ TQComboBox *mCollectionCombo;
KListView *mRecipientList;
KListViewSearchLine *mSearchLine;
- QPushButton *mToButton;
- QPushButton *mCcButton;
- QPushButton *mBccButton;
+ TQPushButton *mToButton;
+ TQPushButton *mCcButton;
+ TQPushButton *mBccButton;
- QPushButton *mSearchLDAPButton;
+ TQPushButton *mSearchLDAPButton;
KPIM::LDAPSearchDialog *mLdapSearchDialog;
- QMap<int,RecipientsCollection *> mCollectionMap;
+ TQMap<int,RecipientsCollection *> mCollectionMap;
RecipientsCollection *mAllRecipients;
RecipientsCollection *mDistributionLists;
RecipientsCollection *mSelectedRecipients;