aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/timelineeditor/timelinepropertyitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/components/timelineeditor/timelinepropertyitem.cpp')
-rw-r--r--src/plugins/qmldesigner/components/timelineeditor/timelinepropertyitem.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/qmldesigner/components/timelineeditor/timelinepropertyitem.cpp b/src/plugins/qmldesigner/components/timelineeditor/timelinepropertyitem.cpp
index 6dcb39f2a0..698ef0f03b 100644
--- a/src/plugins/qmldesigner/components/timelineeditor/timelinepropertyitem.cpp
+++ b/src/plugins/qmldesigner/components/timelineeditor/timelinepropertyitem.cpp
@@ -406,7 +406,7 @@ void TimelinePropertyItem::contextMenuEvent(QGraphicsSceneContextMenuEvent *even
const ModelNode currentFrameNode = getModelNodeForFrame(m_frames, currentFrame());
QAction *insertAction = mainMenu.addAction(tr("Insert Keyframe"));
- QObject::connect(insertAction, &QAction::triggered, [this]() {
+ QObject::connect(insertAction, &QAction::triggered, [this] {
timelineScene()->handleKeyframeInsertion(m_frames.target(), propertyName().toUtf8());
});
@@ -442,8 +442,8 @@ void TimelinePropertyItem::contextMenuEvent(QGraphicsSceneContextMenuEvent *even
QMenu mainMenu;
QAction *deleteAction = mainMenu.addAction(tr("Remove Property"));
- QObject::connect(deleteAction, &QAction::triggered, [this]() {
- auto deleteKeyframeGroup = [this]() { timelineScene()->deleteKeyframeGroup(m_frames); };
+ QObject::connect(deleteAction, &QAction::triggered, [this] {
+ auto deleteKeyframeGroup = [this] { timelineScene()->deleteKeyframeGroup(m_frames); };
QTimer::singleShot(0, deleteKeyframeGroup);
});
@@ -627,12 +627,12 @@ void TimelineKeyframeItem::contextMenuEvent(QGraphicsSceneContextMenuEvent *even
{
QMenu mainMenu;
QAction *removeAction = mainMenu.addAction(tr("Delete Keyframe"));
- QObject::connect(removeAction, &QAction::triggered, [this]() {
+ QObject::connect(removeAction, &QAction::triggered, [this] {
timelineGraphicsScene()->handleKeyframeDeletion();
});
QAction *editEasingAction = mainMenu.addAction(tr("Edit Easing Curve..."));
- QObject::connect(editEasingAction, &QAction::triggered, [this]() {
+ QObject::connect(editEasingAction, &QAction::triggered, [this] {
const QList<ModelNode> keys = Utils::transform(abstractScrollGraphicsScene()->selectedKeyframes(),
&TimelineKeyframeItem::m_frame);
@@ -640,7 +640,7 @@ void TimelineKeyframeItem::contextMenuEvent(QGraphicsSceneContextMenuEvent *even
});
QAction *editValueAction = mainMenu.addAction(tr("Edit Keyframe..."));
- QObject::connect(editValueAction, &QAction::triggered, [this]() {
+ QObject::connect(editValueAction, &QAction::triggered, [this] {
std::pair<qreal, qreal> timelineRange = {timelineGraphicsScene()->currentTimeline().startKeyframe(),
timelineGraphicsScene()->currentTimeline().endKeyframe()};
editValue(m_frame, timelineRange, propertyItem()->propertyName());