MainWindow.cpp 527 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "..\Header\MainWindow.h"
#include "..\Header\OglViewerWidget.h"
#include <QSurfaceFormat>

MainWindow::MainWindow(QWidget *parent)
	: QMainWindow(parent)
	, ui(new Ui::MainWindowClass)
{
	ui->setupUi(this);

	QSurfaceFormat format;
	format.setDepthBufferSize(24);
	QSurfaceFormat::setDefaultFormat(format);

Anakin's avatar
Anakin committed
15
	setCentralWidget(new OglViewerWidget(this));
16

Anakin's avatar
Anakin committed
17
18
19
	setWindowIcon(QIcon(":/images/icon.ico"));
	setWindowTitle("Mesh Viewer");
	ui->statusBar->showMessage("pre-alpha");
20
21
22
23
24
25
26
}


MainWindow::~MainWindow()
{
	delete ui;
}