MCPcopy Create free account
hub / github.com/KDE/kdevelop / ~View

Method ~View

kdevplatform/sublime/view.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39View::~View()
40{
41 Q_D(View);
42
43 // widget is a raw pointer cache that prevents repeated weak pointer access
44 auto* const widget = d->widget.get();
45 if (widget && d->ws == View::TakeOwnership) {
46 widget->hide();
47 widget->setParent(nullptr);
48 delete widget;
49 }
50}
51
52Document *View::document() const
53{

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
setParentMethod · 0.45

Tested by

no test coverage detected