This commit is contained in:
@@ -24,6 +24,8 @@ gameLobbyDialogImpl::gameLobbyDialogImpl(QWidget *parent, ConfigFile *c)
|
|||||||
|
|
||||||
myChat = new LobbyChat(this);
|
myChat = new LobbyChat(this);
|
||||||
|
|
||||||
|
myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str());
|
||||||
|
|
||||||
connect( pushButton_CreateGame, SIGNAL( clicked() ), this, SLOT( createGame() ) );
|
connect( pushButton_CreateGame, SIGNAL( clicked() ), this, SLOT( createGame() ) );
|
||||||
connect( pushButton_JoinGame, SIGNAL( clicked() ), this, SLOT( joinGame() ) );
|
connect( pushButton_JoinGame, SIGNAL( clicked() ), this, SLOT( joinGame() ) );
|
||||||
connect( treeWidget_GameList, SIGNAL( currentItemChanged ( QTreeWidgetItem*, QTreeWidgetItem*) ), this, SLOT( gameSelected(QTreeWidgetItem*, QTreeWidgetItem*) ) );
|
connect( treeWidget_GameList, SIGNAL( currentItemChanged ( QTreeWidgetItem*, QTreeWidgetItem*) ), this, SLOT( gameSelected(QTreeWidgetItem*, QTreeWidgetItem*) ) );
|
||||||
@@ -214,8 +216,6 @@ void gameLobbyDialogImpl::updateGameItem(QTreeWidgetItem *item, unsigned gameId)
|
|||||||
else
|
else
|
||||||
item->setData(2, Qt::DisplayRole, tr("registering"));
|
item->setData(2, Qt::DisplayRole, tr("registering"));
|
||||||
|
|
||||||
QString myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str());
|
|
||||||
|
|
||||||
if (info.isPasswordProtected)
|
if (info.isPasswordProtected)
|
||||||
item->setIcon(3, QIcon(myAppDataPath+"gfx/gui/misc/lock.png"));
|
item->setIcon(3, QIcon(myAppDataPath+"gfx/gui/misc/lock.png"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ private:
|
|||||||
bool isAdmin;
|
bool isAdmin;
|
||||||
bool inGame;
|
bool inGame;
|
||||||
LobbyChat *myChat;
|
LobbyChat *myChat;
|
||||||
|
QString myAppDataPath;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user