Bug 152284 - KTimeZoneWidget setSelected doesn't work
Summary: KTimeZoneWidget setSelected doesn't work
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-14 05:32 UTC by hesham
Modified: 2007-11-14 14:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hesham 2007-11-14 05:32:23 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.2.3 
OS:                Linux

The problem is that calling this function with a valid timezone such as: "America/New_York" or "America/Detroit" or any other string that is valid and even returned by the dialog fails to be set so initializing the dialog means currently selected value can't be set.  Possible problem in the 

findItems loop, maybe we need to use: Qt::MatchExactly | Qt::MatchRecursive

Thanks.
Comment 1 David Faure 2007-11-14 14:49:05 UTC
SVN commit 736623 by dfaure:

Fix KTimeZoneWidget::setSelected; the model inside QTreeWidget didn't have a column for the hidden column, so the findItems failed.
Now using own loop and setData(), seems cleaner, and works.
BUG: 152284


 M  +1 -0      tests/CMakeLists.txt  
 M  +37 -24    widgets/ktimezonewidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=736623