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

Method topViews

kdevplatform/sublime/mainwindow.cpp:105–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105QList<View*> MainWindow::topViews() const
106{
107 Q_D(const MainWindow);
108
109 QList<View*> topViews;
110 const auto views = d->area->views();
111 for (View* view : views) {
112 if (const auto* const widget = view->widget()) {
113 if(widget->parent() && widget->parent()->parent())
114 {
115 auto* container = qobject_cast<Container*>(widget->parent()->parent());
116 if(container->currentWidget() == widget)
117 topViews << view;
118 }
119 }
120 }
121 return topViews;
122}
123
124QSet<Container*> MainWindow::containers() const
125{

Callers 2

gotoPrevNextSplitFunction · 0.80
openDocumentsSimpleMethod · 0.80

Calls 4

viewsMethod · 0.45
widgetMethod · 0.45
parentMethod · 0.45
currentWidgetMethod · 0.45

Tested by

no test coverage detected