mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
themeeditor: Fix a pile of unusued argument warnings
Change-Id: I919c239a410e0ff708276d5ca9d1046b70af536b
This commit is contained in:
parent
5d3723bbf4
commit
44713c3014
7 changed files with 12 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue