MCPcopy Create free account
hub / github.com/Adaptix-Framework/AdaptixC2 / SessionsGraph

Method SessionsGraph

AdaptixClient/Source/UI/Graph/SessionsGraph.cpp:11–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <Client/AuthProfile.h>
10
11SessionsGraph::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
36SessionsGraph::~SessionsGraph()
37{

Callers

nothing calls this directly

Calls 7

scaleViewMethod · 0.95
RootInitMethod · 0.95
GetProjectMethod · 0.80
GetProfileMethod · 0.45
setTitleMethod · 0.45
setWidgetMethod · 0.45
setIconMethod · 0.45

Tested by

no test coverage detected