summaryrefslogtreecommitdiffstats
path: root/libkdepim/addresseelineedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/addresseelineedit.h')
-rw-r--r--libkdepim/addresseelineedit.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/libkdepim/addresseelineedit.h b/libkdepim/addresseelineedit.h
index dacfd96a..5f8d2f49 100644
--- a/libkdepim/addresseelineedit.h
+++ b/libkdepim/addresseelineedit.h
@@ -26,11 +26,11 @@
#ifndef ADDRESSEELINEEDIT_H
#define ADDRESSEELINEEDIT_H
-#include <qobject.h>
-#include <qptrlist.h>
-#include <qtimer.h>
-#include <qpair.h>
-#include <qvaluelist.h>
+#include <tqobject.h>
+#include <tqptrlist.h>
+#include <tqtimer.h>
+#include <tqpair.h>
+#include <tqvaluelist.h>
#include <kabc/addressee.h>
@@ -44,8 +44,8 @@ class KConfig;
namespace KPIM {
class LdapSearch;
class LdapResult;
-typedef QValueList<LdapResult> LdapResultList;
-typedef QMap< QString, QPair<int,int> > CompletionItemsMap;
+typedef TQValueList<LdapResult> LdapResultList;
+typedef TQMap< TQString, QPair<int,int> > CompletionItemsMap;
}
namespace KPIM {
@@ -56,24 +56,24 @@ class KDE_EXPORT AddresseeLineEdit : public ClickLineEdit, public DCOPObject
Q_OBJECT
public:
- AddresseeLineEdit( QWidget* parent, bool useCompletion = true,
+ AddresseeLineEdit( TQWidget* parent, bool useCompletion = true,
const char *name = 0L);
virtual ~AddresseeLineEdit();
- virtual void setFont( const QFont& );
+ virtual void setFont( const TQFont& );
void allowSemiColonAsSeparator( bool );
public slots:
void cursorAtEnd();
void enableCompletion( bool enable );
/** Reimplemented for stripping whitespace after completion */
- virtual void setText( const QString& txt );
+ virtual void setText( const TQString& txt );
protected slots:
virtual void loadContacts();
protected:
void addContact( const KABC::Addressee&, int weight, int source = -1 );
- virtual void keyPressEvent( QKeyEvent* );
+ virtual void keyPressEvent( TQKeyEvent* );
/**
* Reimplemented for smart insertion of email addresses.
* Features:
@@ -82,22 +82,22 @@ class KDE_EXPORT AddresseeLineEdit : public ClickLineEdit, public DCOPObject
* - Recognizes email addresses which are protected against address
* harvesters, i.e. "name at kde dot org" and "name(at)kde.org"
*/
- virtual void insert( const QString &text );
+ virtual void insert( const TQString &text );
/** Reimplemented for smart insertion of pasted email addresses. */
virtual void paste();
/** Reimplemented for smart insertion with middle mouse button. */
- virtual void mouseReleaseEvent( QMouseEvent *e );
+ virtual void mouseReleaseEvent( TQMouseEvent *e );
/** Reimplemented for smart insertion of dragged email addresses. */
- virtual void dropEvent( QDropEvent *e );
+ virtual void dropEvent( TQDropEvent *e );
void doCompletion( bool ctrlT );
- virtual QPopupMenu *createPopupMenu();
+ virtual TQPopupMenu *createPopupMenu();
/**
* Adds the name of a completion source to the internal list of
* such sources and returns its index, such that that can be used
* for insertion of items associated with that source.
*/
- int addCompletionSource( const QString& );
+ int addCompletionSource( const TQString& );
/** return whether we are using sorted or weighted display */
static KCompletion::CompOrder completionOrder();
@@ -108,27 +108,27 @@ class KDE_EXPORT AddresseeLineEdit : public ClickLineEdit, public DCOPObject
private slots:
void slotCompletion();
- void slotPopupCompletion( const QString& );
- void slotReturnPressed( const QString& );
+ void slotPopupCompletion( const TQString& );
+ void slotReturnPressed( const TQString& );
void slotStartLDAPLookup();
void slotLDAPSearchData( const KPIM::LdapResultList& );
void slotEditCompletionOrder();
- void slotUserCancelled( const QString& );
+ void slotUserCancelled( const TQString& );
private:
- virtual bool eventFilter(QObject *o, QEvent *e);
+ virtual bool eventFilter(TQObject *o, TQEvent *e);
void init();
void startLoadingLDAPEntries();
void stopLDAPLookup();
- void setCompletedItems( const QStringList& items, bool autoSuggest );
- void addCompletionItem( const QString& string, int weight, int source, const QStringList * keyWords=0 );
- QString completionSearchText( QString& );
- const QStringList getAdjustedCompletionItems( bool fullSearch );
+ void setCompletedItems( const TQStringList& items, bool autoSuggest );
+ void addCompletionItem( const TQString& string, int weight, int source, const TQStringList * keyWords=0 );
+ TQString completionSearchText( TQString& );
+ const TQStringList getAdjustedCompletionItems( bool fullSearch );
void updateSearchString();
- QString m_previousAddresses;
- QString m_searchString;
+ TQString m_previousAddresses;
+ TQString m_searchString;
bool m_useCompletion;
bool m_completionInitialized;
bool m_smartPaste;
@@ -137,16 +137,16 @@ class KDE_EXPORT AddresseeLineEdit : public ClickLineEdit, public DCOPObject
bool m_searchExtended; //has \" been added?
bool m_useSemiColonAsSeparator;
- //QMap<QString, KABC::Addressee> m_contactMap;
+ //TQMap<TQString, KABC::Addressee> m_contactMap;
static bool s_addressesDirty;
static KMailCompletion *s_completion;
static CompletionItemsMap* s_completionItemMap;
- static QTimer *s_LDAPTimer;
+ static TQTimer *s_LDAPTimer;
static KPIM::LdapSearch *s_LDAPSearch;
- static QString *s_LDAPText;
+ static TQString *s_LDAPText;
static AddresseeLineEdit *s_LDAPLineEdit;
- static QStringList *s_completionSources;
+ static TQStringList *s_completionSources;
class AddresseeLineEditPrivate;
AddresseeLineEditPrivate *d;