add settings icon,
set ogl verison to 2.0 to make it compatible with more PCs
This commit is contained in:
parent
30d41f7d85
commit
308d238b2d
|
@ -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 {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue