summaryrefslogtreecommitdiff
path: root/client/macro.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/macro.cc')
-rw-r--r--client/macro.cc9
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 &macros, bool initialising, NetCom &netcom, QString templ)
+void Macro::init(QBoxLayout *layout, Macros &macros,
+ bool initialising, NetCom &netcom, QString templ)
{
QDomElement xml_elem = node.toElement();
@@ -64,7 +68,8 @@ void Macro::init(QBoxLayout *layout, Macros &macros, 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")) {