Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
9f79bbd0
Commit
9f79bbd0
authored
Nov 25, 2014
by
Gavin Bisesi
Browse files
Merge pull request #454 from poixen/doubleclick
Double click/ENTER to join a room in lobby
parents
8c7aa417
bbcfe84d
Changes
2
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/gameselector.cpp
View file @
9f79bbd0
...
...
@@ -76,6 +76,8 @@ GameSelector::GameSelector(AbstractClient *_client, const TabSupervisor *_tabSup
connect
(
joinButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
actJoin
()));
connect
(
spectateButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
actJoin
()));
connect
(
gameListView
,
SIGNAL
(
doubleClicked
(
const
QModelIndex
&
)),
this
,
SLOT
(
actJoin
()));
connect
(
gameListView
,
SIGNAL
(
activated
(
const
QModelIndex
&
)),
this
,
SLOT
(
actJoin
()));
}
void
GameSelector
::
actSetFilter
()
...
...
cockatrice/src/tab_server.cpp
View file @
9f79bbd0
...
...
@@ -52,6 +52,8 @@ RoomSelector::RoomSelector(AbstractClient *_client, QWidget *parent)
setLayout
(
vbox
);
connect
(
client
,
SIGNAL
(
listRoomsEventReceived
(
const
Event_ListRooms
&
)),
this
,
SLOT
(
processListRoomsEvent
(
const
Event_ListRooms
&
)));
connect
(
roomList
,
SIGNAL
(
doubleClicked
(
const
QModelIndex
&
)),
this
,
SLOT
(
joinClicked
()));
connect
(
roomList
,
SIGNAL
(
activated
(
const
QModelIndex
&
)),
this
,
SLOT
(
joinClicked
()));
client
->
sendCommand
(
client
->
prepareSessionCommand
(
Command_ListRooms
()));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment