Commit 308d238b authored by Anakin's avatar Anakin

add settings icon,

set ogl verison to 2.0 to make it compatible with more PCs
parent 30d41f7d
......@@ -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>
......@@ -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);
}
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment