|
QSint Library
0.2.2
|
2-dimensional scrolling widget. More...
#include <scrollpanner.h>
Inherits QWidget.
Public Slots | |
| void | enablePanning (bool on=true) |
Public Member Functions | |
| ScrollPanner (QWidget *parent=0) | |
| virtual | ~ScrollPanner () |
| bool | isPanningEnabled () const |
2-dimensional scrolling widget.
ScrollPanner is intended for scrolling in both direction (horizontal and vertical) at the same time. Main frame represents the scrollable area, and the slider inside the frame corresponds to the visible part.
Slider is draggable within the frame (panning mode on). This behavior is enabled by default. If you want to disable the panning, use enablePanning(false).
To use ScrollPanner, attach it to the source widget (which content intended to be scrolled) using one of connectSource() methods. Currently QAbstractScrollArea and QAbstractSlider descedants can be handled by ScrollPanner.
|
explicit |
Constructor
|
virtual |
Destructor
|
slot |
Sets panning mode to on (true by default). When panning is enabled, you can move the slider by the mouse.
|
inline |
Returns true if mouse panning is enabled (default), false otherwise.