diff options
| author | Samuel Gaist <samuel.gaist@idiap.ch> | 2020-01-12 20:15:56 +0100 |
|---|---|---|
| committer | Samuel Gaist <samuel.gaist@idiap.ch> | 2020-01-27 23:41:08 +0100 |
| commit | 1f827cc1cba846eb2c6edacd2096469e4b0bc400 (patch) | |
| tree | a229d3168793b9892ace6b816be3c20a2c800ba3 /sources/pyside2/doc/tutorials | |
| parent | d823a2740d4dabc925f9082f28ac9865188ec8ab (diff) | |
examples: improve the star delegate example
While the example works correctly as is, if one takes the StarEditor
class alone, it will fail to work as it uses a starRating attribute that
is available in the example only because of the call to setEditorData
by the StarDelegate class.
This patch fixes that as well makes use of the append overload of
QPolygonF taking a list of point to simplify the code a bit.
Change-Id: Id8132fa86f5668645f48c62377dac65f707c968b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2/doc/tutorials')
0 files changed, 0 insertions, 0 deletions
