diff options
| author | Aotrix <[email protected]> | 2026-07-31 06:10:51 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-07-31 06:10:51 +0200 |
| commit | 1d046f6bf16f9a268a8fdb6f158f0a9a89ea93a4 (patch) | |
| tree | 84d965d137990182f0df6fed12ed17824632fac0 /gameView/main.cpp | |
| parent | bf3e23f9795d877a58f97e533eaf1299b7c8752f (diff) | |
Change size of main window
Diffstat (limited to 'gameView/main.cpp')
| -rw-r--r-- | gameView/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gameView/main.cpp b/gameView/main.cpp index 97e3708..f5dcf48 100644 --- a/gameView/main.cpp +++ b/gameView/main.cpp @@ -33,6 +33,10 @@ class MainWindowMediator { aCard["id"].get<uint64_t>()) .c_str()); } + _listOfCardsWidget->setVisible(true); + _listOfCardsWidget->setFixedWidth(_listOfCardsWidget->sizeHintForColumn(0) + + 2 * _listOfCardsWidget->frameWidth() + 20); + _mainWindow->resize(1500, 1000); return *this; } @@ -64,7 +68,7 @@ void configureMainMenuBar(QMenuBar &iMenuBar, MainWindowMediator &iMainWindowMed int main(int argc, char *argv[]) { QApplication aApplication(argc, argv); auto aWindow = std::make_shared<QWidget>(); - aWindow->resize(310, 650); + aWindow->resize(400, 50); // Set Dialog flag for i3 users aWindow->setWindowFlag(Qt::WindowType::Dialog); @@ -72,6 +76,7 @@ int main(int argc, char *argv[]) { QMenuBar aMenuBar; aLayout.addWidget(&aMenuBar, 0, 0); auto aListOfCards = std::make_shared<QListWidget>(); + aListOfCards->hide(); aLayout.addWidget(aListOfCards.get(), 1, 0); MainWindowMediator aMainWindowMediator; |
