From 308d238b2d1fedbfeb463f970404269e2bfb9ce1 Mon Sep 17 00:00:00 2001 From: Anakin Date: Tue, 24 Jan 2017 19:39:34 +0100 Subject: [PATCH] add settings icon, set ogl verison to 2.0 to make it compatible with more PCs --- QtMeshViewer/Resources/Resources.qrc | 1 + QtMeshViewer/Resources/StyleSheet.txt | 4 ++++ QtMeshViewer/Resources/settings.png | Bin 0 -> 1309 bytes QtMeshViewer/Source/MainWindow.cpp | 3 +++ 4 files changed, 8 insertions(+) create mode 100644 QtMeshViewer/Resources/settings.png diff --git a/QtMeshViewer/Resources/Resources.qrc b/QtMeshViewer/Resources/Resources.qrc index 71e7c0b..080db7a 100644 --- a/QtMeshViewer/Resources/Resources.qrc +++ b/QtMeshViewer/Resources/Resources.qrc @@ -26,5 +26,6 @@ X_disabled.png Y_disabled.png Z_disabled.png + settings.png diff --git a/QtMeshViewer/Resources/StyleSheet.txt b/QtMeshViewer/Resources/StyleSheet.txt index 8c7d7b8..b36e3a9 100644 --- a/QtMeshViewer/Resources/StyleSheet.txt +++ b/QtMeshViewer/Resources/StyleSheet.txt @@ -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); } diff --git a/QtMeshViewer/Resources/settings.png b/QtMeshViewer/Resources/settings.png new file mode 100644 index 0000000000000000000000000000000000000000..9c51c3a88ae2c37a3de0377d00b867ffe213049b GIT binary patch literal 1309 zcmV+&1>*XNP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ=qe(m|K-2_)7FrnO2HE22niwNMD?o7E>D z3xcHJlL!{Ur~VT@6bnMBs31ixwY6C4gRPAeO0HXzW-T%EzjLfR^EDcX295#4D-i=h%yVIkj+0j#egRm?Sy^B!B3E(U)7%2i0^b7Bnr|8q zI2y)$H5V|jScT;XsxibhIo1O=NhnJWN5LiyZ4Pv}+_DuP1LyMyd{GVA9l1s!Q}|>oek(} z%$b=A%&tH=fTikc@COysRcY*`F4UP@&Nzxe1q_!1`pZFL_Hbk1jmShb`DY~*jB)_w zfPP?D0ml}qnU6LKzS+(vu@VW^LKT4HsuFRq5<&0);L3t0+Qpak@?;SneI%bm5J`Yn zB3`hoF@4ooQY}h+m8aeQo(%l=5=1dfFH4|3RfJc!!xjfVySDcGIKc=LBGs5aJB)Et z;Jh^RHN4gb2YRx59Uf=}Z8i*b!y7xr#6L~s#6-;?662~AxJGs~l6^h!bTPaBWeP4% zz{H}Y*Zzdq&M&S&<-K;OxOA;s+#5S zq3yB`Vz@MwJ?r$~#DHkN*Ko~|-EeppytNx#1y@UOySzSzokt+9!LL*B@;3OV43|rA zcLCn(m*+(fKH4jl&6J^Tx%cCk#7dsn%?is8W0JQwW@V3<58&(3j6@0^*Wm9m+?<2b zvbgS#f14LByOrv8adP$bGn@Xj81bC;|^0`r?Y5)<_#I^5=6 z6M#}ycEd6n%X%5=hVdm?S7W#_Be4-g5_t6_J{XiVT+^r+3M&hgtq62-k!OWhwn<xE~mqok#rkg zP-~mihaF5jEt+?F(7WmX>F9j@UT~_*2U{`X>0~|#CC@i9nz@P33+s$#jfT_X)tE2K z0sZE97S&ptj?yAy23_L!QAhC!aIV>O4B!Gsjq!Yc7-t=Gi{m-2;##xu{J#MJhY$=( T#IuB900000NkvXXu0mjfIm}s< literal 0 HcmV?d00001 diff --git a/QtMeshViewer/Source/MainWindow.cpp b/QtMeshViewer/Source/MainWindow.cpp index c2d8977..01b1f07 100644 --- a/QtMeshViewer/Source/MainWindow.cpp +++ b/QtMeshViewer/Source/MainWindow.cpp @@ -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();