QmlDesigner: Fix warnings about unused variables and functions

Change-Id: I97a969f10bf9679c36bee8571309d415a733e4b0
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Christian Kandeler
2019-02-07 10:22:23 +01:00
parent dd778bcb23
commit d45d5b79f0
2 changed files with 2 additions and 8 deletions

View File

@@ -152,12 +152,6 @@ static int devicePixelHeight(const QPixmap &pixmap)
return pixmap.height() / pixmap.devicePixelRatioF(); return pixmap.height() / pixmap.devicePixelRatioF();
} }
static QString iconPath()
{
return Core::ICore::resourcePath()
+ QLatin1String("/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/images/");
}
void TimelineFrameHandle::paint(QPainter *painter, void TimelineFrameHandle::paint(QPainter *painter,
const QStyleOptionGraphicsItem * /*option*/, const QStyleOptionGraphicsItem * /*option*/,
QWidget * /*widget*/) QWidget * /*widget*/)

View File

@@ -120,7 +120,7 @@ void TimelineMoveTool::mouseReleaseEvent(TimelineMovableAbstractItem *item,
Q_UNUSED(event); Q_UNUSED(event);
if (auto *current = currentItem()) { if (auto *current = currentItem()) {
if (auto *playhead = current->asTimelineFrameHandle()) { if (current->asTimelineFrameHandle()) {
double mousePos = event->pos().x(); double mousePos = event->pos().x();
double start = current->mapFromFrameToScene(scene()->startFrame()); double start = current->mapFromFrameToScene(scene()->startFrame());
double end = current->mapFromFrameToScene(scene()->endFrame()); double end = current->mapFromFrameToScene(scene()->endFrame());
@@ -142,7 +142,7 @@ void TimelineMoveTool::mouseReleaseEvent(TimelineMovableAbstractItem *item,
current->commitPosition(mapToItem(current, current->rect().center())); current->commitPosition(mapToItem(current, current->rect().center()));
if (TimelineKeyframeItem *currentKeyframe = current->asTimelineKeyframeItem()) { if (current->asTimelineKeyframeItem()) {
double frame = std::round( double frame = std::round(
current->mapFromSceneToFrame(current->rect().center().x())); current->mapFromSceneToFrame(current->rect().center().x()));