Commit 308d238b authored by Anakin's avatar Anakin
Browse files

add settings icon,

set ogl verison to 2.0 to make it compatible with more PCs
parent 30d41f7d
...@@ -26,5 +26,6 @@ ...@@ -26,5 +26,6 @@
<file>X_disabled.png</file> <file>X_disabled.png</file>
<file>Y_disabled.png</file> <file>Y_disabled.png</file>
<file>Z_disabled.png</file> <file>Z_disabled.png</file>
<file>settings.png</file>
</qresource> </qresource>
</RCC> </RCC>
...@@ -71,6 +71,10 @@ QToolButton#light:checked { ...@@ -71,6 +71,10 @@ QToolButton#light:checked {
image: url(:/images/toolbar/light_on.png); image: url(:/images/toolbar/light_on.png);
} }
QToolButton#settings {
image: url(:/images/toolbar/settings.png);
}
QToolButton#fileInfo { QToolButton#fileInfo {
image: url(:/images/toolbar/info.png); image: url(:/images/toolbar/info.png);
} }
......
...@@ -29,6 +29,9 @@ MainWindow::MainWindow(QWidget *parent) ...@@ -29,6 +29,9 @@ MainWindow::MainWindow(QWidget *parent)
QSurfaceFormat format; QSurfaceFormat format;
format.setDepthBufferSize(24); format.setDepthBufferSize(24);
format.setMajorVersion(2);
format.setMinorVersion(0);
format.setProfile(QSurfaceFormat::NoProfile);
QSurfaceFormat::setDefaultFormat(format); QSurfaceFormat::setDefaultFormat(format);
setupWidgets(); 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