QmlDesigner: Fix signed/unsigned comparison warning

plugins/qmldesigner/components/curveeditor/detail/graphicsscene.cpp:129:33:
warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (curveItem->id() == id)
                 ~~~~~~~~~~~~~~~~^~~~~

Change-Id: I0a89701755c47b37e5ea0a0d6717d78e10bb619d
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Andre Hartmann
2020-02-17 14:31:47 +01:00
committed by André Hartmann
parent e5a3084e97
commit fc54911441
2 changed files with 2 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ void GraphicsScene::handleMoved(KeyframeItem *frame,
}
}
void GraphicsScene::setPinned(int id, bool pinned)
void GraphicsScene::setPinned(uint id, bool pinned)
{
const auto itemList = items();
for (auto *item : itemList) {

View File

@@ -69,7 +69,7 @@ public:
void handleMoved(KeyframeItem *frame, HandleSlot handle, double angle, double deltaLength);
void setPinned(int id, bool pinned);
void setPinned(uint id, bool pinned);
std::vector<CurveItem *> takePinnedItems();