summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <[email protected]>2015-05-04 14:09:12 +0200
committerRalf Habacker <[email protected]>2015-05-04 14:29:59 +0200
commit6d922103fa3a2cc3fdbee72d8432a040f3f4ba13 (patch)
tree1d48db86048e70d383ba393b61e6a7cfcdfcbd14
parent3f77cc6cdef8be550927fdc01722e84666b6617a (diff)
Fix broken layout of UMLAttributeDialog.
-rw-r--r--umbrello/dialogs/umlattributedialog.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/umbrello/dialogs/umlattributedialog.cpp b/umbrello/dialogs/umlattributedialog.cpp
index 88a6353..2ffe777 100644
--- a/umbrello/dialogs/umlattributedialog.cpp
+++ b/umbrello/dialogs/umlattributedialog.cpp
@@ -60,8 +60,9 @@ void UMLAttributeDialog::setupDialog()
{
int margin = fontMetrics().height();
- QVBoxLayout * mainLayout = new QVBoxLayout();
- setLayout(mainLayout);
+ QFrame * frame = new QFrame(this);
+ setMainWidget(frame);
+ QVBoxLayout * mainLayout = new QVBoxLayout(frame);
m_pValuesGB = new QGroupBox(i18n("General Properties"));
QGridLayout * valuesLayout = new QGridLayout(m_pValuesGB);
@@ -104,12 +105,6 @@ void UMLAttributeDialog::setupDialog()
mainLayout->addWidget(m_docWidget);
m_pNameLE->setFocus();
-
- QDialogButtonBox* dlgButtonBox = new QDialogButtonBox(QDialogButtonBox::Ok |
- QDialogButtonBox::Cancel);
- connect(dlgButtonBox, SIGNAL(accepted()), this, SLOT(slotOk()));
- connect(dlgButtonBox, SIGNAL(rejected()), this, SLOT(reject()));
- mainLayout->addWidget(dlgButtonBox);
}
/**