Bug 152284

Summary: KTimeZoneWidget setSelected doesn't work
Product: [Unmaintained] kdelibs Reporter: hesham
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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