diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-17 08:20:48 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-17 08:20:48 +0000 |
commit | aa0726b20f398264f0a2abc60215be044b106f9c (patch) | |
tree | 070fdbc19a1106cfdd7f651a8ce76bb1b89a513d /src/focusedwidgets.h | |
parent | d3cf5b3e75aadc3b02d0b56f030d4c3f8c2c749d (diff) | |
download | basket-aa0726b20f398264f0a2abc60215be044b106f9c.tar.gz basket-aa0726b20f398264f0a2abc60215be044b106f9c.zip |
TQt4 port basket
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1232416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/focusedwidgets.h')
-rw-r--r-- | src/focusedwidgets.h | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/src/focusedwidgets.h b/src/focusedwidgets.h index 4d1bfcb..dc188e5 100644 --- a/src/focusedwidgets.h +++ b/src/focusedwidgets.h @@ -27,22 +27,23 @@ #include <kcombobox.h> #include <klineedit.h> #include <kapplication.h> -#include <qclipboard.h> +#include <tqclipboard.h> class FocusedTextEdit : public KTextEdit { Q_OBJECT + TQ_OBJECT public: - FocusedTextEdit(bool disableUpdatesOnKeyPress, QWidget *parent = 0, const char *name = 0); + FocusedTextEdit(bool disableUpdatesOnKeyPress, TQWidget *tqparent = 0, const char *name = 0); ~FocusedTextEdit(); void paste(); - QTextCursor* textCursor() const; + TQTextCursor* textCursor() const; protected: - void adaptClipboardText(QClipboard::Mode mode); - void keyPressEvent(QKeyEvent *event); - void wheelEvent(QWheelEvent *event); - void enterEvent(QEvent *event); - QPopupMenu* createPopupMenu(const QPoint &pos); + void adaptClipboardText(TQClipboard::Mode mode); + void keyPressEvent(TQKeyEvent *event); + void wheelEvent(TQWheelEvent *event); + void enterEvent(TQEvent *event); + TQPopupMenu* createPopupMenu(const TQPoint &pos); signals: void escapePressed(); void mouseEntered(); @@ -54,11 +55,12 @@ class FocusedTextEdit : public KTextEdit class FocusedColorCombo : public KColorCombo { Q_OBJECT + TQ_OBJECT public: - FocusedColorCombo(QWidget *parent = 0, const char *name = 0); + FocusedColorCombo(TQWidget *tqparent = 0, const char *name = 0); ~FocusedColorCombo(); protected: - void keyPressEvent(QKeyEvent *event); + void keyPressEvent(TQKeyEvent *event); signals: void escapePressed(); void returnPressed2(); @@ -68,11 +70,12 @@ class FocusedColorCombo : public KColorCombo class FocusedFontCombo : public KFontCombo { Q_OBJECT + TQ_OBJECT public: - FocusedFontCombo(QWidget *parent = 0, const char *name = 0); + FocusedFontCombo(TQWidget *tqparent = 0, const char *name = 0); ~FocusedFontCombo(); protected: - void keyPressEvent(QKeyEvent *event); + void keyPressEvent(TQKeyEvent *event); signals: void escapePressed(); void returnPressed2(); @@ -82,11 +85,12 @@ class FocusedFontCombo : public KFontCombo class FocusedComboBox : public KComboBox { Q_OBJECT + TQ_OBJECT public: - FocusedComboBox(QWidget *parent = 0, const char *name = 0); + FocusedComboBox(TQWidget *tqparent = 0, const char *name = 0); ~FocusedComboBox(); protected: - void keyPressEvent(QKeyEvent *event); + void keyPressEvent(TQKeyEvent *event); signals: void escapePressed(); void returnPressed2(); @@ -96,12 +100,13 @@ class FocusedComboBox : public KComboBox class FocusedLineEdit : public KLineEdit { Q_OBJECT + TQ_OBJECT public: - FocusedLineEdit(QWidget *parent = 0, const char *name = 0); + FocusedLineEdit(TQWidget *tqparent = 0, const char *name = 0); ~FocusedLineEdit(); protected: - void keyPressEvent(QKeyEvent *event); - void enterEvent(QEvent *event); + void keyPressEvent(TQKeyEvent *event); + void enterEvent(TQEvent *event); signals: void escapePressed(); void mouseEntered(); |