Remove bool return value from IEditor::restoreState()

It's never used, and actually there wouldn't be any sensible thing to do
with it.

Change-Id: Id8a8df18c7db4b98e5abbc034240bb90dc1dcaa9
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Eike Ziller
2020-09-23 16:38:01 +02:00
parent 415365dcc3
commit cc502e3667
9 changed files with 16 additions and 21 deletions

View File

@@ -174,7 +174,7 @@ QByteArray ModelEditor::saveState() const
return saveState(currentDiagram());
}
bool ModelEditor::restoreState(const QByteArray &state)
void ModelEditor::restoreState(const QByteArray &state)
{
QDataStream stream(state);
int version = 0;
@@ -198,11 +198,9 @@ bool ModelEditor::restoreState(const QByteArray &state)
qmt::MDiagram *diagram = d->document->documentController()->modelController()->findObject<qmt::MDiagram>(uid);
if (diagram) {
openDiagram(diagram, false);
return true;
}
}
}
return false;
}
void ModelEditor::init()