mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix some unused parameter warnings
This commit is contained in:
parent
ce2fe95814
commit
d2fbd88c78
|
@ -74,7 +74,7 @@ void AudioProcessorQt::pause() {
|
|||
}
|
||||
}
|
||||
|
||||
void AudioProcessorQt::setBufferSamples(int samples) {
|
||||
void AudioProcessorQt::setBufferSamples(int) {
|
||||
}
|
||||
|
||||
void AudioProcessorQt::inputParametersChanged() {
|
||||
|
|
|
@ -42,7 +42,7 @@ QVariant BattleChipModel::data(const QModelIndex& index, int role) const {
|
|||
return QVariant();
|
||||
}
|
||||
|
||||
Qt::ItemFlags BattleChipModel::flags(const QModelIndex& index) const {
|
||||
Qt::ItemFlags BattleChipModel::flags(const QModelIndex&) const {
|
||||
return Qt::ItemIsSelectable | Qt::ItemIsDropEnabled | Qt::ItemIsDragEnabled | Qt::ItemIsEnabled | Qt::ItemNeverHasChildren;
|
||||
}
|
||||
|
||||
|
@ -183,4 +183,4 @@ BattleChipModel::BattleChip BattleChipModel::createChip(int id) const {
|
|||
icon
|
||||
};
|
||||
return chip;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -463,7 +463,7 @@ void FrameView::updateRendered() {
|
|||
m_rendered.convertFromImage(m_controller->getPixels());
|
||||
}
|
||||
|
||||
bool FrameView::eventFilter(QObject* obj, QEvent* event) {
|
||||
bool FrameView::eventFilter(QObject*, QEvent* event) {
|
||||
QPointF pos;
|
||||
switch (event->type()) {
|
||||
case QEvent::MouseButtonPress:
|
||||
|
|
|
@ -139,7 +139,7 @@ void GBAKeyEditor::setAll() {
|
|||
(*m_currentKey)->setFocus();
|
||||
}
|
||||
|
||||
void GBAKeyEditor::resizeEvent(QResizeEvent* event) {
|
||||
void GBAKeyEditor::resizeEvent(QResizeEvent*) {
|
||||
setLocation(m_buttons, 0.5, 0.2);
|
||||
setLocation(m_keyDU, DPAD_CENTER_X, DPAD_CENTER_Y - DPAD_HEIGHT);
|
||||
setLocation(m_keyDD, DPAD_CENTER_X, DPAD_CENTER_Y + DPAD_HEIGHT);
|
||||
|
@ -161,7 +161,7 @@ void GBAKeyEditor::resizeEvent(QResizeEvent* event) {
|
|||
}
|
||||
}
|
||||
|
||||
void GBAKeyEditor::paintEvent(QPaintEvent* event) {
|
||||
void GBAKeyEditor::paintEvent(QPaintEvent*) {
|
||||
QPainter painter(this);
|
||||
painter.scale(width() / 480.0, height() / 480.0);
|
||||
painter.drawPicture(0, 0, m_background);
|
||||
|
|
|
@ -147,7 +147,7 @@ void MapView::selectTile(int x, int y) {
|
|||
.arg(location, m_addressWidth, 16, QChar('0')));
|
||||
}
|
||||
|
||||
bool MapView::eventFilter(QObject* obj, QEvent* event) {
|
||||
bool MapView::eventFilter(QObject*, QEvent* event) {
|
||||
if (event->type() != QEvent::MouseButtonPress) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -328,7 +328,7 @@ void MemoryModel::resizeEvent(QResizeEvent*) {
|
|||
boundsCheck();
|
||||
}
|
||||
|
||||
void MemoryModel::paintEvent(QPaintEvent* event) {
|
||||
void MemoryModel::paintEvent(QPaintEvent*) {
|
||||
QPainter painter(viewport());
|
||||
QPalette palette;
|
||||
painter.setFont(m_font);
|
||||
|
|
Loading…
Reference in New Issue