diff options
author | Slávek Banko <[email protected]> | 2016-04-09 20:52:09 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2016-04-09 20:52:09 +0200 |
commit | 91d2d7482c36e67cb36df9d1dcdbd989911e4ceb (patch) | |
tree | c842adfbb1a172d9b61241d7dde70354e821bb75 /src/qalculateexpressionedit.h | |
parent | 4870c0c8c53d3df6ba954b2b4d8ebd87a8c43060 (diff) | |
download | qalculate-tde-91d2d7482c36e67cb36df9d1dcdbd989911e4ceb.tar.gz qalculate-tde-91d2d7482c36e67cb36df9d1dcdbd989911e4ceb.zip |
Initial TQt conversion
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/qalculateexpressionedit.h')
-rw-r--r-- | src/qalculateexpressionedit.h | 42 |
1 files changed, 21 insertions, 21 deletions
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 <klineedit.h> #include <kcompletionbox.h> #include <kcompletion.h> -#include <qvaluevector.h> +#include <tqvaluevector.h> -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<ExpressionItem*> matched_items; + TQValueVector<ExpressionItem*> 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<ExpressionItem*>& list, int index = -1); + void insertItemList(const TQValueVector<ExpressionItem*>& list, int index = -1); public slots: - void setItems(const QValueVector<ExpressionItem*>& items); + void setItems(const TQValueVector<ExpressionItem*>& items); protected: - void hideEvent(QHideEvent*); + void hideEvent(TQHideEvent*); signals: |