summaryrefslogtreecommitdiffstats
path: root/src/tools/list/compile_manager.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/tools/list/compile_manager.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/tools/list/compile_manager.h')
-rw-r--r--src/tools/list/compile_manager.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/tools/list/compile_manager.h b/src/tools/list/compile_manager.h
index 6f617b4..0d144e6 100644
--- a/src/tools/list/compile_manager.h
+++ b/src/tools/list/compile_manager.h
@@ -14,16 +14,17 @@
namespace Compile
{
-class Manager : public QObject, public Log::Base
+class Manager : public TQObject, public Log::Base
{
Q_OBJECT
+ TQ_OBJECT
public:
enum Operation { NoOperation = 0, Clean = 1, CompileOnly = 2, Build = 4 };
- Q_DECLARE_FLAGS(Operations, Operation)
+ TQ_DECLARE_FLAGS(Operations, Operation)
public:
- Manager(QObject *parent);
- QString label() const { return _label; }
+ Manager(TQObject *tqparent);
+ TQString label() const { return _label; }
bool compileFile(const TodoItem &item);
void cleanFile(const PURL::Url &url);
bool buildProject(LinkType type);
@@ -32,8 +33,8 @@ public:
bool compileOnly() const { return (_operations & CompileOnly); }
void processDone();
void processFailed();
- void log(Log::LineType type, const QString &message, const QString &filepath = QString::null, uint line = 0);
- void log(Log::DebugLevel debug, const QString &message, const QString &filepath = QString::null, uint line = 0);
+ void log(Log::LineType type, const TQString &message, const TQString &filepath = TQString(), uint line = 0);
+ void log(Log::DebugLevel debug, const TQString &message, const TQString &filepath = TQString(), uint line = 0);
signals:
void success();
@@ -47,9 +48,9 @@ private:
Operations _operations;
enum Action { Compiling, Linking, BinToHex };
Action _action;
- QValueList<TodoItem> _todo, _items;
+ TQValueList<TodoItem> _todo, _items;
BaseProcess *_base;
- QString _label;
+ TQString _label;
LinkType _type;
bool _wholeProject;
uint _customCommandIndex;
@@ -67,7 +68,7 @@ private:
void startCustomCommand();
void executeCustomCommands();
};
-Q_DECLARE_OPERATORS_FOR_FLAGS(Manager::Operations)
+TQ_DECLARE_OPERATORS_FOR_FLAGS(Manager::Operations)
} // namespace