forked from qt-creator/qt-creator
QmlDesigner: Fix warnings about unused variables and functions
Change-Id: I97a969f10bf9679c36bee8571309d415a733e4b0 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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*/)
|
||||||
|
@@ -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()));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user