From 0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 30 Jun 2011 00:15:53 +0000 Subject: 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 --- src/libgui/hex_editor.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/libgui/hex_editor.h') diff --git a/src/libgui/hex_editor.h b/src/libgui/hex_editor.h index 86b7f2c..9418a59 100644 --- a/src/libgui/hex_editor.h +++ b/src/libgui/hex_editor.h @@ -22,6 +22,7 @@ class HexEditor; class HexEditorPart : public KParts::ReadWritePart { Q_OBJECT + TQ_OBJECT public: HexEditorPart(HexEditor *editor); virtual void setReadWrite(bool readWrite); @@ -35,9 +36,10 @@ private: class HexEditor : public DeviceEditor { Q_OBJECT + TQ_OBJECT public: - HexEditor(const QString &name, QWidget *parent); - HexEditor(QWidget *parent); + HexEditor(const TQString &name, TQWidget *tqparent); + HexEditor(TQWidget *tqparent); virtual bool isModified() const { return _modified; } virtual bool isReadOnly() const { return !_part->isReadWrite(); } virtual ~HexEditor() { clear(); } @@ -52,8 +54,8 @@ public: virtual void addGui(); virtual void removeGui(); virtual void setFocus() {} - virtual QValueList bookmarkLines() const { return QValueList(); } - virtual void setBookmarkLines(const QValueList &) {} + virtual TQValueList bookmarkLines() const { return TQValueList(); } + virtual void setBookmarkLines(const TQValueList &) {} public slots: virtual void statusChanged(); @@ -69,10 +71,10 @@ private: HexEditorPart *_part; PURL::Url _url; - virtual void dropEvent(QDropEvent *e) { emit dropEventPass(e); } - bool save(const PURL::Url &url, const QString &fileErrorString); + virtual void dropEvent(TQDropEvent *e) { emit dropEventPass(e); } + bool save(const PURL::Url &url, const TQString &fileErrorString); bool verifyDeviceType(); - virtual QWidget *createView(const Device::Data *data, QWidget *parent); + virtual TQWidget *createView(const Device::Data *data, TQWidget *tqparent); virtual void setModifiedInternal(bool modified) { _modified = modified; } virtual void setReadOnlyInternal(bool readOnly); void display(); -- cgit v1.2.1