liblancelot
#include <ScrollPane.h>
Public Types | |
enum | Flag { ClipScrollable = 1, HoverShowScrollbars = 2 } |
Public Slots | |
void | scrollableWidgetSizeUpdateNeeded () |
void | scrollHorizontal (int value) |
void | scrollVertical (int value) |
Public Member Functions | |
ScrollPane (QGraphicsItem *parent=0) | |
virtual | ~ScrollPane () |
void | clearFlag (Flag flag) |
QSizeF | contentsSize () const |
QSizeF | currentViewportSize () const |
Flags | flags () const |
QSizeF | maximumViewportSize () const |
QPointF | scrollPosition () const |
void | scrollTo (QRectF rect) |
void | setFlag (Flag flag) |
void | setFlags (Flags flags) |
void | setFlip (Plasma::Flip flip) |
void | setScrollableWidget (Scrollable *widget) |
void | setScrollPosition (const QPointF &position) |
QRectF | viewportGeometry () const |
Public Member Functions inherited from Lancelot::Widget | |
Widget (QGraphicsItem *parent=0) | |
virtual | ~Widget () |
Group * | group () const |
QString | groupName () const |
bool | isDown () const |
bool | isHovered () const |
virtual void | setGroup (Group *group=NULL) |
virtual void | setGroupByName (const QString &groupName) |
Protected Member Functions | |
L_Override void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
L_Override void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
L_Override void | resizeEvent (QGraphicsSceneResizeEvent *event) |
Protected Member Functions inherited from Lancelot::Widget | |
L_Override void | hideEvent (QHideEvent *event) |
L_Override void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
L_Override void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
L_Override void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
L_Override void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
L_Override void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
void | paintBackground (QPainter *painter) |
void | paintBackground (QPainter *painter, const QString &element) |
void | setDown (bool value) |
void | setHovered (bool value) |
void | setPaintBackwardsWhenRTL (bool value) |
L_Override QSizeF | sizeHint (Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const |
Properties | |
QSizeF | contentsSize |
QPointF | scrollPosition |
QRectF | viewportGeometry |
Properties inherited from Lancelot::Widget | |
bool | down |
QString | group |
Additional Inherited Members | |
Signals inherited from Lancelot::Widget | |
void | clicked () |
void | mouseHoverEnter () |
void | mouseHoverLeave () |
void | pressed () |
void | released () |
Detailed Description
Pane for containing scrollable items.
Definition at line 94 of file ScrollPane.h.
Member Enumeration Documentation
Enumerator | |
---|---|
ClipScrollable | |
HoverShowScrollbars |
Definition at line 105 of file ScrollPane.h.
Constructor & Destructor Documentation
Lancelot::ScrollPane::ScrollPane | ( | QGraphicsItem * | parent = 0 | ) |
Creates a new Lancelot::ScrollPane.
- Parameters
-
parent parent item
Definition at line 92 of file ScrollPane.cpp.
|
virtual |
Destroys this ScrollPane.
Definition at line 126 of file ScrollPane.cpp.
Member Function Documentation
void Lancelot::ScrollPane::clearFlag | ( | Flag | flag | ) |
Turns the specified flag off.
Definition at line 247 of file ScrollPane.cpp.
QSizeF Lancelot::ScrollPane::contentsSize | ( | ) | const |
- Returns
- the size of the internal widget
QSizeF Lancelot::ScrollPane::currentViewportSize | ( | ) | const |
- Returns
- the current size of this ScrollPane widget. It equals maximumViewportSize() minus the sizes of the scrolling controls
Definition at line 158 of file ScrollPane.cpp.
ScrollPane::Flags Lancelot::ScrollPane::flags | ( | ) | const |
- Returns
- active flags
Definition at line 253 of file ScrollPane.cpp.
|
protected |
Definition at line 274 of file ScrollPane.cpp.
|
protected |
Definition at line 289 of file ScrollPane.cpp.
QSizeF Lancelot::ScrollPane::maximumViewportSize | ( | ) | const |
- Returns
- the maximum size that this ScrollPane widget can provide without scrolling.
Definition at line 153 of file ScrollPane.cpp.
|
protected |
Definition at line 223 of file ScrollPane.cpp.
|
slot |
Call this slot when the scrollable widget updates its side.
Definition at line 163 of file ScrollPane.cpp.
|
slot |
Scrolls the view horizontally to the specified value.
Definition at line 229 of file ScrollPane.cpp.
QPointF Lancelot::ScrollPane::scrollPosition | ( | ) | const |
- Returns
- the position of the webpage relative to this widget
void Lancelot::ScrollPane::scrollTo | ( | QRectF | rect | ) |
Ensures that the specified area is visible.
- Parameters
-
rect area
Definition at line 320 of file ScrollPane.cpp.
|
slot |
Scrolls the view vertically to the specified value.
Definition at line 235 of file ScrollPane.cpp.
void Lancelot::ScrollPane::setFlag | ( | Flag | flag | ) |
Turns the specified flag on.
Definition at line 241 of file ScrollPane.cpp.
void Lancelot::ScrollPane::setFlags | ( | Flags | flags | ) |
Sets all flags.
Definition at line 258 of file ScrollPane.cpp.
void Lancelot::ScrollPane::setFlip | ( | Plasma::Flip | flip | ) |
Flips the layout of the scrollbars.
Definition at line 305 of file ScrollPane.cpp.
void Lancelot::ScrollPane::setScrollableWidget | ( | Scrollable * | widget | ) |
Sets the widget that should be contained by this ScrollPane.
- Parameters
-
widget widget implementing the Scrollable interface
Definition at line 137 of file ScrollPane.cpp.
void Lancelot::ScrollPane::setScrollPosition | ( | const QPointF & | position | ) |
Sets the position of the webpage relative to this widget.
Definition at line 352 of file ScrollPane.cpp.
QRectF Lancelot::ScrollPane::viewportGeometry | ( | ) | const |
The geometry of the area that actually displays the web page.
Property Documentation
|
read |
Definition at line 98 of file ScrollPane.h.
|
readwrite |
Definition at line 97 of file ScrollPane.h.
|
read |
Definition at line 99 of file ScrollPane.h.
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.