summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <[email protected]>2015-05-04 14:07:39 +0200
committerRalf Habacker <[email protected]>2015-05-04 14:29:59 +0200
commitad72428a0b3b785791f9ba9f0e0c8819c88a5ae4 (patch)
treece42d8ca6a958cd9bb237e9c558c9610ab3c95b9
parent18bbaf4cf3bb6b6303baa7884abf2dcce6965c32 (diff)
Fix broken layout of UMLCheckConstraintDialog.
-rw-r--r--umbrello/dialogs/umlcheckconstraintdialog.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/umbrello/dialogs/umlcheckconstraintdialog.cpp b/umbrello/dialogs/umlcheckconstraintdialog.cpp
index 272943c..3b87e6a 100644
--- a/umbrello/dialogs/umlcheckconstraintdialog.cpp
+++ b/umbrello/dialogs/umlcheckconstraintdialog.cpp
@@ -20,7 +20,6 @@
#include <KLineEdit>
// qt includes
-#include <QDialogButtonBox>
#include <QHBoxLayout>
#include <QLabel>
#include <QVBoxLayout>
@@ -51,10 +50,12 @@ UMLCheckConstraintDialog::~UMLCheckConstraintDialog()
*/
void UMLCheckConstraintDialog::setupDialog()
{
+ QFrame * frame = new QFrame(this);
+ setMainWidget(frame);
+
//main layout contains the name fields, the text field
- QVBoxLayout* mainLayout = new QVBoxLayout();
+ QVBoxLayout* mainLayout = new QVBoxLayout(frame);
mainLayout->setSpacing(15);
- setLayout(mainLayout);
// layout to hold the name label and line edit
QHBoxLayout* nameLayout = new QHBoxLayout();
@@ -81,12 +82,6 @@ void UMLCheckConstraintDialog::setupDialog()
// set text of label
m_pNameLE->setText(m_pCheckConstraint->name());
-
- QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok |
- QDialogButtonBox::Cancel);
- connect(buttonBox, SIGNAL(accepted()), this, SLOT(slotOk()));
- connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
- mainLayout->addWidget(buttonBox);
}
/**