From 91d2d7482c36e67cb36df9d1dcdbd989911e4ceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 9 Apr 2016 20:52:09 +0200 Subject: Initial TQt conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/qalculateexpressionedit.h | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'src/qalculateexpressionedit.h') diff --git a/src/qalculateexpressionedit.h b/src/qalculateexpressionedit.h index 7434489..6dff6da 100644 --- a/src/qalculateexpressionedit.h +++ b/src/qalculateexpressionedit.h @@ -23,13 +23,13 @@ #include #include #include -#include +#include -class QStringList; -class QPopupMenu; +class TQStringList; +class TQPopupMenu; class QalculateExpressionEditCompletionBox; class ExpressionItem; -class QListBoxItem; +class TQListBoxItem; class QalculateExpressionEdit : public KLineEdit { @@ -37,31 +37,31 @@ class QalculateExpressionEdit : public KLineEdit { public: - QalculateExpressionEdit(bool connected_to_main_win, QWidget *parent = 0, const char *name = 0); + QalculateExpressionEdit(bool connected_to_main_win, TQWidget *parent = 0, const char *name = 0); virtual ~QalculateExpressionEdit(); - QValueVector matched_items; + TQValueVector matched_items; bool b_main; - QStringList expression_history; + TQStringList expression_history; int expression_history_index; bool dont_change_index; QalculateExpressionEditCompletionBox *qalculateCompletionBox; KCompletion *qalculateCompletion; - virtual bool eventFilter(QObject *o, QEvent *ev); - void keyPressEvent(QKeyEvent *e); + virtual bool eventFilter(TQObject *o, TQEvent *ev); + void keyPressEvent(TQKeyEvent *e); public slots: - void onTextChanged(const QString&); - void addToHistory(const QString&); + void onTextChanged(const TQString&); + void addToHistory(const TQString&); void wrapSelection(); - void makeCompletion(const QString&); - void insertCompletion(QListBoxItem *li); + void makeCompletion(const TQString&); + void insertCompletion(TQListBoxItem *li); void updateCompletion(); void setAfterCompletionPosition(); - void cancelCompletion(const QString &str); + void cancelCompletion(const TQString &str); void setCompletedItems(); void enableCompletion(); void disableCompletion(); @@ -73,10 +73,10 @@ signals: protected: - virtual QPopupMenu *createPopupMenu(); - virtual void timerEvent(QTimerEvent*); + virtual TQPopupMenu *createPopupMenu(); + virtual void timerEvent(TQTimerEvent*); int cstart, cend, cpos_ac, prev_position, pos_timer; - QString completed_text; + TQString completed_text; int pos_before_completion; }; @@ -87,17 +87,17 @@ class QalculateExpressionEditCompletionBox : public KCompletionBox { public: - QalculateExpressionEditCompletionBox(QWidget *parent, const char *name = 0); + QalculateExpressionEditCompletionBox(TQWidget *parent, const char *name = 0); virtual ~QalculateExpressionEditCompletionBox(); - void insertItemList(const QValueVector& list, int index = -1); + void insertItemList(const TQValueVector& list, int index = -1); public slots: - void setItems(const QValueVector& items); + void setItems(const TQValueVector& items); protected: - void hideEvent(QHideEvent*); + void hideEvent(TQHideEvent*); signals: -- cgit v1.2.1