| 26 | using QtNodes::FlowScene; |
| 27 | |
| 28 | FlowView:: |
| 29 | FlowView(QWidget *parent) |
| 30 | : QGraphicsView(parent) |
| 31 | , _clearSelectionAction(Q_NULLPTR) |
| 32 | , _deleteSelectionAction(Q_NULLPTR) |
| 33 | , _scene(Q_NULLPTR) |
| 34 | { |
| 35 | setDragMode(QGraphicsView::ScrollHandDrag); |
| 36 | setRenderHint(QPainter::Antialiasing); |
| 37 | |
| 38 | auto const &flowViewStyle = StyleCollection::flowViewStyle(); |
| 39 | |
| 40 | setBackgroundBrush(flowViewStyle.BackgroundColor); |
| 41 | |
| 42 | setViewportUpdateMode(QGraphicsView::FullViewportUpdate); |
| 43 | //setViewportUpdateMode(QGraphicsView::MinimalViewportUpdate); |
| 44 | |
| 45 | setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); |
| 46 | setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); |
| 47 | |
| 48 | setTransformationAnchor(QGraphicsView::AnchorUnderMouse); |
| 49 | |
| 50 | setCacheMode(QGraphicsView::CacheBackground); |
| 51 | |
| 52 | //setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers))); |
| 53 | } |
| 54 | |
| 55 | |
| 56 | FlowView:: |
nothing calls this directly
no outgoing calls
no test coverage detected