diff options
author | deva <deva> | 2011-02-08 09:19:14 +0000 |
---|---|---|
committer | deva <deva> | 2011-02-08 09:19:14 +0000 |
commit | a65a5d1594d09d575d9e835d684eb52675341054 (patch) | |
tree | 8829f4ffbb14b7f667fa054758e607b09fff0121 /client/mainwindow.cc | |
parent | 9d1dc91e1e2c11ea6df8e163b0e43f1dd43655d5 (diff) |
Scroll into view when a new macro is expanded.
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; } |