QBitmapQwtPanner::contentsMask()const[protected],[virtual]
Calculate a mask for the contents of the panned widget. Sometimes only parts of the contents of a widget
should be panned. F.e. for a widget with a styled background with rounded borders only the area inside of
the border should be panned.
Returns:
An empty bitmap, indicating no mask
Reimplemented in QwtPlotPanner.
constQCursorQwtPanner::cursor()constReturns:
Cursor that is active while panning
Seealso:setCursor()boolQwtPanner::eventFilter(QObject*object,QEvent*event)[virtual]
Event filter. When isEnabled() is true mouse events of the observed widget are filtered.
Parameters:object Object to be filtered
event Event
Returns:
Always false, beside for paint events for the parent widget.
Seealso:widgetMousePressEvent(), widgetMouseReleaseEvent(), widgetMouseMoveEvent()QPixmapQwtPanner::grab()const[protected],[virtual]
Grab the widget into a pixmap.
Returns:
Grabbed pixmap
Reimplemented in QwtPlotPanner.
boolQwtPanner::isEnabled()constReturns:
true when enabled, false otherwise
Seealso:setEnabled, eventFilter()boolQwtPanner::isOrientationEnabled(Qt::Orientationo)constReturns:
True if an orientation is enabled
Seealso:orientations(), setOrientations()voidQwtPanner::moved(intdx,intdy)[signal]
Signal emitted, while the widget moved, but panning is not finished.
Parameters:dx Offset in horizontal direction
dy Offset in vertical direction
voidQwtPanner::paintEvent(QPaintEvent*event)[protected],[virtual]
Paint event. Repaint the grabbed pixmap on its current position and fill the empty spaces by the
background of the parent widget.
Parameters:event Paint event
voidQwtPanner::panned(intdx,intdy)[signal]
Signal emitted, when panning is done
Parameters:dx Offset in horizontal direction
dy Offset in vertical direction
voidQwtPanner::setAbortKey(intkey,Qt::KeyboardModifiersmodifiers=Qt::NoModifier)
Change the abort key The defaults are Qt::Key_Escape and Qt::NoModifiers
Parameters:key Key ( See Qt::Keycode )
modifiers Keyboard modifiers
voidQwtPanner::setCursor(constQCursor&cursor)
Change the cursor, that is active while panning The default is the cursor of the parent widget.
Parameters:cursor New cursor
Seealso:setCursor()voidQwtPanner::setEnabled(boolon)
En/disable the panner. When enabled is true an event filter is installed for the observed widget,
otherwise the event filter is removed.
Parameters:on true or false
Seealso:isEnabled(), eventFilter()voidQwtPanner::setMouseButton(Qt::MouseButtonbutton,Qt::KeyboardModifiersmodifiers=Qt::NoModifier)
Change the mouse button and modifiers used for panning The defaults are Qt::LeftButton and Qt::NoModifier
voidQwtPanner::setOrientations(Qt::Orientationso)
Set the orientations, where panning is enabled The default value is in both directions: Qt::Horizontal |
Qt::Vertical
/param o Orientation
voidQwtPanner::widgetKeyPressEvent(QKeyEvent*keyEvent)[protected],[virtual]
Handle a key press event for the observed widget.
Parameters:keyEvent Key event
Seealso:eventFilter(), widgetKeyReleaseEvent()voidQwtPanner::widgetKeyReleaseEvent(QKeyEvent*keyEvent)[protected],[virtual]
Handle a key release event for the observed widget.
Parameters:keyEvent Key event
Seealso:eventFilter(), widgetKeyReleaseEvent()voidQwtPanner::widgetMouseMoveEvent(QMouseEvent*mouseEvent)[protected],[virtual]
Handle a mouse move event for the observed widget.
Parameters:mouseEvent Mouse event
Seealso:eventFilter(), widgetMousePressEvent(), widgetMouseReleaseEvent()voidQwtPanner::widgetMousePressEvent(QMouseEvent*mouseEvent)[protected],[virtual]
Handle a mouse press event for the observed widget.
Parameters:mouseEvent Mouse event
Seealso:eventFilter(), widgetMouseReleaseEvent(), widgetMouseMoveEvent(),
voidQwtPanner::widgetMouseReleaseEvent(QMouseEvent*mouseEvent)[protected],[virtual]
Handle a mouse release event for the observed widget.
Parameters:mouseEvent Mouse event
Seealso:eventFilter(), widgetMousePressEvent(), widgetMouseMoveEvent(),