themeeditor: Fix a pile of unusued argument warnings

Change-Id: I919c239a410e0ff708276d5ca9d1046b70af536b
This commit is contained in:
Solomon Peachy 2026-06-27 07:28:49 -04:00
parent 5d3723bbf4
commit 44713c3014
7 changed files with 12 additions and 1 deletions

View file

@ -55,6 +55,8 @@ void RBMovable::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
painter->fillRect(bottomLeftHandle(), Qt::green);
painter->fillRect(bottomRightHandle(), Qt::green);
}
(void)option;
(void)widget;
}
QVariant RBMovable::itemChange(GraphicsItemChange change, const QVariant &value)

View file

@ -140,7 +140,8 @@ void RBScreen::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
{
painter->fillRect(0, 0, width, height, bgColor);
}
(void)option;
(void)widget;
}
void RBScreen::loadViewport(QString name, RBViewport *view)

View file

@ -47,4 +47,7 @@ void RBText::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
painter->drawImage(0, 0, *image, 0, 0, image->width(), image->height());
else
painter->drawImage(0, 0, *image, offset, 0, maxWidth, image->height());
(void)option;
(void)widget;
}

View file

@ -58,6 +58,8 @@ void RBTouchArea::paint(QPainter *painter,
painter->setPen(Qt::NoPen);
painter->drawRect(size);
}
(void)option;
(void)widget;
}
void RBTouchArea::mousePressEvent(QGraphicsSceneMouseEvent *event)

View file

@ -164,6 +164,7 @@ void FontDownloader::finished()
void FontDownloader::netError(QNetworkReply::NetworkError code)
{
ui->label->setText(tr("Network error: ") + reply->errorString());
(void)code;
}
void FontDownloader::closeEvent(QCloseEvent *event)

View file

@ -129,6 +129,7 @@ void TargetDownloader::finished()
void TargetDownloader::netError(QNetworkReply::NetworkError code)
{
ui->label->setText(tr("Network error: ") + reply->errorString());
(void)code;
}
void TargetDownloader::closeEvent(QCloseEvent *event)

View file

@ -99,6 +99,7 @@ ProjectModel::~ProjectModel()
int ProjectModel::rowCount(const QModelIndex& parent) const
{
return files.count();
(void)parent;
}
QVariant ProjectModel::data(const QModelIndex &index, int role) const