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/libgui/device_editor.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/libgui/device_editor.h')
-rw-r--r-- | src/libgui/device_editor.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/libgui/device_editor.h b/src/libgui/device_editor.h index 8b7cab7..adbd2d0 100644 --- a/src/libgui/device_editor.h +++ b/src/libgui/device_editor.h @@ -15,29 +15,30 @@ namespace Device { class Data; } class DeviceEditor : public Editor { Q_OBJECT + TQ_OBJECT public: - DeviceEditor(const QString &title, const QString &tag, QWidget *parent, const char *name); - DeviceEditor(QWidget *parent, const char *name); + DeviceEditor(const TQString &title, const TQString &tag, TQWidget *tqparent, const char *name); + DeviceEditor(TQWidget *tqparent, const char *name); virtual PURL::FileType fileType() const { return PURL::Nb_FileTypes; } virtual PURL::Url url() const { return PURL::Url(); } virtual void setDevice(bool force = false); - static QString guessDeviceFromFile(const PURL::Url &url); + static TQString guessDeviceFromFile(const PURL::Url &url); virtual bool save(const PURL::Url &) { return false; } virtual bool open(const PURL::Url &) { return true; } - virtual QValueList<uint> bookmarkLines() const { return QValueList<uint>(); } - virtual void setBookmarkLines(const QValueList<uint> &) {} + virtual TQValueList<uint> bookmarkLines() const { return TQValueList<uint>(); } + virtual void setBookmarkLines(const TQValueList<uint> &) {} public slots: virtual void statusChanged() { emit statusTextChanged(" "); } protected: - QString _device; - QWidget *_widget, *_view; - QVBoxLayout *_top, *_vbox; - QLabel *_labelDevice, *_labelWarning; + TQString _device; + TQWidget *_widget, *_view; + TQVBoxLayout *_top, *_vbox; + TQLabel *_labelDevice, *_labelWarning; void init(); - virtual QWidget *createView(const Device::Data *data, QWidget *parent) = 0; + virtual TQWidget *createView(const Device::Data *data, TQWidget *tqparent) = 0; static PURL::Url findAsmFile(const PURL::Url &url); private slots: |