diff options
author | deva <deva> | 2010-08-12 10:57:04 +0000 |
---|---|---|
committer | deva <deva> | 2010-08-12 10:57:04 +0000 |
commit | d9338083192084613e5530b02710b796252d342b (patch) | |
tree | e0ec2b36e0de62328e5fd5d3b597f6ee71d1b18f /client/macro.cc | |
parent | dbab8458dcce186e7eb7a114a83f759d7db5445a (diff) |
New scripting system part2.
Diffstat (limited to 'client/macro.cc')
-rw-r--r-- | client/macro.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/client/macro.cc b/client/macro.cc index d207474..0037044 100644 --- a/client/macro.cc +++ b/client/macro.cc @@ -30,7 +30,10 @@ #include <QDomElement> #include <QHBoxLayout> #include <QApplication> +#include <QLabel> + #include "macrodrawer.h" +#include "macrowindow.h" Macro::Macro(QDomNode &n) { @@ -53,7 +56,8 @@ void Macro::update(QDomNode &n) iscompleted = xml_elem.attribute("completed", "false") == "true"; } -void Macro::init(QBoxLayout *layout, Macros ¯os, bool initialising, NetCom &netcom, QString templ) +void Macro::init(QBoxLayout *layout, Macros ¯os, + bool initialising, NetCom &netcom, QString templ) { QDomElement xml_elem = node.toElement(); @@ -64,7 +68,8 @@ void Macro::init(QBoxLayout *layout, Macros ¯os, bool initialising, NetCom & if(xml_elem.hasAttribute("requires")) { // Read and parse requirement list. - requires = xml_elem.attribute("requires").split(QRegExp("\\W+"), QString::SkipEmptyParts); + requires = xml_elem.attribute("requires").split(QRegExp("\\W+"), + QString::SkipEmptyParts); } // if(xml_elem.hasAttribute("header")) { |