aboutsummaryrefslogtreecommitdiffstats
path: root/subsurfacesysinfo.cpp
AgeCommit message (Collapse)Author
2015-04-04Fix build on older MacsGravatar Dirk Hohndel
In commit 39ffb0fced85 ("Fix Subsurface build with Qt 5.4.1 and later") Thiago was a bit too aggressive removing some of our ifdefs for building with older versions of the SDK... I need at least this patch to still build on the machine that I use to create the official binaries. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-02-15Fix Subsurface build with Qt 5.4.1 and laterGravatar Thiago Macieira
The intention had been all along to use the 5.4 QSysInfo API, but due to a silly mistake in the QT_VERSION check, it never got enabled for 5.4.0. On 5.4.1 it does get enabled and, unfortunately, causes compilation errors because the API changed between the time we backported to Subsurface and the final version. This commit backports the final QSysInfo API from Qt 5.4 into Subsurface, which includes the renaming of a few functions. Since the prettyOsName function no longer exists in the Qt API in that form, I've reimplemented it using the API that does exist. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-02-12Backport 6796f2337ee31b4b4f07eaa54d868b999c39233a from QtGravatar Thiago Macieira
The detection of Windows 10 is broken in Qt 4.8.6 and in Qt 5.2 through 5.4.1 (see QTBUG-43413). The commit above fixed it. I backported only half of the solution, since the other half requires the private class QSystemLibrary. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-02-12Detect Windows 7 or higher with a numeric comparisonGravatar Thiago Macieira
Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-11-08Remove unused unquote functionGravatar Anton Lundin
In previous version of subsurfacesysinfo.cpp which came straight form Qt the unquote function was used to clean strings. Since f59b30ca5ad7 ("OS Detection: Use QFile when reading /etc/os-release") its not needed any longer so this removes that function. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-08-22Use the Windows default font on Windows 7 and 8/8.1Gravatar Dirk Hohndel
It contains the characters we need and will make the application look more "native". See #712 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-07-25Allow Mac build on older versions of OSXv4.1.93Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-06-30User survey: detect the machine the app is running onGravatar Dirk Hohndel
We build 32bit Windows binaries - but we really want to know if the OS is x86_64 or i386. This little hack should give us that information. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-06-20Fixed compilation for CMake.Gravatar Tomaz Canabrava
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-06-18Clean up SubsurfaceSysInfo by inheriting QSysInfoGravatar Thiago Macieira
Most of the mechanics are already in QSysInfo, we only need to add the extra details that were missing until Qt 5.4. This greatly simplifies the code and will allow us to update it more easily from upstream. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-06-14OS DetectionGravatar Joshua Joseph
--001a113a374080d8af04fbd33a62 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Jun 15, 2014 at 1:07 AM, Thiago Macieira <thiago@macieira.org> wrote: > Em s=C3=A1b 14 jun 2014, =C3=A0s 15:05:24, Thiago Macieira escreveu: > > > Also, please keep the original copyright headers from the files you copie= d. > -- > Attached patch adds Qt copyright to both files. --=20 Thanks, Joshua <div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Jun 15, 2014 at 1:07 AM, Thiago Macieira <span dir="ltr">&lt;<a href="mailto:thiago@macieira.org" target="_blank">thiago@macieira.org</a>&gt;</span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Em sáb 14 jun 2014, às 15:05:24, Thiago Macieira escreveu:<br> <div class=""><br> <br> </div>Also, please keep the original copyright headers from the files you copied.<br> <div class="HOEnZb"><div class="h5">--<br></div></div></blockquote><div><br></div><div>Attached patch adds Qt copyright to both files. </div></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Thanks,</div><div> Joshua</div><div><b><br></b></div></div> </div></div> From 092bea260da8b02437c54eac51fd4fa044069e0e Mon Sep 17 00:00:00 2001 From: "Joseph W. Joshua" <joejoshw@gmail.com> Date: Sun, 15 Jun 2014 01:20:12 +0300 Subject: [PATCH] Include Qt copyright headers in SubsurfaceSysInfo Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-06-14OS Detection: Use QFile when reading /etc/os-releaseGravatar Joseph W. Joshua
Improves and simplifies reading of /etc/os-release on linux system to read the PRETTY_NAME value. The previously used method is unnecessarily lengthy and too complicated. Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-06-14Make system detection compile on MacGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-06-14OS DetectionGravatar Joseph W. Joshua
Implements automatic OS and architecture detection. This code has been taken from the Qt repositories for Qt 5.4 (LGPL) and slightly modified into the SubsurfaceSysInfo class. Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>