summaryrefslogtreecommitdiffstats
path: root/kmail/recipientseditor.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/recipientseditor.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/recipientseditor.h')
-rw-r--r--kmail/recipientseditor.h88
1 files changed, 44 insertions, 44 deletions
diff --git a/kmail/recipientseditor.h b/kmail/recipientseditor.h
index 91adee7d0..92b5165f2 100644
--- a/kmail/recipientseditor.h
+++ b/kmail/recipientseditor.h
@@ -24,14 +24,14 @@
#ifndef RECIPIENTSEDITOR_H
#define RECIPIENTSEDITOR_H
-#include <qwidget.h>
-#include <qscrollview.h>
-#include <qguardedptr.h>
-#include <qlineedit.h>
-#include <qtooltip.h>
+#include <tqwidget.h>
+#include <tqscrollview.h>
+#include <tqguardedptr.h>
+#include <tqlineedit.h>
+#include <tqtooltip.h>
#include "kmlineeditspell.h"
-#include <qcombobox.h>
+#include <tqcombobox.h>
class RecipientsPicker;
@@ -44,28 +44,28 @@ class SideWidget;
class Recipient
{
public:
- typedef QValueList<Recipient> List;
+ typedef TQValueList<Recipient> List;
enum Type { To, Cc, Bcc, Undefined };
- Recipient( const QString &email = QString::null, Type type = To );
+ Recipient( const TQString &email = TQString::null, Type type = To );
void setType( Type );
Type type() const;
- void setEmail( const QString & );
- QString email() const;
+ void setEmail( const TQString & );
+ TQString email() const;
bool isEmpty() const;
static int typeToId( Type );
static Type idToType( int );
- QString typeLabel() const; static QString typeLabel( Type );
- static QStringList allTypeLabels();
+ TQString typeLabel() const; static TQString typeLabel( Type );
+ static TQStringList allTypeLabels();
private:
- QString mEmail;
+ TQString mEmail;
Type mType;
};
@@ -73,20 +73,20 @@ class RecipientComboBox : public QComboBox
{
Q_OBJECT
public:
- RecipientComboBox( QWidget *parent );
+ RecipientComboBox( TQWidget *parent );
signals:
void rightPressed();
protected:
- void keyPressEvent( QKeyEvent *ev );
+ void keyPressEvent( TQKeyEvent *ev );
};
class RecipientLineEdit : public KMLineEdit
{
Q_OBJECT
public:
- RecipientLineEdit( QWidget * parent ) :
+ RecipientLineEdit( TQWidget * parent ) :
KMLineEdit( true, parent ) {}
signals:
@@ -95,14 +95,14 @@ class RecipientLineEdit : public KMLineEdit
void rightPressed();
protected:
- void keyPressEvent( QKeyEvent *ev );
+ void keyPressEvent( TQKeyEvent *ev );
};
class RecipientLine : public QWidget
{
Q_OBJECT
public:
- RecipientLine( QWidget *parent );
+ RecipientLine( TQWidget *parent );
void setRecipient( const Recipient & );
Recipient recipient() const;
@@ -110,7 +110,7 @@ class RecipientLine : public QWidget
void setRecipientType( Recipient::Type );
Recipient::Type recipientType() const;
- void setRecipient( const QString & );
+ void setRecipient( const TQString & );
void activate();
bool isActive();
@@ -128,8 +128,8 @@ class RecipientLine : public QWidget
int setComboWidth( int w );
- void fixTabOrder( QWidget *previous );
- QWidget *tabOut() const;
+ void fixTabOrder( TQWidget *previous );
+ TQWidget *tabOut() const;
void clear();
@@ -147,12 +147,12 @@ class RecipientLine : public QWidget
void typeModified( RecipientLine * );
protected:
- void keyPressEvent( QKeyEvent * );
+ void keyPressEvent( TQKeyEvent * );
RecipientLineEdit* lineEdit() const { return mEdit; }
protected slots:
void slotReturnPressed();
- void analyzeLine( const QString & );
+ void analyzeLine( const TQString & );
void slotFocusUp();
void slotFocusDown();
void slotPropagateDeletion();
@@ -160,9 +160,9 @@ class RecipientLine : public QWidget
private:
friend class RecipientsView;
- QComboBox *mCombo;
+ TQComboBox *mCombo;
RecipientLineEdit *mEdit;
- QPushButton *mRemoveButton;
+ TQPushButton *mRemoveButton;
int mRecipientsCount;
bool mModified;
};
@@ -171,10 +171,10 @@ class RecipientsView : public QScrollView
{
Q_OBJECT
public:
- RecipientsView( QWidget *parent );
+ RecipientsView( TQWidget *parent );
- QSize minimumSizeHint() const;
- QSize sizeHint() const;
+ TQSize minimumSizeHint() const;
+ TQSize sizeHint() const;
RecipientLine *activeLine();
@@ -186,7 +186,7 @@ class RecipientsView : public QScrollView
@param recipient The recipient(s) you want to remove.
@param type The recipient type.
*/
- void removeRecipient( const QString & recipient, Recipient::Type type );
+ void removeRecipient( const TQString & recipient, Recipient::Type type );
/** Returns true if the user has made any modifications to the list of
recipients.
@@ -224,7 +224,7 @@ class RecipientsView : public QScrollView
void sizeHintChanged();
protected:
- void viewportResizeEvent( QResizeEvent * );
+ void viewportResizeEvent( TQResizeEvent * );
void resizeView();
protected slots:
@@ -238,8 +238,8 @@ class RecipientsView : public QScrollView
void moveCompletionPopup();
private:
- QPtrList<RecipientLine> mLines;
- QGuardedPtr<RecipientLine> mCurDelLine;
+ TQPtrList<RecipientLine> mLines;
+ TQGuardedPtr<RecipientLine> mCurDelLine;
int mLineHeight;
int mFirstColumnWidth;
bool mModified;
@@ -249,12 +249,12 @@ class RecipientsView : public QScrollView
class RecipientsToolTip : public QToolTip
{
public:
- RecipientsToolTip( RecipientsView *, QWidget *parent );
+ RecipientsToolTip( RecipientsView *, TQWidget *parent );
protected:
- void maybeTip( const QPoint & p );
+ void maybeTip( const TQPoint & p );
- QString line( const Recipient & );
+ TQString line( const Recipient & );
private:
RecipientsView *mView;
@@ -264,7 +264,7 @@ class SideWidget : public QWidget
{
Q_OBJECT
public:
- SideWidget( RecipientsView *view, QWidget *parent );
+ SideWidget( RecipientsView *view, TQWidget *parent );
~SideWidget();
RecipientsPicker* picker() const;
@@ -281,9 +281,9 @@ class SideWidget : public QWidget
private:
RecipientsView *mView;
- QLabel *mTotalLabel;
- QPushButton *mDistributionListButton;
- QPushButton *mSelectButton;
+ TQLabel *mTotalLabel;
+ TQPushButton *mDistributionListButton;
+ TQPushButton *mSelectButton;
/** The RecipientsPicker is lazy loaded, never access it directly,
only through picker() */
mutable RecipientsPicker *mRecipientPicker;
@@ -295,7 +295,7 @@ class RecipientsEditor : public QWidget
{
Q_OBJECT
public:
- RecipientsEditor( QWidget *parent );
+ RecipientsEditor( TQWidget *parent );
~RecipientsEditor();
void clear();
@@ -303,20 +303,20 @@ class RecipientsEditor : public QWidget
Recipient::List recipients() const;
RecipientsPicker* picker() const;
- void setRecipientString( const QString &, Recipient::Type );
- QString recipientString( Recipient::Type );
+ void setRecipientString( const TQString &, Recipient::Type );
+ TQString recipientString( Recipient::Type );
/** Adds a recipient (or multiple recipients) to one line of the editor.
@param recipient The recipient(s) you want to add.
@param type The recipient type.
*/
- void addRecipient( const QString & recipient, Recipient::Type type );
+ void addRecipient( const TQString & recipient, Recipient::Type type );
/** Removes the recipient provided it can be found and has the given type.
@param recipient The recipient(s) you want to remove.
@param type The recipient type.
*/
- void removeRecipient( const QString & recipient, Recipient::Type type );
+ void removeRecipient( const TQString & recipient, Recipient::Type type );
/** Returns true if the user has made any modifications to the list of
recipients.