diff --git a/src/plugins/qmldesigner/qmldesignerextension/timelineeditor/timelineitem.cpp b/src/plugins/qmldesigner/qmldesignerextension/timelineeditor/timelineitem.cpp index 1bb9fff0fd8..ebe3644e4e8 100644 --- a/src/plugins/qmldesigner/qmldesignerextension/timelineeditor/timelineitem.cpp +++ b/src/plugins/qmldesigner/qmldesignerextension/timelineeditor/timelineitem.cpp @@ -152,12 +152,6 @@ static int devicePixelHeight(const QPixmap &pixmap) return pixmap.height() / pixmap.devicePixelRatioF(); } -static QString iconPath() -{ - return Core::ICore::resourcePath() - + QLatin1String("/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/images/"); -} - void TimelineFrameHandle::paint(QPainter *painter, const QStyleOptionGraphicsItem * /*option*/, QWidget * /*widget*/) diff --git a/src/plugins/qmldesigner/qmldesignerextension/timelineeditor/timelinemovetool.cpp b/src/plugins/qmldesigner/qmldesignerextension/timelineeditor/timelinemovetool.cpp index ab92bb2dc62..49d35b781b9 100644 --- a/src/plugins/qmldesigner/qmldesignerextension/timelineeditor/timelinemovetool.cpp +++ b/src/plugins/qmldesigner/qmldesignerextension/timelineeditor/timelinemovetool.cpp @@ -120,7 +120,7 @@ void TimelineMoveTool::mouseReleaseEvent(TimelineMovableAbstractItem *item, Q_UNUSED(event); if (auto *current = currentItem()) { - if (auto *playhead = current->asTimelineFrameHandle()) { + if (current->asTimelineFrameHandle()) { double mousePos = event->pos().x(); double start = current->mapFromFrameToScene(scene()->startFrame()); double end = current->mapFromFrameToScene(scene()->endFrame()); @@ -142,7 +142,7 @@ void TimelineMoveTool::mouseReleaseEvent(TimelineMovableAbstractItem *item, current->commitPosition(mapToItem(current, current->rect().center())); - if (TimelineKeyframeItem *currentKeyframe = current->asTimelineKeyframeItem()) { + if (current->asTimelineKeyframeItem()) { double frame = std::round( current->mapFromSceneToFrame(current->rect().center().x()));