Qt: Fix more compiler warnings.

-Wsign-compare, -Wunused-variable.
This commit is contained in:
lightningterror 2024-01-26 18:45:30 +01:00 committed by Connor McLaughlin
parent 77a6525556
commit 2b90451c4a
2 changed files with 3 additions and 5 deletions

View File

@ -141,15 +141,15 @@ void DebuggerSettingsManager::saveGameSettings(QAbstractTableModel* abstractTabl
QJsonObject loadedSettings = loadGameSettingsJSON();
QJsonArray rowsArray;
QStringList keys;
for (u32 col = 0; col < abstractTableModel->columnCount(); ++col)
for (int col = 0; col < abstractTableModel->columnCount(); ++col)
{
keys << abstractTableModel->headerData(col, Qt::Horizontal, Qt::UserRole).toString();
}
for (u32 row = 0; row < abstractTableModel->rowCount(); row++)
for (int row = 0; row < abstractTableModel->rowCount(); row++)
{
QJsonObject rowObject;
for (u32 col = 0; col < abstractTableModel->columnCount(); col++)
for (int col = 0; col < abstractTableModel->columnCount(); col++)
{
const QModelIndex index = abstractTableModel->index(row, col);
const QString data = abstractTableModel->data(index, role).toString();

View File

@ -724,8 +724,6 @@ void DEV9SettingsWidget::onHddSizeAccessorSpin()
void DEV9SettingsWidget::onHddLBA48Changed(int state)
{
const bool enabled = state;
m_ui.hddSizeSlider->setMaximum(state ? 2000 : 120);
m_ui.hddSizeSpinBox->setMaximum(state ? 2000 : 120);
m_ui.hddSizeMaxLabel->setText(state ? tr("2000") : tr("120"));