Merge pull request #1679 from rohit-n/shadow-qt
DolphinQt: Silence -Wshadow warnings.
This commit is contained in:
commit
7ebca647b3
|
@ -67,29 +67,29 @@ void DGameGrid::SetViewStyle(GameListStyle newStyle)
|
||||||
setDragEnabled(false);
|
setDragEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DGameGrid::AddGame(GameFile* item)
|
void DGameGrid::AddGame(GameFile* gameItem)
|
||||||
{
|
{
|
||||||
if (m_items.values().contains(item))
|
if (m_items.values().contains(gameItem))
|
||||||
return;
|
return;
|
||||||
m_items.values().append(item);
|
m_items.values().append(gameItem);
|
||||||
|
|
||||||
QListWidgetItem* i = new QListWidgetItem;
|
QListWidgetItem* i = new QListWidgetItem;
|
||||||
i->setIcon(QIcon(item->GetBitmap()
|
i->setIcon(QIcon(gameItem->GetBitmap()
|
||||||
.scaled(GRID_BANNER_WIDTH, GRID_BANNER_HEIGHT, Qt::KeepAspectRatio, Qt::SmoothTransformation)));
|
.scaled(GRID_BANNER_WIDTH, GRID_BANNER_HEIGHT, Qt::KeepAspectRatio, Qt::SmoothTransformation)));
|
||||||
i->setText(item->GetName(0));
|
i->setText(gameItem->GetName(0));
|
||||||
if (item->IsCompressed())
|
if (gameItem->IsCompressed())
|
||||||
i->setTextColor(QColor("#00F"));
|
i->setTextColor(QColor("#00F"));
|
||||||
|
|
||||||
addItem(i);
|
addItem(i);
|
||||||
m_items.insert(i, item);
|
m_items.insert(i, gameItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DGameGrid::RemoveGame(GameFile* item)
|
void DGameGrid::RemoveGame(GameFile* gameItem)
|
||||||
{
|
{
|
||||||
if (!m_items.values().contains(item))
|
if (!m_items.values().contains(gameItem))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
QListWidgetItem* i = m_items.key(item);
|
QListWidgetItem* i = m_items.key(gameItem);
|
||||||
m_items.remove(i);
|
m_items.remove(i);
|
||||||
delete i;
|
delete i;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,8 +30,8 @@ public:
|
||||||
|
|
||||||
virtual void SetViewStyle(GameListStyle newStyle);
|
virtual void SetViewStyle(GameListStyle newStyle);
|
||||||
|
|
||||||
virtual void AddGame(GameFile* item);
|
virtual void AddGame(GameFile* gameItem);
|
||||||
virtual void RemoveGame(GameFile* item);
|
virtual void RemoveGame(GameFile* gameItem);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void StartGame();
|
void StartGame();
|
||||||
|
|
Loading…
Reference in New Issue