MCPcopy Create free account
hub / github.com/KDAB/GammaRay / saveWindowState

Method saveWindowState

ui/uistatemanager.cpp:391–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391void UIStateManager::saveWindowState()
392{
393 QMainWindow *window = qobject_cast<QMainWindow *>(m_widget);
394
395 if (window) {
396 m_stateSettings->setValue(widgetGeometryKey(m_widget), window->saveGeometry());
397 m_stateSettings->setValue(widgetStateKey(m_widget), window->saveState());
398 }
399}
400
401void UIStateManager::restoreSplitterState(QSplitter *splitter)
402{

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.45
saveStateMethod · 0.45

Tested by

no test coverage detected