summaryrefslogtreecommitdiff
path: root/client/macro.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/macro.cc')
-rw-r--r--client/macro.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/macro.cc b/client/macro.cc
index 4ac56f6..6e58a5c 100644
--- a/client/macro.cc
+++ b/client/macro.cc
@@ -35,11 +35,13 @@
#include "macrodrawer.h"
#include "macrowindow.h"
-Macro::Macro(QDomNode &n)
+Macro::Macro(QDomNode &n, QScrollArea *scrollarea)
{
window = NULL;
drawer = NULL;
+ this->scrollarea = scrollarea;
+
update(n);
}
@@ -95,7 +97,8 @@ void Macro::init(QBoxLayout *layout, Macros &macros,
// if(macros.find(name) == macros.end()) {
if(window == NULL && drawer == NULL) {
- window = new MacroWindow(netcom, node, templ, isstatic, iscompact);
+ window = new MacroWindow(netcom, node, templ, isstatic, iscompact,
+ scrollarea);
/*
QWidget *edge = new QWidget();