liblancelot
#include <CustomListView.h>
Signals | |
void | sizeChanged () |
Public Member Functions | |
CustomList (QGraphicsItem *parent=NULL) | |
CustomList (CustomListItemFactory *factory, QGraphicsItem *parent=NULL) | |
virtual | ~CustomList () |
int | itemAtPosition (int y) const |
CustomListItemFactory * | itemFactory () const |
qreal | margin (Plasma::MarginEdge margin) |
L_Override qreal | scrollUnit (Qt::Orientation direction) const |
void | setItemFactory (CustomListItemFactory *factory) |
void | setMargin (Plasma::MarginEdge margin, qreal value) |
L_Override QSizeF | sizeFor (QSizeF viewportSize) const |
L_Override void | viewportChanged (QRectF viewport) |
Public Member Functions inherited from Lancelot::Scrollable | |
Scrollable () | |
virtual | ~Scrollable () |
virtual ScrollPane * | scrollPane () const |
virtual void | setScrollPane (ScrollPane *pane) |
Protected Slots | |
void | factoryItemAltered (int position) |
void | factoryItemDeleted (int position) |
void | factoryItemInserted (int position) |
void | factoryUpdated () |
Detailed Description
Class that does the layouting of items in the list.
The list implements the Scrollable interface. Supports resizing items to best fit scroll pane viewport. It doesn't scroll by itself.
Definition at line 110 of file CustomListView.h.
Constructor & Destructor Documentation
Lancelot::CustomList::CustomList | ( | QGraphicsItem * | parent = NULL | ) |
Definition at line 183 of file CustomListView.cpp.
|
explicit |
Definition at line 188 of file CustomListView.cpp.
|
virtual |
Definition at line 194 of file CustomListView.cpp.
Member Function Documentation
|
protectedslot |
Definition at line 298 of file CustomListView.cpp.
|
protectedslot |
Definition at line 292 of file CustomListView.cpp.
|
protectedslot |
Definition at line 286 of file CustomListView.cpp.
|
protectedslot |
Definition at line 304 of file CustomListView.cpp.
int Lancelot::CustomList::itemAtPosition | ( | int | y | ) | const |
Definition at line 224 of file CustomListView.cpp.
CustomListItemFactory * Lancelot::CustomList::itemFactory | ( | ) | const |
Definition at line 237 of file CustomListView.cpp.
qreal Lancelot::CustomList::margin | ( | Plasma::MarginEdge | margin | ) |
Definition at line 315 of file CustomListView.cpp.
|
virtual |
- Parameters
-
direction direction for which the scroll unit size is needed
- Returns
- scroll unit size
Implements Lancelot::Scrollable.
Definition at line 280 of file CustomListView.cpp.
void Lancelot::CustomList::setItemFactory | ( | CustomListItemFactory * | factory | ) |
Definition at line 199 of file CustomListView.cpp.
void Lancelot::CustomList::setMargin | ( | Plasma::MarginEdge | margin, |
qreal | value | ||
) |
Definition at line 309 of file CustomListView.cpp.
|
signal |
|
virtual |
- Returns
- the desired size of the Scrollable widget when the container provides it with a specified viewport size
- viewportSize viewport size
Implements Lancelot::Scrollable.
Definition at line 242 of file CustomListView.cpp.
|
virtual |
Sets the currently displayed area.
This function tells the Scrollable widget which part of it is shown after scrolling.
- Note
- The size of the scrolling viewport doesn't need to be equal to ScrollPane::viewportSize()
- Parameters
-
viewport new viewport rectangle
Implements Lancelot::Scrollable.
Definition at line 253 of file CustomListView.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.