mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-02 08:24:14 +02:00
Fix dock widget size/position not being restored on Qt6
This commit is contained in:
@@ -952,7 +952,13 @@ void QETElementEditor::readSettings()
|
||||
|
||||
QVariant state = settings.value("elementeditor/state");
|
||||
if (state.isValid()) {
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
if (!restoreState(state.toByteArray())) {
|
||||
settings.remove("elementeditor/state");
|
||||
}
|
||||
#else
|
||||
restoreState(state.toByteArray());
|
||||
#endif
|
||||
}
|
||||
|
||||
auto data = m_elmt_scene->elementData();
|
||||
|
||||
Reference in New Issue
Block a user