summaryrefslogtreecommitdiffstats
path: root/src/piklab-hex/main.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/piklab-hex/main.h
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-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/piklab-hex/main.h')
-rw-r--r--src/piklab-hex/main.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/piklab-hex/main.h b/src/piklab-hex/main.h
index 4689bff..212e175 100644
--- a/src/piklab-hex/main.h
+++ b/src/piklab-hex/main.h
@@ -24,8 +24,8 @@ namespace CLI
//----------------------------------------------------------------------------
enum CommandProperty { NoCommandProperty = 0, NeedSource1 = 1, NeedDestination = 2,
NeedSource2 = 4, NeedCorrectInput = 8, NeedDevice = 16 };
-Q_DECLARE_FLAGS(CommandProperties, CommandProperty)
-Q_DECLARE_OPERATORS_FOR_FLAGS(CommandProperties)
+TQ_DECLARE_FLAGS(CommandProperties, CommandProperty)
+TQ_DECLARE_OPERATORS_FOR_FLAGS(CommandProperties)
//----------------------------------------------------------------------------
struct FillOptions {
@@ -37,6 +37,7 @@ extern const FillOptions FILL_OPTIONS[];
class Main : public MainBase
{
Q_OBJECT
+ TQ_OBJECT
public:
Main();
virtual ~Main();
@@ -45,17 +46,17 @@ private:
PURL::Url _dest;
HexBuffer _source1, _source2;
HexBuffer::Format _format;
- QValueList<HexBuffer::ErrorData> _errors;
+ TQValueList<HexBuffer::ErrorData> _errors;
const Device::Data *_device;
Device::Memory *_memory;
- QString _fill;
+ TQString _fill;
- virtual ExitCode prepareCommand(const QString &command);
- virtual ExitCode executeCommand(const QString &command);
+ virtual ExitCode prepareCommand(const TQString &command);
+ virtual ExitCode executeCommand(const TQString &command);
virtual ExitCode prepareRun(bool &interactive);
- virtual ExitCode executeSetCommand(const QString &property, const QString &value);
- virtual QString executeGetCommand(const QString &property);
- virtual ExitCode list(const QString &listName);
+ virtual ExitCode executeSetCommand(const TQString &property, const TQString &value);
+ virtual TQString executeGetCommand(const TQString &property);
+ virtual ExitCode list(const TQString &listName);
ExitCode deviceList();
ExitCode fillOptionList();
};