diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
commit | fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch) | |
tree | 6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/widgets/kmymoneylineedit.h | |
parent | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff) | |
download | kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip |
TQt4 port kmymoney
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/widgets/kmymoneylineedit.h')
-rw-r--r-- | kmymoney2/widgets/kmymoneylineedit.h | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/kmymoney2/widgets/kmymoneylineedit.h b/kmymoney2/widgets/kmymoneylineedit.h index 2351082..f92bd08 100644 --- a/kmymoney2/widgets/kmymoneylineedit.h +++ b/kmymoney2/widgets/kmymoneylineedit.h @@ -45,16 +45,17 @@ class kMyMoneyLineEdit : public KLineEdit { Q_OBJECT + TQ_OBJECT public: /** - * @param w pointer to parent + * @param w pointer to tqparent * @param name pointer to name of object * @param forceMonetaryDecimalSymbol if @a true, the numeric keypad comma key will have a fixed - * value and does not follow the keyboard layout (default: @p false) - * @param alignment Controls the alignment of the text. Default is Qt::AlignLeft | Qt::AlignVCenter. - * See Qt::AlignmentFlags for other possible values. + * value and does not follow the keyboard tqlayout (default: @p false) + * @param tqalignment Controls the tqalignment of the text. Default is TQt::AlignLeft | TQt::AlignVCenter. + * See TQt::AlignmentFlags for other possible values. */ - kMyMoneyLineEdit(QWidget *w = 0, const char* name = 0, bool forceMonetaryDecimalSymbol = false, int alignment = (AlignLeft | AlignVCenter)); + kMyMoneyLineEdit(TQWidget *w = 0, const char* name = 0, bool forceMonetaryDecimalSymbol = false, int tqalignment = (AlignLeft | AlignVCenter)); ~kMyMoneyLineEdit(); /** @@ -66,50 +67,50 @@ public: /** * This method is used to turn on/off the hint display */ - void setHint(const QString& hint) { m_hint = hint; }; + void setHint(const TQString& hint) { m_hint = hint; }; public slots: - void loadText(const QString& text); + void loadText(const TQString& text); signals: /** * This signal is emitted when the focus leaves the object and the text * has been changed. The new text is passed as @a str. */ - void lineChanged(const QString& str); + void lineChanged(const TQString& str); protected: - void focusOutEvent(QFocusEvent *ev); + void focusOutEvent(TQFocusEvent *ev); /** reimplemented to support the hint display */ - void drawContents( QPainter *); + void drawContents( TQPainter *); /** * Overridden so that the period key on the numeric keypad always sends * out the currently selected monetary decimal symbol instead of the * key defined by the keymap. * - * Example: If you have set the keymap (keyboard layout) as English, then + * Example: If you have set the keymap (keyboard tqlayout) as English, then * the numeric keypad will send a period but if you have set the keymap to * be German, the same key will send a comma. * - * @param ev pointer to current QKeyEvent + * @param ev pointer to current TQKeyEvent */ - void keyPressEvent(QKeyEvent* ev); + void keyPressEvent(TQKeyEvent* ev); /** * Overridden so that the period key on the numeric keypad always sends * out the currently selected monetary decimal symbol instead of the * key defined by the keymap. * - * Example: If you have set the keymap (keyboard layout) as English, then + * Example: If you have set the keymap (keyboard tqlayout) as English, then * the numeric keypad will send a period but if you have set the keymap to * be German, the same key will send a comma. * - * @param ev pointer to current QKeyEvent + * @param ev pointer to current TQKeyEvent */ - void keyReleaseEvent(QKeyEvent* ev); + void keyReleaseEvent(TQKeyEvent* ev); private: /** @@ -118,12 +119,12 @@ private: * and as comparison during focusOutEvent() to emit the lineChanged * signal if the current text is different. */ - QString m_text; + TQString m_text; /** * This member tells what to display as hint as long as the field is empty */ - QString m_hint; + TQString m_hint; /** * This member keeps the status if overriding the numeric keypad comma key |