Bug 433914

Summary: YQPkgDiskUsageWarningDialog too wide
Product: [openSUSE] openSUSE 11.1 Reporter: Jan Kupec <jkupec>
Component: YaST2Assignee: Stefan Hundhammer <shundhammer>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: dmueller
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: screenshot

Description Jan Kupec 2008-10-09 14:39:38 UTC
Created attachment 244634 [details]
screenshot

See the attached screenshot. Seems it is as wide as the warning text, which is not wrapped. The dialog can't even be shrunk to smaller size.

The text is in qt-pkg/src/YQPackageSelectorBase.cc around line 154.
Comment 4 Stefan Hundhammer 2008-10-09 16:06:49 UTC
Somebody replaced the newlines in that message with blanks. :-(
Comment 5 Stefan Hundhammer 2008-10-09 16:18:52 UTC
That wasn't the reason - it was RichText formatted. But it looks like the QLabel preferred size behaviour changed recently: It now seems to insist to make a QLabel (even with QLabel::setTextFormat( Qt::RichText )) one mile wide rather than break that over-long line.

Adding QLabel::setWordWrap( true ) helped here, but this behaviour obviously changed between Qt versions.
Comment 6 Stefan Hundhammer 2008-10-09 16:22:08 UTC
Fixed in yast2-qt-pkg-2.17.11.