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

@@ -130,7 +130,7 @@ public:
IEditor *duplicate() override;
QByteArray saveState() const override;
bool restoreState(const QByteArray &state) override;
void restoreState(const QByteArray &state) override;
QWidget *toolBar() override;
void contextHelp(const HelpCallback &callback) const override; // from IContext
@@ -190,7 +190,7 @@ public:
virtual void openFinishedSuccessfully();
// IEditor
QByteArray saveState() const;
virtual bool restoreState(const QByteArray &state);
virtual void restoreState(const QByteArray &state);
void gotoLine(int line, int column = 0, bool centerLine = true, bool animate = false);
int position(TextPositionOperation posOp = CurrentPosition,
int at = -1) const;