MCPcopy Create free account
hub / github.com/KDE/kdevelop / add

Method add

kdevplatform/sublime/areaindex.cpp:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91AreaIndex::~AreaIndex() = default;
92
93void AreaIndex::add(View *view, View *after)
94{
95 Q_D(AreaIndex);
96
97 //we can not add views to the areas that have already been split
98 if (d->isSplit())
99 return;
100
101 if (after)
102 d->views.insert(d->views.indexOf(after)+1, view);
103 else
104 d->views.append(view);
105}
106
107void AreaIndex::remove(View *view)
108{

Callers 2

splitMethod · 0.45
addViewMethod · 0.45

Calls 4

isSplitMethod · 0.45
insertMethod · 0.45
indexOfMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected