Plasma
Plasma::ScrollWidget Class Reference
A container of widgets that can have scrollbars. More...
#include <scrollwidget.h>

Public Member Functions | |
Qt::ScrollBarPolicy | horizontalScrollBarPolicy () const |
QWidget * | nativeWidget () const |
ScrollWidget (QGraphicsWidget *parent=0) | |
void | setHorizontalScrollBarPolicy (const Qt::ScrollBarPolicy policy) |
void | setStyleSheet (const QString &stylesheet) |
void | setVerticalScrollBarPolicy (const Qt::ScrollBarPolicy policy) |
void | setWidget (QGraphicsWidget *widget) |
QString | styleSheet () const |
Qt::ScrollBarPolicy | verticalScrollBarPolicy () const |
QGraphicsWidget * | widget () const |
~ScrollWidget () | |
Protected Member Functions | |
bool | eventFilter (QObject *watched, QEvent *event) |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
void | resizeEvent (QGraphicsSceneResizeEvent *event) |
void | wheelEvent (QGraphicsSceneWheelEvent *event) |
Properties | |
Qt::ScrollBarPolicy | horizontalScrollBarPolicy |
QString | styleSheet |
Qt::ScrollBarPolicy | verticalScrollBarPolicy |
QGraphicsWidget | widget |
Detailed Description
A container of widgets that can have scrollbars.
A container of widgets that can have horizontal and vertical scrollbars if the content is bigger than the widget itself
- Since:
- 4.3
Definition at line 42 of file scrollwidget.h.
Constructor & Destructor Documentation
Plasma::ScrollWidget::ScrollWidget | ( | QGraphicsWidget * | parent = 0 |
) | [explicit] |
Constructs a new ScrollWidget.
- parent the parent of this widget
Definition at line 133 of file scrollwidget.cpp.
Plasma::ScrollWidget::~ScrollWidget | ( | ) |
Definition at line 158 of file scrollwidget.cpp.
Member Function Documentation
bool Plasma::ScrollWidget::eventFilter | ( | QObject * | watched, | |
QEvent * | event | |||
) | [protected] |
Definition at line 273 of file scrollwidget.cpp.
Qt::ScrollBarPolicy Plasma::ScrollWidget::horizontalScrollBarPolicy | ( | ) | const |
- Returns:
- the horizontal scrollbar policy
void Plasma::ScrollWidget::mouseMoveEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
Definition at line 239 of file scrollwidget.cpp.
void Plasma::ScrollWidget::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
Definition at line 258 of file scrollwidget.cpp.
QWidget * Plasma::ScrollWidget::nativeWidget | ( | ) | const |
- Returns:
- the native widget wrapped by this ScrollWidget
Definition at line 220 of file scrollwidget.cpp.
void Plasma::ScrollWidget::resizeEvent | ( | QGraphicsSceneResizeEvent * | event | ) | [protected] |
Definition at line 226 of file scrollwidget.cpp.
void Plasma::ScrollWidget::setHorizontalScrollBarPolicy | ( | const Qt::ScrollBarPolicy | policy | ) |
Sets the horizontal scrollbar policy.
- policy desired policy
Definition at line 185 of file scrollwidget.cpp.
void Plasma::ScrollWidget::setStyleSheet | ( | const QString & | stylesheet | ) |
Sets the stylesheet used to control the visual display of this ScrollWidget.
- stylesheet a CSS string
Definition at line 208 of file scrollwidget.cpp.
void Plasma::ScrollWidget::setVerticalScrollBarPolicy | ( | const Qt::ScrollBarPolicy | policy | ) |
Sets the vertical scrollbar policy.
- policy desired policy
Definition at line 197 of file scrollwidget.cpp.
void Plasma::ScrollWidget::setWidget | ( | QGraphicsWidget * | widget | ) |
Sets the widget this ScrollWidget will contain ownership is transferred to this scrollwidget, if an old one was already in, it will be deleted.
- widget the new main sub widget
Definition at line 164 of file scrollwidget.cpp.
QString Plasma::ScrollWidget::styleSheet | ( | ) | const |
- Returns:
- the stylesheet currently used with this widget
Qt::ScrollBarPolicy Plasma::ScrollWidget::verticalScrollBarPolicy | ( | ) | const |
- Returns:
- the vertical scrollbar policy
void Plasma::ScrollWidget::wheelEvent | ( | QGraphicsSceneWheelEvent * | event | ) | [protected] |
Definition at line 263 of file scrollwidget.cpp.
QGraphicsWidget* Plasma::ScrollWidget::widget | ( | ) | const |
- Returns:
- the main widget
Property Documentation
Qt::ScrollBarPolicy Plasma::ScrollWidget::horizontalScrollBarPolicy [read, write] |
Definition at line 46 of file scrollwidget.h.
QString Plasma::ScrollWidget::styleSheet [read, write] |
Definition at line 48 of file scrollwidget.h.
Qt::ScrollBarPolicy Plasma::ScrollWidget::verticalScrollBarPolicy [read, write] |
Definition at line 47 of file scrollwidget.h.
QGraphicsWidget * Plasma::ScrollWidget::widget [read, write] |
Definition at line 45 of file scrollwidget.h.
The documentation for this class was generated from the following files: