Commit d16da1b7 authored by Denis Khachko's avatar Denis Khachko

BugFix kumir2-1938. Course window splitter state.

parent b6cdd175
......@@ -857,6 +857,13 @@ void MainWindowTask::showEvent(QShowEvent * event)
ui->splitter->restoreGeometry(settlist);
};
void MainWindowTask::hideEvent(QHideEvent * event)
{
settings->setValue("Window/SpliterPos",ui->splitter->saveGeometry());
settings->setValue("Window/SpliterState",ui->splitter->saveState());
settings->flush();
};
void MainWindowTask::closeEvent(QCloseEvent *event)
{
......
......@@ -143,6 +143,7 @@ protected:
void changeEvent(QEvent *e);
void closeEvent(QCloseEvent *event);
void showEvent(QShowEvent * event);
void hideEvent(QHideEvent * event);
private:
void setupWebView();
void setTaskViewHtml(const QString & data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment