diff options
author | Treeki <treeki@gmail.com> | 2012-09-06 06:05:52 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-09-06 06:05:52 +0200 |
commit | be8b56a7f0a8f6ba5456a099b61d032fd8aa2f61 (patch) | |
tree | f9ff07b4f67b6e1839bb551ecd93dae60a9d7861 /lslayoutwindow.cpp | |
parent | 5db787d8b88e214c89b8e02eaf619d18914e8571 (diff) | |
download | LayoutStudio-master.tar.gz LayoutStudio-master.zip |
Diffstat (limited to '')
-rw-r--r-- | lslayoutwindow.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lslayoutwindow.cpp b/lslayoutwindow.cpp index 3323803..3fe84ad 100644 --- a/lslayoutwindow.cpp +++ b/lslayoutwindow.cpp @@ -7,6 +7,7 @@ #include <QGridLayout> #include <QFormLayout> #include <QGroupBox> +#include <QScrollArea> LSLayoutWindow::LSLayoutWindow(LYTPackageBase *pkg, const QString &layoutName, QWidget *parent) : QMainWindow(parent) { @@ -99,12 +100,15 @@ LSLayoutWindow::LSLayoutWindow(LYTPackageBase *pkg, const QString &layoutName, Q mgrid->addWidget(m_addMaterialButton, 1, 0, 1, 1); mgrid->addWidget(m_removeMaterialButton, 1, 1, 1, 1); - m_materialEditor = new LSMaterialEditor(m_materialSplitter); + QScrollArea *matScroller = new QScrollArea(m_materialSplitter); + m_materialEditor = new LSMaterialEditor(matScroller); m_materialSplitter->addWidget(w); - m_materialSplitter->addWidget(m_materialEditor); + m_materialSplitter->addWidget(matScroller); m_materialSplitter->setCollapsible(1, false); + matScroller->setWidget(m_materialEditor); + m_tabWidget->addTab(m_materialSplitter, "Materials"); |