@@ -41,6 +41,9 @@ public:
void reset();
+ /** Reprocess all graphs. */
+ void update() {resizeGL(width(), height());}
+
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
@@ -435,7 +435,6 @@ QString KsMainWindow::lastSessionFile()
void KsMainWindow::_restoreSession()
{
loadSession(lastSessionFile());
- _graph.updateGeom();
}
void KsMainWindow::_importSession()
@@ -450,7 +449,6 @@ void KsMainWindow::_importSession()
return;
loadSession(fileName);
- _graph.updateGeom();
}
void KsMainWindow::_updateSession()
@@ -1100,6 +1098,7 @@ void KsMainWindow::loadSession(const QString &fileName)
_session.loadTable(&_view);
_colorPhaseSlider.setValue(_session.getColorScheme() * 100);
+ _graph.updateGeom();
}
void KsMainWindow::_initCapture()
@@ -538,6 +538,8 @@ void KsTraceGraph::updateGeom()
* allow the scroll bar to disappear when the
* widget is extended to maximum.
*/
+
+ _glWindow.update();
}
void KsTraceGraph::_updateGraphLegends()