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
a3b7ed71
Commit
a3b7ed71
authored
Jun 13, 2011
by
Max-Wilhelm Bruker
Browse files
QSplitter in TabRoom
parent
9cfe4bea
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/tab_room.cpp
View file @
a3b7ed71
...
...
@@ -9,6 +9,7 @@
#include
<QCheckBox>
#include
<QInputDialog>
#include
<QLabel>
#include
<QSplitter>
#include
"dlg_creategame.h"
#include
"tab_supervisor.h"
#include
"tab_room.h"
...
...
@@ -153,12 +154,12 @@ TabRoom::TabRoom(TabSupervisor *_tabSupervisor, AbstractClient *_client, const Q
chatGroupBox
=
new
QGroupBox
;
chatGroupBox
->
setLayout
(
chatVbox
);
Q
VBoxLayout
*
vbox
=
new
QVBoxLayout
;
vbox
->
addWidget
(
gameSelector
);
vbox
->
addWidget
(
chatGroupBox
);
Q
Splitter
*
splitter
=
new
QSplitter
(
Qt
::
Vertical
)
;
splitter
->
addWidget
(
gameSelector
);
splitter
->
addWidget
(
chatGroupBox
);
QHBoxLayout
*
hbox
=
new
QHBoxLayout
;
hbox
->
add
Layout
(
vbox
,
3
);
hbox
->
add
Widget
(
splitter
,
3
);
hbox
->
addWidget
(
userList
,
1
);
aLeaveRoom
=
new
QAction
(
this
);
...
...
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