Loading...
Searching...
No Matches
Dataflow::AutoScrollableView Class Referenceabstract

A QGraphicsView that knows how to move its content for auto-scroll. More...

Inheritance diagram for Dataflow::AutoScrollableView:
Scenario::ProcessGraphicsView

Detailed Description

A QGraphicsView that knows how to move its content for auto-scroll.

Implemented (by multiple inheritance, next to QGraphicsView) by views whose scrolling is not plain scroll bars: the nodal canvas pans an item, the timeline grows its scene as one scrolls past the end. CableDragAutoScroller looks it up with dynamic_cast and falls back to the scroll bars otherwise.

Public Member Functions

virtual bool autoScrollBy (QPoint delta)=0
 Reveals what lies delta pixels further (view coordinates).
 

Member Function Documentation

◆ autoScrollBy()

virtual bool Dataflow::AutoScrollableView::autoScrollBy ( QPoint  delta)
pure virtual

Reveals what lies delta pixels further (view coordinates).

A positive x reveals content to the right, a positive y content below.

Returns
true if the content moved.

Implemented in Scenario::ProcessGraphicsView.


The documentation for this class was generated from the following files: