put player-in-game-info to own submenu in player contextmenu

This commit is contained in:
doitux
2010-07-15 12:05:09 +00:00
parent fe09fb94dd
commit ae6e7ebd7a
4 changed files with 4 additions and 1 deletions
@@ -90,8 +90,9 @@ gameLobbyDialogImpl::gameLobbyDialogImpl(startWindowImpl *parent, ConfigFile *c)
nickListContextMenu->addAction(nickListInviteAction);
nickListIgnorePlayerAction = new QAction(QIcon(":/gfx/im-ban-user.png"), tr("Ignore player"), nickListContextMenu);
nickListContextMenu->addAction(nickListIgnorePlayerAction);
nickListPlayerInfoSubMenu = nickListContextMenu->addMenu(QIcon(":/gfx/dialog-information.png"), tr("Player infos ..."));
nickListPlayerInGameInfo = new QAction(nickListContextMenu);
nickListContextMenu->addAction(nickListPlayerInGameInfo);
nickListPlayerInfoSubMenu->addAction(nickListPlayerInGameInfo);
connect( pushButton_CreateGame, SIGNAL( clicked() ), this, SLOT( createGame() ) );
connect( pushButton_JoinGame, SIGNAL( clicked() ), this, SLOT( joinGame() ) );
@@ -142,6 +142,7 @@ private:
QMenu *nickListContextMenu;
QAction *nickListInviteAction;
QAction *nickListIgnorePlayerAction;
QMenu *nickListPlayerInfoSubMenu;
QAction *nickListPlayerInGameInfo;
int infoMsgToShowId;
int currentInvitationGameId;
Binary file not shown.

After

Width:  |  Height:  |  Size: 803 B

+1
View File
@@ -51,6 +51,7 @@
<file>document-open-folder.png</file>
<file>emblem-important.png</file>
<file>emblem-important-64.png</file>
<file>dialog-information.png</file>
</qresource>
<qresource prefix="/cflags">
<file>cflags/ad.png</file>