summaryrefslogtreecommitdiff
path: root/gameView/main.cpp
blob: 838f147871f3124541607d39d9f2562c2dbce44c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <QVBoxLayout>
#include <QtWidgets>
#include <qapplication.h>
#include <qboxlayout.h>
#include <qgridlayout.h>
#include <qlistwidget.h>
#include <qnamespace.h>
#include <qpushbutton.h>
#include <qwidget.h>

int main(int argc, char *argv[]) {
    QApplication aApplication(argc, argv);
    QWidget aWindow;
    aWindow.resize(500, 700);
    // Set Dialog flag for i3 users
    aWindow.setWindowFlag(Qt::WindowType::Dialog);

    QGridLayout aLayout(&aWindow);
    QListWidget aListWidget;
    aListWidget.insertItem(0, "first card");
    aListWidget.insertItem(1, "second card");
    aLayout.addWidget(&aListWidget, 0, 0);

    aWindow.show();
    aWindow.setWindowTitle("Hearthstone simulator");
    return aApplication.exec();
}