Applets
Kickoff::FlipScrollView Class Reference
#include <flipscrollview.h>

Detailed Description
An "iPod-style" item view for single-column tree and list data models which displays items in pages (one per tree branch).Clicking on an item which has children (eg. a folder in a directory model) scrolls the whole contents of the view to show the items children. A large back arrow is displayed on the left of the display if the current item has a valid parent, when clicked on this scrolls the whole contents of the view to show the parent item's children.
The view assumes that the item delegate will fill the background with the current palette's highlight color when the user hovers over items with the mouse. Item delegates should check for the QStyle::State_MouseOver or QStyle::State_Selected flags in the state field of the QStyleOptionViewItem passed to the QAbstractItemDelegate::paint() method.
Definition at line 44 of file flipscrollview.h.
Public Member Functions | |
FlipScrollView (QWidget *parent=0) | |
virtual QModelIndex | indexAt (const QPoint &point) const |
int | itemHeight () const |
virtual void | scrollTo (const QModelIndex &index, ScrollHint hint=EnsureVisible) |
void | viewRoot () |
virtual QRect | visualRect (const QModelIndex &index) const |
virtual | ~FlipScrollView () |
Protected Member Functions | |
virtual int | horizontalOffset () const |
virtual bool | isIndexHidden (const QModelIndex &index) const |
virtual void | keyPressEvent (QKeyEvent *event) |
virtual void | leaveEvent (QEvent *event) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | mousePressEvent (QMouseEvent *event) |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
virtual QModelIndex | moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) |
virtual void | paintEvent (QPaintEvent *event) |
virtual void | resizeEvent (QResizeEvent *event) |
virtual void | setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags flags) |
virtual void | startDrag (Qt::DropActions supportedActions) |
virtual int | verticalOffset () const |
virtual QRegion | visualRegionForSelection (const QItemSelection &selection) const |
Constructor & Destructor Documentation
FlipScrollView::FlipScrollView | ( | QWidget * | parent = 0 |
) |
Construct a new FlipScrollView with the specified parent.
Definition at line 262 of file flipscrollview.cpp.
FlipScrollView::~FlipScrollView | ( | ) | [virtual] |
Definition at line 274 of file flipscrollview.cpp.
Member Function Documentation
int FlipScrollView::horizontalOffset | ( | ) | const [protected, virtual] |
Definition at line 393 of file flipscrollview.cpp.
QModelIndex FlipScrollView::indexAt | ( | const QPoint & | point | ) | const [virtual] |
Definition at line 290 of file flipscrollview.cpp.
bool FlipScrollView::isIndexHidden | ( | const QModelIndex & | index | ) | const [protected, virtual] |
Definition at line 337 of file flipscrollview.cpp.
int FlipScrollView::itemHeight | ( | ) | const |
Definition at line 308 of file flipscrollview.cpp.
void FlipScrollView::keyPressEvent | ( | QKeyEvent * | event | ) | [protected, virtual] |
void FlipScrollView::leaveEvent | ( | QEvent * | event | ) | [protected, virtual] |
Definition at line 548 of file flipscrollview.cpp.
void FlipScrollView::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
void FlipScrollView::mousePressEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
void FlipScrollView::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
QModelIndex FlipScrollView::moveCursor | ( | CursorAction | cursorAction, | |
Qt::KeyboardModifiers | modifiers | |||
) | [protected, virtual] |
void FlipScrollView::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Definition at line 618 of file flipscrollview.cpp.
void FlipScrollView::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
void FlipScrollView::scrollTo | ( | const QModelIndex & | index, | |
ScrollHint | hint = EnsureVisible | |||
) | [virtual] |
void FlipScrollView::setSelection | ( | const QRect & | rect, | |
QItemSelectionModel::SelectionFlags | flags | |||
) | [protected, virtual] |
void FlipScrollView::startDrag | ( | Qt::DropActions | supportedActions | ) | [protected, virtual] |
int FlipScrollView::verticalOffset | ( | ) | const [protected, virtual] |
Definition at line 398 of file flipscrollview.cpp.
void FlipScrollView::viewRoot | ( | ) |
QRect FlipScrollView::visualRect | ( | const QModelIndex & | index | ) | const [virtual] |
Definition at line 342 of file flipscrollview.cpp.
QRegion FlipScrollView::visualRegionForSelection | ( | const QItemSelection & | selection | ) | const [protected, virtual] |
Definition at line 403 of file flipscrollview.cpp.
The documentation for this class was generated from the following files: