Skip to content
Snippets Groups Projects
Commit c1bc5f30 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ScientificPlot::event process ALL events, otherwise some actions won't have immediate effect

parent 936c3e64
No related branches found
No related tags found
1 merge request!2452cleanup autosave, style sheet & palette; split save some files; dissolve GUI/Support
...@@ -51,11 +51,8 @@ QRectF ScientificPlot::viewportRectangle() const ...@@ -51,11 +51,8 @@ QRectF ScientificPlot::viewportRectangle() const
bool ScientificPlot::event(QEvent* event) bool ScientificPlot::event(QEvent* event)
{ {
if (event->type() == QEvent::Resize || event->type() == QEvent::UpdateRequest) { emit repaint_request();
emit repaint_request(); return QWidget::event(event);
return false; // allow further handling
}
return true; // stop further handling
} }
qreal ScientificPlot::toSceneX(qreal v) const qreal ScientificPlot::toSceneX(qreal v) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment