Skip to content

Commit

Permalink
Update timelinedockwidget.cpp
Browse files Browse the repository at this point in the history
Re-enable current frame spinbox edit.

* 07deae5
* #406
  • Loading branch information
rodlie committed Jan 4, 2025
1 parent 9ec47ee commit e46778e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/app/GUI/timelinedockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,17 @@ TimelineDockWidget::TimelineDockWidget(Document& document,
mCurrentFrameSpin->setKeyboardTracking(false);
mCurrentFrameSpin->setAlignment(Qt::AlignHCenter);
mCurrentFrameSpin->setObjectName(QString::fromUtf8("SpinBoxNoButtons"));
mCurrentFrameSpin->setFocusPolicy(Qt::NoFocus);
mCurrentFrameSpin->setFocusPolicy(Qt::ClickFocus);
mCurrentFrameSpin->setToolTip(tr("Current frame"));
mCurrentFrameSpin->setRange(-INT_MAX, INT_MAX);
mCurrentFrameSpin->setReadOnly(true);
connect(mCurrentFrameSpin,
&QSpinBox::editingFinished,
this, [this]() {
const auto scene = *mDocument.fActiveScene;
if (!scene) { return; }
scene->anim_setAbsFrame(mCurrentFrameSpin->value());
mDocument.actionFinished();
});

const auto mPrevKeyframeAct = new QAction(QIcon::fromTheme("prev_keyframe"),
QString(),
Expand Down

0 comments on commit e46778e

Please sign in to comment.