Fix some warnings about unused variables

Change-Id: Ib23d45e3a3523014826a863601b2f7f57dcb8e40
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2021-04-07 11:19:36 +02:00
parent 1741aa41c5
commit 49601e2acb
2 changed files with 4 additions and 2 deletions

View File

@@ -85,6 +85,7 @@ void CommentDelegate::updateEditorGeometry(QWidget *editor,
const QStyleOptionViewItem &option, const QStyleOptionViewItem &option,
const QModelIndex &index) const const QModelIndex &index) const
{ {
Q_UNUSED(index)
editor->setGeometry(option.rect); editor->setGeometry(option.rect);
} }
@@ -104,6 +105,9 @@ QWidget *CommentTitleDelegate::createEditor(QWidget *parent,
const QStyleOptionViewItem &option, const QStyleOptionViewItem &option,
const QModelIndex &index) const const QModelIndex &index) const
{ {
Q_UNUSED(option)
Q_UNUSED(index)
auto *editor = new QComboBox(parent); auto *editor = new QComboBox(parent);
editor->setEditable(true); editor->setEditable(true);
editor->setCompleter(completer()); editor->setCompleter(completer());

View File

@@ -126,8 +126,6 @@ QIcon paintPreview(const QColor& background)
QIcon paintPreview(const EasingCurve &curve, const QColor& background, const QColor& curveColor) QIcon paintPreview(const EasingCurve &curve, const QColor& background, const QColor& curveColor)
{ {
const QColor curveLine = Theme::getColor(Theme::DStextColor);
QPixmap pm(iconWidth, iconHeight); QPixmap pm(iconWidth, iconHeight);
pm.fill(background); pm.fill(background);