liblancelot
Go to the documentation of this file.
20 #ifndef LANCELOT_SCROLL_PANE_H
21 #define LANCELOT_SCROLL_PANE_H
52 virtual QSizeF sizeFor(QSizeF viewportSize)
const = 0;
63 virtual void viewportChanged(QRectF viewport) = 0;
70 virtual qreal scrollUnit(Qt::Orientation direction)
const = 0;
97 Q_PROPERTY(QPointF scrollPosition READ scrollPosition WRITE setScrollPosition)
98 Q_PROPERTY(QSizeF contentsSize READ contentsSize)
99 Q_PROPERTY(QRectF viewportGeometry READ viewportGeometry)
107 HoverShowScrollbars = 2
109 Q_DECLARE_FLAGS(Flags, Flag)
127 void setScrollableWidget(
Scrollable * widget);
133 QSizeF maximumViewportSize() const;
140 QSizeF currentViewportSize() const;
145 void setFlag(Flag flag);
150 void clearFlag(Flag flag);
160 void setFlags(Flags flags);
165 void setFlip(Plasma::Flip flip);
171 void scrollTo(QRectF rect);
176 QSizeF contentsSize() const;
181 void setScrollPosition(const QPointF &position);
186 QPointF scrollPosition() const;
191 QRectF viewportGeometry() const;
195 L_Override void hoverEnterEvent(QGraphicsSceneHoverEvent * event);
196 L_Override void hoverLeaveEvent(QGraphicsSceneHoverEvent * event);
197 L_Override void resizeEvent(QGraphicsSceneResizeEvent * event);
204 void scrollableWidgetSizeUpdateNeeded();
209 void scrollHorizontal(
int value);
214 void scrollVertical(
int value);
223 Q_DECLARE_OPERATORS_FOR_FLAGS(Lancelot::ScrollPane::Flags)
225 #endif // LANCELOT_SCROLL_PANE_H
This file is part of the KDE documentation.
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.