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

Method buttonTriggered

kdevplatform/shell/workingsets/workingsettoolbutton.cpp:157–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void WorkingSetToolButton::buttonTriggered()
158{
159 Q_ASSERT(m_set);
160
161 if(mainWindow()->area()->workingSet() == m_set->id()) {
162 showTooltip(QCursor::pos());
163 }else{
164 //Only close the working-set if the file was saved before
165 if (!saveAllDocumentsForMainWindow())
166 return;
167 m_set->setPersistent(true);
168 mainWindow()->area()->setWorkingSet(m_set->id());
169 }
170}
171
172#include "moc_workingsettoolbutton.cpp"

Callers

nothing calls this directly

Calls 7

mainWindowFunction · 0.85
setPersistentMethod · 0.80
workingSetMethod · 0.45
areaMethod · 0.45
idMethod · 0.45
setWorkingSetMethod · 0.45

Tested by

no test coverage detected