Review Request: Fix KConfigDialogManager fails to handle subclasses of QComboBox with custom property

Christoph Feck christoph at maxiom.de
Fri Feb 10 00:01:13 GMT 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103909/#review10470
-----------------------------------------------------------


Thanks Albert for looking at it. Not sure if I understand everything correctly, but what happens, when I have a subclass of Q/KComboBox, that does not have its own user property?

I am considering the following possible cases:

1) plain QComboBox
2) subclassed QComboBox without custom user property
3) subclassed QComboBox with custom user property
4) plain KComboBox
5) subclassed KComboBox without custom user property
6) subclassed KComboBox with custom user property (e.g. KColorCombo)

For 1) 2) 4) 5) it should ignore the new 4.8 user property, and use our custom code.
For 3) 6) it should respect the custom user property.

If I am following code paths correctly, the patch fails for cases 2) and 5). It does not find the class name in the map, falls back to user property (what Qt provides now since 4.8), and thus not handle our custom code.

- Christoph Feck


On Feb. 9, 2012, 11:28 p.m., Albert Astals Cid wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103909/
> -----------------------------------------------------------
> 
> (Updated Feb. 9, 2012, 11:28 p.m.)
> 
> 
> Review request for kdelibs, Ben Cooksley, Eike Hein, Christoph Feck, and Jeremy Paul Whiting.
> 
> 
> Description
> -------
> 
> https://git.reviewboard.kde.org/r/101486/ broke subclasses of QComboBox that have a USER property like KColorCombo, this patch reverts this change and introduces a different code path to ignore the USER property of QComboBox and KComboBox and make it use our custom code.
> 
> 
> This addresses bug 293702.
>     http://bugs.kde.org/show_bug.cgi?id=293702
> 
> 
> Diffs
> -----
> 
>   kdeui/tests/CMakeLists.txt 63788f6 
>   kdeui/tests/kconfigdialog_unittest.cpp PRE-CREATION 
>   kdeui/dialogs/kconfigdialogmanager.cpp 0890c0b 
> 
> Diff: http://git.reviewboard.kde.org/r/103909/diff/diff
> 
> 
> Testing
> -------
> 
> Ran the attached test, everything worked.
> 
> Without moving the
>  userproperty = getUserProperty(w);
> the KColorCombo fails
> 
> Without adding the 
>  s_propertyMap->insert( "KComboBox", "" );
> the editable KComboBox fails
> 
> 
> Thanks,
> 
> Albert Astals Cid
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20120210/b496daa3/attachment.htm>


More information about the kde-core-devel mailing list