Bug 427063

Summary: put qlabels accompanying qlineedits on the left side in one row
Product: [openSUSE] openSUSE 11.1 Reporter: Nick Shaforostoff <shafff>
Component: YaST2Assignee: E-mail List <yast2-maintainers>
Status: RESOLVED INVALID QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Nick Shaforostoff 2008-09-17 18:54:55 UTC
Please put qlabels accompanying qlineedits on the left side in one row, insted of the top in two rows - to reduce amount of vertical space taken by dialogs. It is important for small resolutions, e.g. 1024x600 on my acer aspire one subnotebook.

JFYI: I noticed this in network module

see http://doc.trolltech.com/4.4/qformlayout.html
Comment 1 Stefan Hundhammer 2008-10-02 11:12:54 UTC
No, because that doesn't work out. 

http://svn.opensuse.org/svn/yast/trunk/ycp-ui-bindings/doc/FAQs/why-widget-labels-above-and-not-at-the-left.txt
Comment 2 Nick Shaforostoff 2008-10-02 11:39:47 UTC
well, that was back in 2001. And Qt 4.4 introduced a new layout - http://doc.trolltech.com/4.4/qformlayout.html

So you just switch to qformlayout and setRowWrapPolicy to QFormLayout::WrapAllRows for layouts that contain multiline 'fields'
Comment 3 Stefan Hundhammer 2008-10-02 12:13:42 UTC
None of the arguments from 2001 is no longer valid today. Please see the section about excessive empty space.

Also, we don't just use plain Qt. QFormLayout is not an option. The abstract YaST2 UI has its own layout engine that works with all concrete UIs, Qt, Gtk, and NCurses.