| 9 | #include <Client/AuthProfile.h> |
| 10 | |
| 11 | SessionsGraph::SessionsGraph(QWidget* parent) : QGraphicsView(parent) |
| 12 | { |
| 13 | this->mainWidget = parent; |
| 14 | |
| 15 | QString project = static_cast<AdaptixWidget *>(parent)->GetProfile()->GetProject(); |
| 16 | |
| 17 | dockWidget = new KDDockWidgets::QtWidgets::DockWidget("Sessions Graph:Dock-" + project, KDDockWidgets::DockWidgetOption_None, KDDockWidgets::LayoutSaverOption::None); |
| 18 | dockWidget->setTitle("Sessions Graph"); |
| 19 | dockWidget->setWidget(this); |
| 20 | dockWidget->setIcon(QIcon( ":/icons/graph" ), KDDockWidgets::IconPlace::TabBar); |
| 21 | |
| 22 | setDragMode( QGraphicsView::RubberBandDrag ); |
| 23 | setCacheMode( QGraphicsView::CacheBackground ); |
| 24 | setViewportUpdateMode( QGraphicsView::BoundingRectViewportUpdate ); |
| 25 | setTransformationAnchor( QGraphicsView::AnchorUnderMouse ); |
| 26 | setRenderHint( QPainter::Antialiasing ); |
| 27 | this->scaleView( 0.8 ); |
| 28 | |
| 29 | this->graphScene = new GraphScene( 10, this->mainWidget, this ); |
| 30 | this->graphScene->setItemIndexMethod( QGraphicsScene::NoIndex ); |
| 31 | setScene( this->graphScene ); |
| 32 | |
| 33 | this->RootInit(); |
| 34 | } |
| 35 | |
| 36 | SessionsGraph::~SessionsGraph() |
| 37 | { |
nothing calls this directly
no test coverage detected