[ fromfile: homework/stardelegate.xml id: stardelegate ]
In the Qt examples, there is a stardelegate app that provides a QItemDelegate for StarRating
instances.
Instead of using a word like "bad" or "great" to rate a song, you can give the song from zero to N stars that are displayed in the tabular output instead of or in addition to the Preference
.
Write a class or namespace that provides a bidirectional conversion between Preference
and StarRating
.
Write a StarDelegate
that works for Preference
.
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |