digikam
Digikam::ImageRatingOverlay Class Reference
#include <imageratingoverlay.h>

Signals | |
| void | ratingEdited (const QModelIndex &index, int rating) |
Public Member Functions | |
| ImageRatingOverlay (QObject *parent) | |
| RatingWidget * | ratingWidget () const |
Protected Slots | |
| void | slotDataChanged (const QModelIndex &, const QModelIndex &) |
| void | slotRatingChanged (int) |
Protected Member Functions | |
| virtual QWidget * | createWidget () |
| virtual void | hide () |
| virtual void | setActive (bool) |
| virtual void | slotEntered (const QModelIndex &index) |
| void | updatePosition () |
| void | updateRating () |
| virtual void | visualChange () |
Protected Attributes | |
| QPersistentModelIndex | m_index |
Detailed Description
Definition at line 42 of file imageratingoverlay.h.
Constructor & Destructor Documentation
| Digikam::ImageRatingOverlay::ImageRatingOverlay | ( | QObject * | parent | ) |
Definition at line 47 of file imageratingoverlay.cpp.
Member Function Documentation
| QWidget * Digikam::ImageRatingOverlay::createWidget | ( | ) | [protected, virtual] |
Create your widget here.
When creating the object, pass parentWidget() as parent widget. Ownership of the object is passed. It will be deleted in setActive(false).
Implements Digikam::AbstractWidgetDelegateOverlay.
Definition at line 57 of file imageratingoverlay.cpp.
| void Digikam::ImageRatingOverlay::hide | ( | ) | [protected, virtual] |
Called when the widget shall be hidden (mouse cursor left index, viewport, uninstalled etc.
). Default implementation hide()s m_widget.
Reimplemented from Digikam::AbstractWidgetDelegateOverlay.
Definition at line 87 of file imageratingoverlay.cpp.
| void Digikam::ImageRatingOverlay::ratingEdited | ( | const QModelIndex & | index, | |
| int | rating | |||
| ) | [signal] |
| RatingWidget * Digikam::ImageRatingOverlay::ratingWidget | ( | ) | const |
Definition at line 52 of file imageratingoverlay.cpp.
| void Digikam::ImageRatingOverlay::setActive | ( | bool | active | ) | [protected, virtual] |
If active is true, this will call createWidget(), initialize the widget for use, and setup connections for the virtual slots.
If active is false, this will delete the widget and disconnect all signal from model and view to this object (!)
Reimplemented from Digikam::AbstractWidgetDelegateOverlay.
Definition at line 66 of file imageratingoverlay.cpp.
| void Digikam::ImageRatingOverlay::slotDataChanged | ( | const QModelIndex & | topLeft, | |
| const QModelIndex & | bottomRight | |||
| ) | [protected, slot] |
Definition at line 137 of file imageratingoverlay.cpp.
| void Digikam::ImageRatingOverlay::slotEntered | ( | const QModelIndex & | index | ) | [protected, virtual] |
Default implementation shows the widget iff the index is valid and checkIndex returns true.
Reimplemented from Digikam::AbstractWidgetDelegateOverlay.
Definition at line 120 of file imageratingoverlay.cpp.
| void Digikam::ImageRatingOverlay::slotRatingChanged | ( | int | rating | ) | [protected, slot] |
Definition at line 114 of file imageratingoverlay.cpp.
| void Digikam::ImageRatingOverlay::updatePosition | ( | ) | [protected] |
Definition at line 93 of file imageratingoverlay.cpp.
| void Digikam::ImageRatingOverlay::updateRating | ( | ) | [protected] |
Definition at line 106 of file imageratingoverlay.cpp.
| void Digikam::ImageRatingOverlay::visualChange | ( | ) | [protected, virtual] |
Called when any change from the delegate occurs - when the overlay is installed, when size hints, styles or fonts change.
Reimplemented from Digikam::ImageDelegateOverlay.
Definition at line 81 of file imageratingoverlay.cpp.
Member Data Documentation
Definition at line 72 of file imageratingoverlay.h.
The documentation for this class was generated from the following files:
KDE 4.5 API Reference