From 49601e2acb28e3b81890eb73ece19d1bcef1d8ba Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 7 Apr 2021 11:19:36 +0200 Subject: [PATCH] Fix some warnings about unused variables Change-Id: Ib23d45e3a3523014826a863601b2f7f57dcb8e40 Reviewed-by: Christian Stenger --- .../components/annotationeditor/annotationtableview.cpp | 4 ++++ .../qmldesigner/components/timelineeditor/preseteditor.cpp | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) 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);