mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix more compiler warnings.
-Wsign-compare, -Wunused-variable.
This commit is contained in:
parent
77a6525556
commit
2b90451c4a
|
@ -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();
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue