aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/components')
-rw-r--r--src/plugins/qmldesigner/components/componentcore/theme.cpp2
-rw-r--r--src/plugins/qmldesigner/components/curveeditor/detail/handleitem.cpp4
-rw-r--r--src/plugins/qmldesigner/components/curveeditor/detail/keyframeitem.cpp4
-rw-r--r--src/plugins/qmldesigner/components/curveeditor/detail/selector.cpp2
-rw-r--r--src/plugins/qmldesigner/components/curveeditor/detail/treemodel.cpp2
-rw-r--r--src/plugins/qmldesigner/components/curveeditor/detail/treeview.cpp4
-rw-r--r--src/plugins/qmldesigner/components/curveeditor/treeitem.cpp2
-rw-r--r--src/plugins/qmldesigner/components/navigator/nameitemdelegate.cpp2
-rw-r--r--src/plugins/qmldesigner/components/propertyeditor/gradientpresetitem.cpp2
-rw-r--r--src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp2
-rw-r--r--src/plugins/qmldesigner/components/timelineeditor/timelinemovetool.cpp18
-rw-r--r--src/plugins/qmldesigner/components/timelineeditor/timelinesectionitem.cpp4
-rw-r--r--src/plugins/qmldesigner/components/timelineeditor/timelineselectiontool.cpp18
13 files changed, 33 insertions, 33 deletions
diff --git a/src/plugins/qmldesigner/components/componentcore/theme.cpp b/src/plugins/qmldesigner/components/componentcore/theme.cpp
index d7eba033ca..ec4128479f 100644
--- a/src/plugins/qmldesigner/components/componentcore/theme.cpp
+++ b/src/plugins/qmldesigner/components/componentcore/theme.cpp
@@ -93,7 +93,7 @@ void Theme::setupTheme(QQmlEngine *engine)
"Theme", [](QQmlEngine *, QJSEngine *) {
return qobject_cast<QObject*>(new Theme(Utils::creatorTheme(), nullptr));
});
- Q_UNUSED(typeIndex);
+ Q_UNUSED(typeIndex)
engine->addImageProvider(QLatin1String("icons"), new QmlDesignerIconProvider());
}
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/handleitem.cpp b/src/plugins/qmldesigner/components/curveeditor/detail/handleitem.cpp
index c54b26e279..1499763a53 100644
--- a/src/plugins/qmldesigner/components/curveeditor/detail/handleitem.cpp
+++ b/src/plugins/qmldesigner/components/curveeditor/detail/handleitem.cpp
@@ -75,8 +75,8 @@ QRectF HandleItem::boundingRect() const
void HandleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
- Q_UNUSED(option);
- Q_UNUSED(widget);
+ Q_UNUSED(option)
+ Q_UNUSED(widget)
QColor handleColor(isSelected() ? m_style.selectionColor : m_style.color);
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/keyframeitem.cpp b/src/plugins/qmldesigner/components/curveeditor/detail/keyframeitem.cpp
index 94cdbbcbb1..3bff0a348e 100644
--- a/src/plugins/qmldesigner/components/curveeditor/detail/keyframeitem.cpp
+++ b/src/plugins/qmldesigner/components/curveeditor/detail/keyframeitem.cpp
@@ -80,8 +80,8 @@ QRectF KeyframeItem::boundingRect() const
void KeyframeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
- Q_UNUSED(option);
- Q_UNUSED(widget);
+ Q_UNUSED(option)
+ Q_UNUSED(widget)
QPen pen = painter->pen();
pen.setColor(Qt::black);
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/selector.cpp b/src/plugins/qmldesigner/components/curveeditor/detail/selector.cpp
index 633c1ddd39..879ba6e934 100644
--- a/src/plugins/qmldesigner/components/curveeditor/detail/selector.cpp
+++ b/src/plugins/qmldesigner/components/curveeditor/detail/selector.cpp
@@ -108,7 +108,7 @@ void Selector::mouseMove(QMouseEvent *event, GraphicsView *view, Playhead &playh
void Selector::mouseRelease(QMouseEvent *event, GraphicsView *view)
{
- Q_UNUSED(event);
+ Q_UNUSED(event)
applyPreSelection(view);
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/treemodel.cpp b/src/plugins/qmldesigner/components/curveeditor/detail/treemodel.cpp
index 1ea037091d..3e437bda96 100644
--- a/src/plugins/qmldesigner/components/curveeditor/detail/treemodel.cpp
+++ b/src/plugins/qmldesigner/components/curveeditor/detail/treemodel.cpp
@@ -121,7 +121,7 @@ int TreeModel::rowCount(const QModelIndex &parent) const
int TreeModel::columnCount(const QModelIndex &parent) const
{
- Q_UNUSED(parent);
+ Q_UNUSED(parent)
return m_root->columnCount();
}
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/treeview.cpp b/src/plugins/qmldesigner/components/curveeditor/detail/treeview.cpp
index 3b9a4ef7c5..4daa6d3e3e 100644
--- a/src/plugins/qmldesigner/components/curveeditor/detail/treeview.cpp
+++ b/src/plugins/qmldesigner/components/curveeditor/detail/treeview.cpp
@@ -91,8 +91,8 @@ void TreeView::changeCurve(unsigned int id, const AnimationCurve &curve)
void TreeView::changeSelection(const QItemSelection &selected, const QItemSelection &deselected)
{
- Q_UNUSED(selected);
- Q_UNUSED(deselected);
+ Q_UNUSED(selected)
+ Q_UNUSED(deselected)
std::vector<CurveItem *> curves;
for (auto index : selectedIndexes()) {
diff --git a/src/plugins/qmldesigner/components/curveeditor/treeitem.cpp b/src/plugins/qmldesigner/components/curveeditor/treeitem.cpp
index beed419e54..6bc0ce57bf 100644
--- a/src/plugins/qmldesigner/components/curveeditor/treeitem.cpp
+++ b/src/plugins/qmldesigner/components/curveeditor/treeitem.cpp
@@ -190,7 +190,7 @@ NodeTreeItem::NodeTreeItem(const QString &name, const QIcon &icon)
: TreeItem(name)
, m_icon(icon)
{
- Q_UNUSED(icon);
+ Q_UNUSED(icon)
}
NodeTreeItem *NodeTreeItem::asNodeItem()
diff --git a/src/plugins/qmldesigner/components/navigator/nameitemdelegate.cpp b/src/plugins/qmldesigner/components/navigator/nameitemdelegate.cpp
index 8739ec64a8..3119dbaca3 100644
--- a/src/plugins/qmldesigner/components/navigator/nameitemdelegate.cpp
+++ b/src/plugins/qmldesigner/components/navigator/nameitemdelegate.cpp
@@ -258,7 +258,7 @@ static void setId(const QModelIndex &index, const QString &newId)
void NameItemDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
{
- Q_UNUSED(model);
+ Q_UNUSED(model)
auto lineEdit = static_cast<QLineEdit*>(editor);
setId(index,lineEdit->text());
lineEdit->clearFocus();
diff --git a/src/plugins/qmldesigner/components/propertyeditor/gradientpresetitem.cpp b/src/plugins/qmldesigner/components/propertyeditor/gradientpresetitem.cpp
index 9d2454c4e9..518dea7b8b 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/gradientpresetitem.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/gradientpresetitem.cpp
@@ -169,7 +169,7 @@ QGradient GradientPresetItem::createGradientFromPreset(Preset value)
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
return QGradient(value);
#else
- Q_UNUSED(value);
+ Q_UNUSED(value)
return {};
#endif
}
diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp
index 9dd0a2da24..8958c1833c 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp
@@ -529,7 +529,7 @@ void PropertyEditorView::removePropertyFromModel(const PropertyName &propertyNam
void PropertyEditorView::selectedNodesChanged(const QList<ModelNode> &selectedNodeList,
const QList<ModelNode> &lastSelectedNodeList)
{
- Q_UNUSED(lastSelectedNodeList);
+ Q_UNUSED(lastSelectedNodeList)
if (selectedNodeList.isEmpty())
select(ModelNode());
diff --git a/src/plugins/qmldesigner/components/timelineeditor/timelinemovetool.cpp b/src/plugins/qmldesigner/components/timelineeditor/timelinemovetool.cpp
index 0384d7c0a3..0e68a63ff4 100644
--- a/src/plugins/qmldesigner/components/timelineeditor/timelinemovetool.cpp
+++ b/src/plugins/qmldesigner/components/timelineeditor/timelinemovetool.cpp
@@ -67,14 +67,14 @@ TimelineMoveTool::TimelineMoveTool(TimelineGraphicsScene *scene, TimelineToolDel
void TimelineMoveTool::mousePressEvent(TimelineMovableAbstractItem *item,
QGraphicsSceneMouseEvent *event)
{
- Q_UNUSED(item);
- Q_UNUSED(event);
+ Q_UNUSED(item)
+ Q_UNUSED(event)
}
void TimelineMoveTool::mouseMoveEvent(TimelineMovableAbstractItem *item,
QGraphicsSceneMouseEvent *event)
{
- Q_UNUSED(item);
+ Q_UNUSED(item)
if (!currentItem())
return;
@@ -116,8 +116,8 @@ void TimelineMoveTool::mouseMoveEvent(TimelineMovableAbstractItem *item,
void TimelineMoveTool::mouseReleaseEvent(TimelineMovableAbstractItem *item,
QGraphicsSceneMouseEvent *event)
{
- Q_UNUSED(item);
- Q_UNUSED(event);
+ Q_UNUSED(item)
+ Q_UNUSED(event)
if (auto *current = currentItem()) {
if (current->asTimelineFrameHandle()) {
@@ -156,18 +156,18 @@ void TimelineMoveTool::mouseReleaseEvent(TimelineMovableAbstractItem *item,
void TimelineMoveTool::mouseDoubleClickEvent(TimelineMovableAbstractItem *item,
QGraphicsSceneMouseEvent *event)
{
- Q_UNUSED(item);
- Q_UNUSED(event);
+ Q_UNUSED(item)
+ Q_UNUSED(event)
}
void TimelineMoveTool::keyPressEvent(QKeyEvent *keyEvent)
{
- Q_UNUSED(keyEvent);
+ Q_UNUSED(keyEvent)
}
void TimelineMoveTool::keyReleaseEvent(QKeyEvent *keyEvent)
{
- Q_UNUSED(keyEvent);
+ Q_UNUSED(keyEvent)
}
} // namespace QmlDesigner
diff --git a/src/plugins/qmldesigner/components/timelineeditor/timelinesectionitem.cpp b/src/plugins/qmldesigner/components/timelineeditor/timelinesectionitem.cpp
index 7bd784a7dd..96013e242b 100644
--- a/src/plugins/qmldesigner/components/timelineeditor/timelinesectionitem.cpp
+++ b/src/plugins/qmldesigner/components/timelineeditor/timelinesectionitem.cpp
@@ -846,8 +846,8 @@ void TimelineBarItem::scrollOffsetChanged()
void TimelineBarItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
- Q_UNUSED(option);
- Q_UNUSED(widget);
+ Q_UNUSED(option)
+ Q_UNUSED(widget)
QColor brushColorSelected = Theme::getColor(Theme::QmlDesigner_HighlightColor);
QColor brushColor = Theme::getColor(Theme::QmlDesigner_HighlightColor).darker(120);
diff --git a/src/plugins/qmldesigner/components/timelineeditor/timelineselectiontool.cpp b/src/plugins/qmldesigner/components/timelineeditor/timelineselectiontool.cpp
index 53367c9b67..987ac4935a 100644
--- a/src/plugins/qmldesigner/components/timelineeditor/timelineselectiontool.cpp
+++ b/src/plugins/qmldesigner/components/timelineeditor/timelineselectiontool.cpp
@@ -68,8 +68,8 @@ SelectionMode TimelineSelectionTool::selectionMode(QGraphicsSceneMouseEvent *eve
void TimelineSelectionTool::mousePressEvent(TimelineMovableAbstractItem *item,
QGraphicsSceneMouseEvent *event)
{
- Q_UNUSED(item);
- Q_UNUSED(event);
+ Q_UNUSED(item)
+ Q_UNUSED(event)
if (event->buttons() == Qt::LeftButton && selectionMode(event) == SelectionMode::New)
deselect();
@@ -78,7 +78,7 @@ void TimelineSelectionTool::mousePressEvent(TimelineMovableAbstractItem *item,
void TimelineSelectionTool::mouseMoveEvent(TimelineMovableAbstractItem *item,
QGraphicsSceneMouseEvent *event)
{
- Q_UNUSED(item);
+ Q_UNUSED(item)
if (event->buttons() == Qt::LeftButton) {
auto endPoint = event->scenePos();
@@ -97,8 +97,8 @@ void TimelineSelectionTool::mouseMoveEvent(TimelineMovableAbstractItem *item,
void TimelineSelectionTool::mouseReleaseEvent(TimelineMovableAbstractItem *item,
QGraphicsSceneMouseEvent *event)
{
- Q_UNUSED(item);
- Q_UNUSED(event);
+ Q_UNUSED(item)
+ Q_UNUSED(event)
commitSelection(selectionMode(event));
@@ -108,20 +108,20 @@ void TimelineSelectionTool::mouseReleaseEvent(TimelineMovableAbstractItem *item,
void TimelineSelectionTool::mouseDoubleClickEvent(TimelineMovableAbstractItem *item,
QGraphicsSceneMouseEvent *event)
{
- Q_UNUSED(item);
- Q_UNUSED(event);
+ Q_UNUSED(item)
+ Q_UNUSED(event)
reset();
}
void TimelineSelectionTool::keyPressEvent(QKeyEvent *keyEvent)
{
- Q_UNUSED(keyEvent);
+ Q_UNUSED(keyEvent)
}
void TimelineSelectionTool::keyReleaseEvent(QKeyEvent *keyEvent)
{
- Q_UNUSED(keyEvent);
+ Q_UNUSED(keyEvent)
}
void TimelineSelectionTool::deselect()