diff options
Diffstat (limited to 'kmail/snippetwidget.h')
-rw-r--r-- | kmail/snippetwidget.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kmail/snippetwidget.h b/kmail/snippetwidget.h index e267ff5dd..b60c3ea6e 100644 --- a/kmail/snippetwidget.h +++ b/kmail/snippetwidget.h @@ -13,11 +13,11 @@ #ifndef __SNIPPET_WIDGET_H__ #define __SNIPPET_WIDGET_H__ -#include <qwidget.h> -#include <qstring.h> +#include <tqwidget.h> +#include <tqstring.h> #include <klistview.h> -#include <qtooltip.h> -#include <qrect.h> +#include <tqtooltip.h> +#include <tqrect.h> #include <ktexteditor/editinterface.h> #include <ktexteditor/view.h> @@ -38,7 +38,7 @@ class KActionCollection; /** This is the widget which gets added to the right TreeToolView. -It inherits KListView and QToolTip which is needed for showing the +It inherits KListView and TQToolTip which is needed for showing the tooltips which contains the text of the snippet @author Robert Gruber */ @@ -47,9 +47,9 @@ class SnippetWidget : public KListView, public QToolTip Q_OBJECT public: - SnippetWidget(KMEdit* editor, KActionCollection* actionCollection, QWidget* parent = 0); + SnippetWidget(KMEdit* editor, KActionCollection* actionCollection, TQWidget* parent = 0); ~SnippetWidget(); - QPtrList<SnippetItem> * getList() { return (&_list); } + TQPtrList<SnippetItem> * getList() { return (&_list); } void writeConfig(); SnippetConfig * getSnippetConfig() { return (&_SnippetConfig); } @@ -58,19 +58,19 @@ private slots: void initConfig(); protected: - void maybeTip( const QPoint & ); - bool acceptDrag (QDropEvent *event) const; + void maybeTip( const TQPoint & ); + bool acceptDrag (TQDropEvent *event) const; private: - void insertIntoActiveView( const QString &text ); - QString parseText(QString text, QString del="$"); - bool showMultiVarDialog(QMap<QString, QString> * map, QMap<QString, QString> * mapSave, + void insertIntoActiveView( const TQString &text ); + TQString parseText(TQString text, TQString del="$"); + bool showMultiVarDialog(TQMap<TQString, TQString> * map, TQMap<TQString, TQString> * mapSave, int & iWidth, int & iBasicHeight, int & iOneHeight); - QString showSingleVarDialog(QString var, QMap<QString, QString> * mapSave, QRect & dlgSize); - SnippetItem* makeItem( SnippetItem* parent, const QString& name, const QString& text, const KShortcut& shortcut ); + TQString showSingleVarDialog(TQString var, TQMap<TQString, TQString> * mapSave, TQRect & dlgSize); + SnippetItem* makeItem( SnippetItem* parent, const TQString& name, const TQString& text, const KShortcut& shortcut ); - QPtrList<SnippetItem> _list; - QMap<QString, QString> _mapSaved; + TQPtrList<SnippetItem> _list; + TQMap<TQString, TQString> _mapSaved; KConfig * _cfg; SnippetConfig _SnippetConfig; KMEdit* mEditor; @@ -78,16 +78,16 @@ private: public slots: void slotRemove(); - void slotEdit( QListViewItem* item_ = 0 ); + void slotEdit( TQListViewItem* item_ = 0 ); void slotEditGroup(); void slotAdd(); void slotAddGroup(); void slotExecute(); protected slots: - void showPopupMenu( QListViewItem * item, const QPoint & p, int ); - void slotExecuted(QListViewItem * item = 0); - void slotDropped(QDropEvent *e, QListViewItem *after); + void showPopupMenu( TQListViewItem * item, const TQPoint & p, int ); + void slotExecuted(TQListViewItem * item = 0); + void slotDropped(TQDropEvent *e, TQListViewItem *after); void startDrag(); }; |