|
Bugzilla – Full Text Bug Listing |
| Summary: | repository names are cut off | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 10.3 | Reporter: | Stephan Kulow <coolo> |
| Component: | YaST2 | Assignee: | Stefan Hundhammer <shundhammer> |
| Status: | RESOLVED FIXED | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | locilka |
| Version: | Alpha 6 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
screenshot of qemu
ncurses Qt screen shot of MultiSelectionBox with long text Simple UI testcase to show the problem Test case |
||
|
Description
Stephan Kulow
2007-07-29 08:22:31 UTC
Created attachment 153769 [details]
screenshot of qemu
No, this is feature of YaST-Qt (or maybe just Qt). That's not in the C++ YQPackageSelector, it's in the YCP repository selection. -> jsuchome Oops, sorry, wrong maintainer: lslezak Back to Lukas... :-) Err, this is a feature/bug of MultiSelectionBox in Qt. It works well in ncurses. I'll attach screenshots. Created attachment 155198 [details]
ncurses
Created attachment 155199 [details]
Qt
{
// Simple MultiSelectionBox example:
//
// All items are simple strings, none has an ID, no item preselected.
UI::OpenDialog(
`VBox(
`MultiSelectionBox( "Select pizza toppings:",
[
"Cheese with a very damn long description that can get even longer than you think",
"Tomatoes",
"Mushrooms",
"Onions",
"Salami",
"Ham"
] ),
`PushButton("&OK")
)
);
UI::UserInput();
UI::CloseDialog();
}
Created attachment 155205 [details]
screen shot of MultiSelectionBox with long text
if it allegedly doesn't work in general, why does it work with the simplest UI example we have (MultiSelectionBox1.ycp with longer text)?
Please check the YCP code. Created attachment 155206 [details]
Simple UI testcase to show the problem
The wrong behavior is introduced by using UI::ChangeWidget
Stefan, please, check again. Some experiments with a modified MultiSelectionBox-replace-items1.ycp example show that it is indeed a Qt specific problem: The first UI::ChangeWidget() call to a MultiSelectionBox with wider content than before cuts off some characters. Subsequent calls do what is expected. It's really a bug in QListView, but there seems to be a simple workaround: Calling QListView::header()->setStretchEnabled( true ) fixes the problem (although according to the Qt documentation this should not be necessary; QListView::addColumn( xy ) should do the same thing). Created attachment 155433 [details]
Test case
Toggle the "Vegetarian" check box in this example to see the effect. Only the first toggle cuts off any text, any subsequent toggle will set the correct width.
|