MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / setFrames

Method setFrames

src/plugins/debugger/interface/stackframemodel.cpp:145–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void StackFrameModel::setFrames(const StackFrames &frames, bool canExpand)
146{
147 beginResetModel();
148 contentsValid = true;
149 this->canExpand = canExpand;
150 stackFrames = frames;
151 currentIndex = 1;
152
153 if (stackFrames.size() > 0) {
154 for (int i = 0; i < stackFrames.size(); i++) {
155 bool bExists = QFile::exists(stackFrames[i].file);
156 if (bExists) {
157 setCurrentIndex(i);
158 break;
159 }
160 }
161 }
162
163 endResetModel();
164 emit stackChanged();
165}

Callers 1

handleFramesMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected