mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 08:52:15 -07:00
see if we can get away with the overloaded triggered
This commit is contained in:
parent
4e8980222a
commit
252192b1a7
4 changed files with 5 additions and 5 deletions
|
|
@ -358,7 +358,7 @@ void TabDeckEditor::createMenus()
|
||||||
analyzeDeckMenu->addAction(aAnalyzeDeckTappedout);
|
analyzeDeckMenu->addAction(aAnalyzeDeckTappedout);
|
||||||
|
|
||||||
aClose = new QAction(QString(), this);
|
aClose = new QAction(QString(), this);
|
||||||
connect(aClose, &QAction::triggered, this, [this](bool) { closeRequest(); });
|
connect(aClose, &QAction::triggered, this, [this] { closeRequest(); });
|
||||||
|
|
||||||
aClearFilterAll = new QAction(QString(), this);
|
aClearFilterAll = new QAction(QString(), this);
|
||||||
aClearFilterAll->setIcon(QPixmap("theme:icons/clearsearch"));
|
aClearFilterAll->setIcon(QPixmap("theme:icons/clearsearch"));
|
||||||
|
|
|
||||||
|
|
@ -1606,7 +1606,7 @@ void TabGame::createMenuItems()
|
||||||
aConcede = new QAction(this);
|
aConcede = new QAction(this);
|
||||||
connect(aConcede, SIGNAL(triggered()), this, SLOT(actConcede()));
|
connect(aConcede, SIGNAL(triggered()), this, SLOT(actConcede()));
|
||||||
aLeaveGame = new QAction(this);
|
aLeaveGame = new QAction(this);
|
||||||
connect(aLeaveGame, &QAction::triggered, this, [this](bool) { closeRequest(); });
|
connect(aLeaveGame, &QAction::triggered, this, [this] { closeRequest(); });
|
||||||
aFocusChat = new QAction(this);
|
aFocusChat = new QAction(this);
|
||||||
connect(aFocusChat, SIGNAL(triggered()), sayEdit, SLOT(setFocus()));
|
connect(aFocusChat, SIGNAL(triggered()), sayEdit, SLOT(setFocus()));
|
||||||
aCloseReplay = nullptr;
|
aCloseReplay = nullptr;
|
||||||
|
|
@ -1656,7 +1656,7 @@ void TabGame::createReplayMenuItems()
|
||||||
aFocusChat = nullptr;
|
aFocusChat = nullptr;
|
||||||
aLeaveGame = nullptr;
|
aLeaveGame = nullptr;
|
||||||
aCloseReplay = new QAction(this);
|
aCloseReplay = new QAction(this);
|
||||||
connect(aCloseReplay, &QAction::triggered, this, [this](bool) { closeRequest(); });
|
connect(aCloseReplay, &QAction::triggered, this, [this] { closeRequest(); });
|
||||||
|
|
||||||
phasesMenu = nullptr;
|
phasesMenu = nullptr;
|
||||||
gameMenu = new QMenu(this);
|
gameMenu = new QMenu(this);
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ TabMessage::TabMessage(TabSupervisor *_tabSupervisor,
|
||||||
vbox->addWidget(sayEdit);
|
vbox->addWidget(sayEdit);
|
||||||
|
|
||||||
aLeave = new QAction(this);
|
aLeave = new QAction(this);
|
||||||
connect(aLeave, &QAction::triggered, this, [this](bool) { closeRequest(); });
|
connect(aLeave, &QAction::triggered, this, [this] { closeRequest(); });
|
||||||
|
|
||||||
messageMenu = new QMenu(this);
|
messageMenu = new QMenu(this);
|
||||||
messageMenu->addAction(aLeave);
|
messageMenu->addAction(aLeave);
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ TabRoom::TabRoom(TabSupervisor *_tabSupervisor,
|
||||||
hbox->addWidget(userList, 1);
|
hbox->addWidget(userList, 1);
|
||||||
|
|
||||||
aLeaveRoom = new QAction(this);
|
aLeaveRoom = new QAction(this);
|
||||||
connect(aLeaveRoom, &QAction::triggered, this, [this](bool) { closeRequest(); });
|
connect(aLeaveRoom, &QAction::triggered, this, [this] { closeRequest(); });
|
||||||
|
|
||||||
roomMenu = new QMenu(this);
|
roomMenu = new QMenu(this);
|
||||||
roomMenu->addAction(aLeaveRoom);
|
roomMenu->addAction(aLeaveRoom);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue