Applets
Notifier::NotifierView Class Reference
The view used to display information in a device popup. More...
#include <notifierview.h>

Public Member Functions | |
void | calculateRects () |
NotifierView (QWidget *parent=0) | |
virtual | ~NotifierView () |
Protected Member Functions | |
QModelIndex | indexAt (const QPoint &point) const |
void | leaveEvent (QEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
QModelIndex | moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers) |
void | paintEvent (QPaintEvent *event) |
void | paintHeaderItem (QPainter &painter, const QRect &itemRect, const QModelIndex &index) |
void | paintItem (QPainter &painter, const QRect &itemRect, const QModelIndex &index) |
void | resizeEvent (QResizeEvent *event) |
Static Protected Attributes | |
static const int | COLUMN_EJECT_MARGIN = 5 |
static const int | COLUMN_EJECT_SIZE = 50 |
static const int | HEADER_HEIGHT = 35 |
static const int | HEADER_LEFT_MARGIN = 5 |
static const int | HEADER_TOP_MARGIN = 5 |
static const int | TOP_OFFSET = 5 |
Detailed Description
The view used to display information in a device popup.
Definition at line 32 of file notifierview.h.
Constructor & Destructor Documentation
Notifier::NotifierView::NotifierView | ( | QWidget * | parent = 0 |
) |
Constructor of view.
- Parameters:
-
parent the parent of this object
virtual Notifier::NotifierView::~NotifierView | ( | ) | [virtual] |
Default destructor.
Member Function Documentation
void Notifier::NotifierView::calculateRects | ( | ) |
Creates rects in widget coordinates for the model.
QModelIndex Notifier::NotifierView::indexAt | ( | const QPoint & | point | ) | const [protected] |
Return an index at the position "point" if exist otherwise return a default constructed value of QModelIndex.
- Parameters:
-
point the point where we will looking for an item
void Notifier::NotifierView::leaveEvent | ( | QEvent * | event | ) | [protected] |
Call when cursor leave the widget.
- Parameters:
-
event the leave event
void Notifier::NotifierView::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected] |
Call when a mouse move event is catch.
- Parameters:
-
event the mouse event
void Notifier::NotifierView::mousePressEvent | ( | QMouseEvent * | event | ) | [protected] |
Call when a mouse move event is catch.
- Parameters:
-
event the mouse event
QModelIndex Notifier::NotifierView::moveCursor | ( | CursorAction | cursorAction, | |
Qt::KeyboardModifiers | ||||
) | [protected] |
Move the cursor in the way describe by cursorAction.
- Parameters:
-
cursorAction the cursor action
Reimplemented from QTreeView.
void Notifier::NotifierView::paintEvent | ( | QPaintEvent * | event | ) | [protected] |
Call when the view is paint.
- Parameters:
-
event the paint event
void Notifier::NotifierView::paintHeaderItem | ( | QPainter & | painter, | |
const QRect & | itemRect, | |||
const QModelIndex & | index | |||
) | [protected] |
Paint a header item.
- Parameters:
-
painter the painter used to paint itemRect the rect where the item will be paint index the QModelIndex that represent the item to paint
void Notifier::NotifierView::paintItem | ( | QPainter & | painter, | |
const QRect & | itemRect, | |||
const QModelIndex & | index | |||
) | [protected] |
Paint an item in the view by using the delegate.
- Parameters:
-
painter the painter used to paint itemRect the rect where the item will be paint index the QModelIndex that represent the item to paint
void Notifier::NotifierView::resizeEvent | ( | QResizeEvent * | event | ) | [protected] |
Call when the view is resized.
- Parameters:
-
event the resize event
Member Data Documentation
const int Notifier::NotifierView::COLUMN_EJECT_MARGIN = 5 [static, protected] |
Definition at line 116 of file notifierview.h.
const int Notifier::NotifierView::COLUMN_EJECT_SIZE = 50 [static, protected] |
Definition at line 117 of file notifierview.h.
const int Notifier::NotifierView::HEADER_HEIGHT = 35 [static, protected] |
Definition at line 115 of file notifierview.h.
const int Notifier::NotifierView::HEADER_LEFT_MARGIN = 5 [static, protected] |
Definition at line 113 of file notifierview.h.
const int Notifier::NotifierView::HEADER_TOP_MARGIN = 5 [static, protected] |
Definition at line 114 of file notifierview.h.
const int Notifier::NotifierView::TOP_OFFSET = 5 [static, protected] |
Definition at line 118 of file notifierview.h.
The documentation for this class was generated from the following file: