mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 09:22:18 -07:00
Move button to bottom
Took 3 minutes
This commit is contained in:
parent
70a753fb18
commit
653e608dbe
1 changed files with 2 additions and 1 deletions
|
|
@ -1325,6 +1325,8 @@ void TabGame::createPlayerListDock(bool bReplay)
|
||||||
auto *vbox = new QVBoxLayout(playerListBox);
|
auto *vbox = new QVBoxLayout(playerListBox);
|
||||||
vbox->setContentsMargins(0, 0, 0, 0);
|
vbox->setContentsMargins(0, 0, 0, 0);
|
||||||
|
|
||||||
|
vbox->addWidget(playerListWidget);
|
||||||
|
|
||||||
if (!bReplay) {
|
if (!bReplay) {
|
||||||
inviteButton = new QPushButton(tr("Invite"), playerListBox);
|
inviteButton = new QPushButton(tr("Invite"), playerListBox);
|
||||||
inviteButton->setVisible(false);
|
inviteButton->setVisible(false);
|
||||||
|
|
@ -1335,7 +1337,6 @@ void TabGame::createPlayerListDock(bool bReplay)
|
||||||
connect(game->getPlayerManager(), &PlayerManager::playerCountChanged, this, &TabGame::updateInviteButtonState);
|
connect(game->getPlayerManager(), &PlayerManager::playerCountChanged, this, &TabGame::updateInviteButtonState);
|
||||||
updateInviteButtonState();
|
updateInviteButtonState();
|
||||||
}
|
}
|
||||||
vbox->addWidget(playerListWidget);
|
|
||||||
|
|
||||||
playerListDock = new QDockWidget(this);
|
playerListDock = new QDockWidget(this);
|
||||||
playerListDock->setObjectName("playerListDock");
|
playerListDock->setObjectName("playerListDock");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue