diff options
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r-- | client/mainwindow.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc index 03087ad..31039d4 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -103,11 +103,11 @@ MainWindow::MainWindow(QString cpr, QString templ, QString host, connect(close_no_commit, SIGNAL(triggered()), this, SLOT(closeNoCommit())); // connect(show_sessions, SIGNAL(triggered()), this, SLOT(showSessions())); - QScrollArea *s = new QScrollArea(); - setCentralWidget(s); + scrollarea = new QScrollArea(); + setCentralWidget(scrollarea); w = new QWidget(); - s->setWidget(w); - s->setWidgetResizable(true); + scrollarea->setWidget(w); + scrollarea->setWidgetResizable(true); w->setLayout(new QVBoxLayout()); @@ -289,7 +289,7 @@ void MainWindow::update() if(found == false || macroelement.tagName() == "header") { QString num; num.sprintf("%04d", j); - Macro macro(macronode); + Macro macro(macronode, scrollarea); macros[num + macro.name] = macro; } |