From 8827510ec55eda169340b5414bd60eb3ba3bfb79 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 23 May 2010 11:03:14 +0200 Subject: Bugfix: margins in ListEditor Fix layout of AddMovieWizard. The ListEditor-Widget must have margins set to 0 to be laid out properly in a QWizardPage. --- listeditor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'listeditor.cpp') diff --git a/listeditor.cpp b/listeditor.cpp index 53f58d6..244b11c 100644 --- a/listeditor.cpp +++ b/listeditor.cpp @@ -11,11 +11,15 @@ #include #include #include +#include #include "listeditor.h" #include "listmodel.h" ListEditor::ListEditor(ListModel *model, QWidget *parent) : QWidget(parent), mModel(model){ + QString caption = QString(tr("Edit %1s")).arg(model->table()); + QLabel *l1 = new QLabel(caption); + mItems = new QComboBox; mItems->setModel(mModel); @@ -37,9 +41,11 @@ ListEditor::ListEditor(ListModel *model, QWidget *parent) : QWidget(parent), mMo buttonLayout->addWidget(mRemove); QVBoxLayout *mainLayout = new QVBoxLayout; + mainLayout->addWidget(l1); mainLayout->addWidget(mItems); mainLayout->addWidget(mEdit); mainLayout->addLayout(buttonLayout); + mainLayout->setContentsMargins(0, 0, 0, 0); setLayout(mainLayout); } -- cgit v1.2.3-70-g09d2