[Uml-devel] mini-patch for umbrello

tech at bishop.dhs.org tech at bishop.dhs.org
Sun Dec 8 18:26:01 UTC 2002


This patch doesn't work.  That confuses me :-(  I am trying to make the
tab order in the Attribute Dialog sane (currently it goes from type to
Help to Ok, Cancel, then name).  This is a 4-liner to setTabOrder, but
it doesn't seem to affect the tab order at all.  Is KDialogBase doing
something odd?  Am I bloody stupid?  Only you can say :-)

Thanks,

D.A.Bishop
-------------- next part --------------
Index: umlattributedialog.cpp
===================================================================
RCS file: /cvsroot/uml/uml/uml/dialogs/umlattributedialog.cpp,v
retrieving revision 1.13
diff -u -3 -p -r1.13 umlattributedialog.cpp
--- umlattributedialog.cpp	16 Nov 2002 19:35:59 -0000	1.13
+++ umlattributedialog.cpp	9 Dec 2002 02:18:18 -0000
@@ -72,6 +72,12 @@ void UMLAttributeDialog::setupDialog() {
 	scopeLayout -> addWidget(m_pPrivateRB);
 
 	m_pProtectedRB = new QRadioButton(i18n("Protected"), m_pScopeBG);
+
+	QWidget::setTabOrder( m_pTypeCB, m_pNameL );
+	QWidget::setTabOrder( m_pNameL, m_pInitialL );
+	QWidget::setTabOrder( m_pInitialL, m_pStaticCB );
+	QWidget::setTabOrder( m_pStaticCB, m_pScopeBG );
+
 	scopeLayout -> addWidget(m_pProtectedRB);
 	mainLayout -> addWidget(m_pScopeBG);
 	Uml::Scope scope = m_pAttribute -> getScope();


More information about the umbrello-devel mailing list