Revision 781611
Go back to digest for 9th March 2008Features in KDE Base
Sebastian Trueg committed changes in /trunk/KDE/kdelibs/nepomuk/core/ui:
KRatingPainter is now public API. It allows to paint a graphical representation of a rating using any QPainter as well as determining a rating value from a position in a rating paint rect.
It supports all alignment combinations, RTL layout, custom icons or pixmaps, arbitrary resizing, and convenience features such as spacing, maximum rating change, and static methods for quick usage in most common situations.
The straight forward usecase is in a widget: KRatingWidget. It has nearly the same API as KRatingPainter.
I also wrote a nice little testapp which allows to test all features interactively.
File Changes
Added 7 files
- /trunk/KDE/kdelibs/nepomuk/core/ui
- /kratingpainter.cpp
- /kratingpainter.h
- /test
- /test/CMakeLists.txt
- /test/ratingpaintertestapp.cpp
- /test/ratingpaintertestwidget.cpp
- /test/ratingpaintertestwidget.h
Deleted 2 files
- /trunk/KDE/kdelibs/nepomuk/core/ui
- /ratingpainter.cpp
- /ratingpainter.h
Modified 3 files
- /trunk/KDE/kdelibs/nepomuk/core/ui
- /CMakeLists.txt
- /kratingwidget.cpp
- /kratingwidget.h
12 files changed in total