[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kode/kxforms
From: Cornelius Schumacher <schumacher () kde ! org>
Date: 2006-03-29 14:23:43
Message-ID: 1143642223.629638.22281.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 523935 by cschumac:
More decent layout for forms without lists.
M +5 -0 formgui.cpp
--- trunk/KDE/kdepim/kode/kxforms/formgui.cpp #523934:523935
@@ -71,6 +71,8 @@
{
kDebug() << "FormGui::parseElement()" << endl;
+ bool hasList = false;
+
QDomNode n;
for ( n = element.firstChild(); !n.isNull(); n = n.nextSibling() ) {
QDomElement e = n.toElement();
@@ -81,6 +83,7 @@
if ( tag == "list" ) {
guiElement = new KXForms::List( mManager, c.label(), this );
guiElement->setRef( ref() );
+ hasList = true;
} else if ( tag == "xf:input" ) {
guiElement = new Input( mManager, c.label(), this );
guiElement->setRef( e.attribute( "ref" ) );
@@ -101,6 +104,8 @@
}
}
+ if ( !hasList ) mTopLayout->addStretch( 0 );
+
kDebug() << "FormGui::parseElement() done" << endl;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic