aboutsummaryrefslogtreecommitdiffstats
path: root/subsurfacesysinfo.h
AgeCommit message (Collapse)Author
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>
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-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-18Disable the Q_PROCESSOR_xxx macros in Qt 5.0Gravatar Thiago Macieira
We don't want to redefine, we just need what Qt 5 already has. 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 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>