diff options
author | Knud Dollereder <knud.dollereder@qt.io> | 2024-04-16 15:08:02 +0200 |
---|---|---|
committer | Knud Dollereder <knud.dollereder@qt.io> | 2024-04-16 14:11:30 +0000 |
commit | 3e42b144badeb6cb1aedf9077489745c9363b20b (patch) | |
tree | bd9a1a9d1ad788efca1638a4dd68be527977f549 /src/plugins | |
parent | 4591293fd9103a57d611b64b9e2daa976cad594e (diff) |
QmlDesigner: Fix curveditor playhead update issues
Change-Id: I04b3502395f0b0b25bca785acf220f69ba3428bf
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp | 2 | ||||
-rw-r--r-- | src/plugins/qmldesigner/components/curveeditor/curveeditortoolbar.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp b/src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp index e84623e26c..36ce3373e5 100644 --- a/src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp +++ b/src/plugins/qmldesigner/components/curveeditor/curveeditor.cpp @@ -77,8 +77,8 @@ CurveEditor::CurveEditor(CurveEditorModel *model, QWidget *parent) connect(m_toolbar, &CurveEditorToolBar::currentFrameChanged, [this, model](int frame) { model->setCurrentFrame(frame); + m_view->setCurrentFrame(frame, false); updateStatusLine(); - m_view->viewport()->update(); }); connect(m_toolbar, &CurveEditorToolBar::zoomChanged, [this](double zoom) { diff --git a/src/plugins/qmldesigner/components/curveeditor/curveeditortoolbar.cpp b/src/plugins/qmldesigner/components/curveeditor/curveeditortoolbar.cpp index 72410ffb07..8da87ce119 100644 --- a/src/plugins/qmldesigner/components/curveeditor/curveeditortoolbar.cpp +++ b/src/plugins/qmldesigner/components/curveeditor/curveeditortoolbar.cpp @@ -129,6 +129,8 @@ CurveEditorToolBar::CurveEditorToolBar(CurveEditorModel *model, QWidget* parent) m_currentSpin->setFrame(false); connect(m_currentSpin, &QSpinBox::valueChanged, this, &CurveEditorToolBar::currentFrameChanged); + connect(model, &CurveEditorModel::commitCurrentFrame, + this, [this](int frame) { m_currentSpin->setValue(frame); }); addSpacer(); |