[Uml-devel] KDE/kdesdk/umbrello/umbrello/dialogs
Sharan Rao
sharanrao at gmail.com
Wed May 2 10:21:00 UTC 2007
SVN commit 660327 by sharan:
layout fix
M +12 -10 assocrolepage.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/assocrolepage.cpp #660326:660327
@@ -62,7 +62,7 @@
// general configuration of the GUI
int margin = fontMetrics().height();
- setMinimumSize(310,330);
+
QGridLayout * mainLayout = new QGridLayout(this);
mainLayout -> setSpacing(6);
@@ -79,15 +79,7 @@
propsBGB -> setTitle(titleB);
docAGB -> setTitle(i18n("Documentation"));
docBGB -> setTitle(i18n("Documentation"));
- mainLayout -> addWidget( propsAGB, 0, 0);
- mainLayout -> addWidget( scopeABG, 1, 0);
- mainLayout -> addWidget(changeABG, 2, 0);
- mainLayout -> addWidget( docAGB, 3, 0);
- mainLayout -> addWidget( propsBGB, 0, 1);
- mainLayout -> addWidget( scopeBBG, 1, 1);
- mainLayout -> addWidget(changeBBG, 2, 1);
- mainLayout -> addWidget( docBGB, 3, 1);
-
+
QGridLayout * propsALayout = new QGridLayout(propsAGB);
propsALayout -> setSpacing(6);
propsALayout -> setMargin(margin);
@@ -240,6 +232,16 @@
// m_pDocB-> setEnabled(false);
m_pDocB->setWordWrap(Q3MultiLineEdit::WidgetWidth);
+ // add group boxes to main layout
+ mainLayout -> addWidget( propsAGB, 0, 0);
+ mainLayout -> addWidget( scopeABG, 1, 0);
+ mainLayout -> addWidget(changeABG, 2, 0);
+ mainLayout -> addWidget( docAGB, 3, 0);
+ mainLayout -> addWidget( propsBGB, 0, 1);
+ mainLayout -> addWidget( scopeBBG, 1, 1);
+ mainLayout -> addWidget(changeBBG, 2, 1);
+ mainLayout -> addWidget( docBGB, 3, 1);
+
}
void AssocRolePage::updateObject() {
More information about the umbrello-devel
mailing list