[Uml-devel] kdesdk/umbrello/umbrello/dialogs
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Mar 27 12:41:01 UTC 2004
CVS commit by okellogg:
No need for the QHBoxLayout *kindLayout being a member.
Put the Kind button group beneath the Properties group (thanks Jon).
M +17 -20 parmpropdlg.cpp 1.10
M +0 -1 parmpropdlg.h 1.5
--- kdesdk/umbrello/umbrello/dialogs/parmpropdlg.cpp #1.9:1.10
@@ -37,24 +37,4 @@ ParmPropDlg::ParmPropDlg(QWidget * paren
topLayout -> setMargin(margin);
- m_pKind = new QButtonGroup(i18n("Kind"), plainPage());
- m_pKind->setExclusive(true);
- m_pKindLayout = new QHBoxLayout( m_pKind );
- m_pKindLayout->setMargin(margin);
- // m_pKind->setTitle("Kind");
- //m_pKind->setColumnLayout(0, Qt::Vertical );
- //m_pKind->layout()->setSpacing( 6 );
- //m_pKindLayout->setAlignment( Qt::AlignTop );
-
- m_pIn = new QRadioButton( "in", m_pKind );
- m_pKindLayout->addWidget( m_pIn );
-
- m_pInOut = new QRadioButton( "inout", m_pKind );
- m_pKindLayout->addWidget( m_pInOut );
-
- m_pOut = new QRadioButton( "out", m_pKind );
- m_pKindLayout->addWidget( m_pOut );
-
- topLayout -> addWidget(m_pKind);
-
m_pParmGB = new QGroupBox(i18n("Properties"), plainPage());
topLayout -> addWidget(m_pParmGB);
@@ -87,4 +67,21 @@ ParmPropDlg::ParmPropDlg(QWidget * paren
m_pInitialL->setBuddy(m_pInitialLE);
+ m_pKind = new QButtonGroup(i18n("Kind"), plainPage());
+ m_pKind->setExclusive(true);
+
+ QHBoxLayout * kindLayout = new QHBoxLayout( m_pKind );
+ kindLayout->setMargin(margin);
+
+ m_pIn = new QRadioButton( "in", m_pKind );
+ kindLayout->addWidget( m_pIn );
+
+ m_pInOut = new QRadioButton( "inout", m_pKind );
+ kindLayout->addWidget( m_pInOut );
+
+ m_pOut = new QRadioButton( "out", m_pKind );
+ kindLayout->addWidget( m_pOut );
+
+ topLayout -> addWidget(m_pKind);
+
m_pDocGB = new QGroupBox(i18n("Documentation"), plainPage());
QHBoxLayout * docLayout = new QHBoxLayout(m_pDocGB);
--- kdesdk/umbrello/umbrello/dialogs/parmpropdlg.h #1.4:1.5
@@ -96,5 +96,4 @@ public slots:
private:
QGroupBox * m_pParmGB, * m_pDocGB;
- QHBoxLayout *m_pKindLayout;
QButtonGroup *m_pKind;
QRadioButton * m_pIn, * m_pOut, *m_pInOut;
More information about the umbrello-devel
mailing list