diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-26 01:30:39 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-26 01:30:39 -0500 |
| commit | 61fa7fa904e5a28bafa8e2565e362e98fe3efa58 (patch) | |
| tree | 69c477a8e9a038aaf5e0178044b815d1ab2da851 /sigmodr/widgets/BadgeUI.cpp | |
| parent | 1fba044a78b7b731c8cd65a17d2993041c10f9db (diff) | |
| download | sigen-61fa7fa904e5a28bafa8e2565e362e98fe3efa58.tar.gz sigen-61fa7fa904e5a28bafa8e2565e362e98fe3efa58.tar.xz sigen-61fa7fa904e5a28bafa8e2565e362e98fe3efa58.zip | |
Added layouts to all widgets so that the forms expand
Diffstat (limited to 'sigmodr/widgets/BadgeUI.cpp')
| -rw-r--r-- | sigmodr/widgets/BadgeUI.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sigmodr/widgets/BadgeUI.cpp b/sigmodr/widgets/BadgeUI.cpp index 83b96d93..90aa50d0 100644 --- a/sigmodr/widgets/BadgeUI.cpp +++ b/sigmodr/widgets/BadgeUI.cpp @@ -38,6 +38,7 @@ #include <QtGui/QHeaderView> #include <QtGui/QTableWidget> #include <QtGui/QTableWidgetItem> +#include <QtGui/QVBoxLayout> #include <QtUiTools/QUiLoader> using namespace Sigcore; @@ -69,6 +70,9 @@ void BadgeUI::initGui() connect(ui_badge, SIGNAL(currentIndexChanged(int)), this, SLOT(badgeChanged(int))); connect(ui_stat, SIGNAL(currentCellChanged(int,int,int,int)), this, SLOT(statChanged(int))); connect(ui_statMultiplier, SIGNAL(valueChanged(Sigcore::Fraction)), this, SLOT(statMultiplierChanged(Sigcore::Fraction))); + QVBoxLayout* layout = new QVBoxLayout; + layout->addWidget(formWidget); + setLayout(layout); ui_stat->horizontalHeader()->setResizeMode(QHeaderView::Stretch); } |
