summaryrefslogtreecommitdiff
path: root/gameView/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gameView/main.cpp')
-rw-r--r--gameView/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/gameView/main.cpp b/gameView/main.cpp
index 2546e6d..f769ed5 100644
--- a/gameView/main.cpp
+++ b/gameView/main.cpp
@@ -17,6 +17,7 @@ class MainWindowMediator {
public:
MainWindowMediator &registerListOfCardsWidget(std::shared_ptr<QListWidget> &iListOfCards) {
_listOfCardsWidget = iListOfCards;
+ _listOfCardsWidget->hide();
return *this;
}
MainWindowMediator &registerMainWindow(std::shared_ptr<QWidget> &iMainWindow) {
@@ -95,14 +96,14 @@ int main(int argc, char *argv[]) {
aWindow->setWindowFlag(Qt::WindowType::Dialog);
QGridLayout aLayout(aWindow.get());
+ QHBoxLayout aHLayout(aLayout.widget());
auto aMenuBar = std::make_shared<QMenuBar>();
aLayout.addWidget(aMenuBar.get(), 0, 0);
auto aListOfCards = std::make_shared<QListWidget>();
- aListOfCards->hide();
- aLayout.addWidget(aListOfCards.get(), 1, 0);
-
+ aLayout.addLayout(&aHLayout, 1, 0);
+ aHLayout.addWidget(aListOfCards.get());
auto aRightView = std::make_shared<QGraphicsView>();
- aLayout.addWidget(aRightView.get(), 1, 1);
+ aHLayout.addWidget(aRightView.get());
MainWindowMediator aMainWindowMediator;
aMainWindowMediator.registerListOfCardsWidget(aListOfCards)