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/progs/base/hardware_config.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/progs/base/hardware_config.h')
-rw-r--r-- | src/progs/base/hardware_config.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/progs/base/hardware_config.h b/src/progs/base/hardware_config.h index 5252ff3..866ecb9 100644 --- a/src/progs/base/hardware_config.h +++ b/src/progs/base/hardware_config.h @@ -30,7 +30,7 @@ public: virtual void writeConfig(GenericConfig &config) const; virtual bool isEqual(const Data &data) const; PortType portType; - QString name; + TQString name; }; //----------------------------------------------------------------------------- @@ -39,20 +39,20 @@ class Config : public GenericConfig public: Config(const char *group) : GenericConfig(group) {} virtual ~Config() {} - QStringList hardwareNames(PortType type); - bool isStandardHardware(const QString &name) const { return standardHardwareData(name); } - QString label(const QString &name) const; - QString comment(const QString &name) const; - void writeCustomHardware(const QString &name, const Hardware::Data &data); - QString currentHardware(PortType type); - void writeCurrentHardware(PortType type, const QString &name); - void deleteCustomHardware(const QString &name); - Hardware::Data *hardwareData(const QString& name) const; + TQStringList hardwareNames(PortType type); + bool isStandardHardware(const TQString &name) const { return standardHardwareData(name); } + TQString label(const TQString &name) const; + TQString comment(const TQString &name) const; + void writeCustomHardware(const TQString &name, const Hardware::Data &data); + TQString currentHardware(PortType type); + void writeCurrentHardware(PortType type, const TQString &name); + void deleteCustomHardware(const TQString &name); + Hardware::Data *hardwareData(const TQString& name) const; protected: - virtual QStringList standardHardwareNames(PortType type) const = 0; - virtual Hardware::Data *standardHardwareData(const QString &name) const = 0; - virtual const DataInfo *standardHardwareDataInfo(const QString &name) const = 0; + virtual TQStringList standardHardwareNames(PortType type) const = 0; + virtual Hardware::Data *standardHardwareData(const TQString &name) const = 0; + virtual const DataInfo *standardHardwareDataInfo(const TQString &name) const = 0; virtual Hardware::Data *createHardwareData() const = 0; }; |