[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] simplewidgetmapper.py, customsortfiltermodel.py,
From:       "Hans-Peter Jansen" <hpj () urpla ! net>
Date:       2010-11-27 18:08:49
Message-ID: 201011271908.49774.hpj () urpla ! net
[Download RAW message or body]

Hi Phil, hi *,

attached are a few missing itemview examples for the collection.

While simplewidgetmapper.py and combowidgetmapper.py differ only in 
minor details, the customsortfiltermodel.py differs from the original 
in a major aspect: it actually works unlike the original ;-) 
 - the filters are applied on startup (UI shows consistent values)
 - the date limiter contain sane values
 - the date filter works properly

The last issue in MySortFilterProxyModel.dateInRange() results from a 
slight inconsistency in Qt: comparing QDate with QDateTime values 
doesn't work (at least not in a way, what would humans expect), hence 
the value has to be converted to a QDate before the comparison.

Enjoy,
Pete

["simplewidgetmapper.py" (application/x-python)]
["customsortfiltermodel.py" (application/x-python)]
["combowidgetmapper.py" (application/x-python)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic