summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAotrix <[email protected]>2026-02-04 23:10:15 +0100
committerAotrix <[email protected]>2026-02-04 23:10:15 +0100
commit82d568a7b4f6408215711eb62c3fdab287f45d05 (patch)
treed8ca8cc72143fdb210354700f9daeb2777a1f18b
parent1fac496ea819e68570dc3cfe1794d8f603adf465 (diff)
added list of items
-rw-r--r--gameView/main.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/gameView/main.cpp b/gameView/main.cpp
index 2553e08..1969e3a 100644
--- a/gameView/main.cpp
+++ b/gameView/main.cpp
@@ -3,6 +3,7 @@
#include <qapplication.h>
#include <qboxlayout.h>
#include <qgridlayout.h>
+#include <qlistwidget.h>
#include <qnamespace.h>
#include <qpushbutton.h>
#include <qwidget.h>
@@ -12,14 +13,11 @@ int main(int argc, char *argv[]) {
QWidget aWindow;
aWindow.resize(1200, 1000);
- QPushButton aButton("Click");
-
QGridLayout aLayout(&aWindow);
- aLayout.addWidget(&aButton, 0, 0, Qt::AlignBottom);
- QVBoxLayout aVerticalLayout;
- aLayout.addLayout(&aVerticalLayout, 0, 1, 1, 3);
+ QListWidget aListWidget;
+ aLayout.addWidget(&aListWidget, 0, 0);
aWindow.show();
- aWindow.setWindowTitle(QApplication::translate("toplevel", "Top-level widget"));
+ aWindow.setWindowTitle("Heathstone simulator");
return aApplication.exec();
}