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/devices/base/generic_memory.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/devices/base/generic_memory.h') diff --git a/src/devices/base/generic_memory.h b/src/devices/base/generic_memory.h index 74bd938..f7127b5 100644 --- a/src/devices/base/generic_memory.h +++ b/src/devices/base/generic_memory.h @@ -26,21 +26,21 @@ public: virtual BitValue checksum() const = 0; virtual HexBuffer toHexBuffer() const = 0; - bool save(QTextStream &stream, HexBuffer::Format format) const; + bool save(TQTextStream &stream, HexBuffer::Format format) const; enum WarningType { NoWarning = 0, ValueTooLarge = 1, ValueOutsideRange = 2 }; - Q_DECLARE_FLAGS(WarningTypes, WarningType) - WarningTypes fromHexBuffer(const HexBuffer &hb, QStringList &warnings); - bool load(QTextStream &stream, QStringList &errors, WarningTypes &warningTypes, QStringList &warnings); + TQ_DECLARE_FLAGS(WarningTypes, WarningType) + WarningTypes fromHexBuffer(const HexBuffer &hb, TQStringList &warnings); + bool load(TQTextStream &stream, TQStringList &errors, WarningTypes &warningTypes, TQStringList &warnings); protected: const Data &_device; Memory(const Data &device) : _device(device) {} virtual void fromHexBuffer(const HexBuffer &hb, WarningTypes &warningTypes, - QStringList &warnings, QMap &inRange) = 0; - virtual void savePartial(QTextStream &stream, HexBuffer::Format format) const = 0; + TQStringList &warnings, TQMap &inRange) = 0; + virtual void savePartial(TQTextStream &stream, HexBuffer::Format format) const = 0; }; -Q_DECLARE_OPERATORS_FOR_FLAGS(Memory::WarningTypes) +TQ_DECLARE_OPERATORS_FOR_FLAGS(Memory::WarningTypes) } // namespace -- cgit v1.2.1