MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / FlowView

Method FlowView

QtNodeEditor/src/FlowView.cpp:28–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26using QtNodes::FlowScene;
27
28FlowView::
29FlowView(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
56FlowView::

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected