diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
commit | 0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch) | |
tree | b95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/devices/pic/gui/pic_register_view.h | |
parent | b79a2c28534cf09987eeeba3077fff9236df182a (diff) | |
download | piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip |
TQt4 port piklab
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/devices/pic/gui/pic_register_view.h')
-rw-r--r-- | src/devices/pic/gui/pic_register_view.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/devices/pic/gui/pic_register_view.h b/src/devices/pic/gui/pic_register_view.h index f5b9d4b..0f347e4 100644 --- a/src/devices/pic/gui/pic_register_view.h +++ b/src/devices/pic/gui/pic_register_view.h @@ -9,11 +9,11 @@ #ifndef PIC_REGISTER_VIEW_H #define PIC_REGISTER_VIEW_H -#include <qvaluevector.h> -class QPushButton; -class QCheckBox; -class QLabel; -class QComboBox; +#include <tqvaluevector.h> +class TQPushButton; +class TQCheckBox; +class TQLabel; +class TQComboBox; #include "devices/gui/register_view.h" #include "devices/pic/base/pic.h" @@ -24,11 +24,12 @@ namespace Device { class RegisterHexWordEditor; } namespace Pic { //----------------------------------------------------------------------------- -class BankWidget : public QFrame +class BankWidget : public TQFrame { Q_OBJECT + TQ_OBJECT public: - BankWidget(uint bank, QWidget *parent); + BankWidget(uint bank, TQWidget *tqparent); void updateView(); private slots: @@ -42,13 +43,13 @@ private: public: Data() : label(0), button(0), edit(0) {} uint address; - QLabel *alabel, *label; + TQLabel *alabel, *label; PopupButton *button; Register::LineEdit *edit; }; uint _bindex; - QComboBox *_bankCombo; - QValueVector<Data> _registers; + TQComboBox *_bankCombo; + TQValueVector<Data> _registers; uint bank() const; uint nbRegisters() const; @@ -60,27 +61,28 @@ private: class RegisterView : public Register::View { Q_OBJECT + TQ_OBJECT public: - RegisterView(QWidget *parent); + RegisterView(TQWidget *tqparent); virtual void updateView(); private slots: void stopWatchAllRegisters(); private: - QPushButton *_readAllButton, *_clearAllButton; - QValueVector<BankWidget *> _banks; + TQPushButton *_readAllButton, *_clearAllButton; + TQValueVector<BankWidget *> _banks; }; //----------------------------------------------------------------------------- class RegisterListViewItem : public Register::ListViewItem { public: - RegisterListViewItem(const Register::TypeData &data, KListViewItem *parent); + RegisterListViewItem(const Register::TypeData &data, KListViewItem *tqparent); private: virtual uint nbCharsAddress() const; - virtual QString label() const; + virtual TQString label() const; }; } // namespace |