Applets
Kickoff::ItemDelegate Class Reference
#include <itemdelegate.h>

Detailed Description
Item delegate for rendering items in the Kickoff launcher's views.The delegate makes use of the various additional Kickoff item data roles to draw the item. For example, if the DiskFreeSpaceRole and DiskUsedSpaceRole item data is valid then a bar chart showing the amount of free space available on the disk will be drawn.
Definition at line 43 of file itemdelegate.h.
Public Member Functions | |
virtual bool | isVisible (const QModelIndex &index) const |
ItemDelegate (QObject *parent=0) | |
virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
Static Public Attributes | |
static const int | BACK_ARROW_SPACING = 5 |
static const int | BACK_ARROW_WIDTH = 20 |
static const int | FIRST_HEADER_HEIGHT = 20 |
static const int | HEADER_BOTTOM_MARGIN = 4 |
static const int | HEADER_HEIGHT = 35 |
static const int | HEADER_LEFT_MARGIN = 5 |
static const int | HEADER_TOP_MARGIN = 15 |
static const int | ITEM_LEFT_MARGIN = 25 |
static const int | ITEM_RIGHT_MARGIN = 7 |
static const int | TOP_OFFSET = 5 |
Constructor & Destructor Documentation
ItemDelegate::ItemDelegate | ( | QObject * | parent = 0 |
) |
Definition at line 45 of file itemdelegate.cpp.
Member Function Documentation
bool ItemDelegate::isVisible | ( | const QModelIndex & | index | ) | const [virtual] |
Returns true if a index
should be drawn in the view or false if it should be hidden.
Implements Kickoff::ItemStateProvider.
Definition at line 109 of file itemdelegate.cpp.
void ItemDelegate::paint | ( | QPainter * | painter, | |
const QStyleOptionViewItem & | option, | |||
const QModelIndex & | index | |||
) | const [virtual] |
Definition at line 50 of file itemdelegate.cpp.
Member Data Documentation
const int Kickoff::ItemDelegate::BACK_ARROW_SPACING = 5 [static] |
Definition at line 64 of file itemdelegate.h.
const int Kickoff::ItemDelegate::BACK_ARROW_WIDTH = 20 [static] |
Definition at line 63 of file itemdelegate.h.
const int Kickoff::ItemDelegate::FIRST_HEADER_HEIGHT = 20 [static] |
Definition at line 57 of file itemdelegate.h.
const int Kickoff::ItemDelegate::HEADER_BOTTOM_MARGIN = 4 [static] |
Definition at line 55 of file itemdelegate.h.
const int Kickoff::ItemDelegate::HEADER_HEIGHT = 35 [static] |
Definition at line 56 of file itemdelegate.h.
const int Kickoff::ItemDelegate::HEADER_LEFT_MARGIN = 5 [static] |
Definition at line 53 of file itemdelegate.h.
const int Kickoff::ItemDelegate::HEADER_TOP_MARGIN = 15 [static] |
Definition at line 54 of file itemdelegate.h.
const int Kickoff::ItemDelegate::ITEM_LEFT_MARGIN = 25 [static] |
Definition at line 59 of file itemdelegate.h.
const int Kickoff::ItemDelegate::ITEM_RIGHT_MARGIN = 7 [static] |
Definition at line 60 of file itemdelegate.h.
const int Kickoff::ItemDelegate::TOP_OFFSET = 5 [static] |
Definition at line 61 of file itemdelegate.h.
The documentation for this class was generated from the following files: