add settings icon,

set ogl verison to 2.0 to make it compatible with more PCs
This commit is contained in:
Anakin 2017-01-24 19:39:34 +01:00
parent 30d41f7d85
commit 308d238b2d
4 changed files with 8 additions and 0 deletions

View File

@ -26,5 +26,6 @@
<file>X_disabled.png</file>
<file>Y_disabled.png</file>
<file>Z_disabled.png</file>
<file>settings.png</file>
</qresource>
</RCC>

View File

@ -71,6 +71,10 @@ QToolButton#light:checked {
image: url(:/images/toolbar/light_on.png);
}
QToolButton#settings {
image: url(:/images/toolbar/settings.png);
}
QToolButton#fileInfo {
image: url(:/images/toolbar/info.png);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -29,6 +29,9 @@ MainWindow::MainWindow(QWidget *parent)
QSurfaceFormat format;
format.setDepthBufferSize(24);
format.setMajorVersion(2);
format.setMinorVersion(0);
format.setProfile(QSurfaceFormat::NoProfile);
QSurfaceFormat::setDefaultFormat(format);
setupWidgets();