diff --git a/src/plugins/qmldesigner/components/annotationeditor/annotationtableview.cpp b/src/plugins/qmldesigner/components/annotationeditor/annotationtableview.cpp index 8e289a344c9..7dfee67c928 100644 --- a/src/plugins/qmldesigner/components/annotationeditor/annotationtableview.cpp +++ b/src/plugins/qmldesigner/components/annotationeditor/annotationtableview.cpp @@ -85,6 +85,7 @@ void CommentDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const { + Q_UNUSED(index) editor->setGeometry(option.rect); } @@ -104,6 +105,9 @@ QWidget *CommentTitleDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const { + Q_UNUSED(option) + Q_UNUSED(index) + auto *editor = new QComboBox(parent); editor->setEditable(true); editor->setCompleter(completer()); diff --git a/src/plugins/qmldesigner/components/timelineeditor/preseteditor.cpp b/src/plugins/qmldesigner/components/timelineeditor/preseteditor.cpp index f755e4863e5..fd17b10d9a8 100644 --- a/src/plugins/qmldesigner/components/timelineeditor/preseteditor.cpp +++ b/src/plugins/qmldesigner/components/timelineeditor/preseteditor.cpp @@ -126,8 +126,6 @@ QIcon paintPreview(const QColor& background) QIcon paintPreview(const EasingCurve &curve, const QColor& background, const QColor& curveColor) { - const QColor curveLine = Theme::getColor(Theme::DStextColor); - QPixmap pm(iconWidth, iconHeight); pm.fill(background);