This commit is contained in:
1 parent
fe352cb2dc
commit
0b5209979f
2 files changed
+7
-2
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 787 B |
@@ -210,10 +210,15 @@ void gameLobbyDialogImpl::updateGameItem(QTreeWidgetItem *item, unsigned gameId)
|
||||
item->setData(1, Qt::DisplayRole, playerStr);
|
||||
|
||||
if (info.mode == GAME_MODE_STARTED)
|
||||
item->setData(2, Qt::DisplayRole, "X");
|
||||
item->setData(2, Qt::DisplayRole, tr("running"));
|
||||
else
|
||||
item->setData(2, Qt::DisplayRole, tr("registering"));
|
||||
|
||||
QString myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str());
|
||||
|
||||
// QIcon(myAppDataPath+"lock.png")
|
||||
if (info.isPasswordProtected)
|
||||
item->setData(3, Qt::DisplayRole, "X");
|
||||
item->setIcon(3, QIcon(myAppDataPath+"lock.png"));
|
||||
}
|
||||
|
||||
void gameLobbyDialogImpl::addGame(unsigned gameId)
|
||||
|
||||
Reference in new issue
Block a user