comparison plugin/Provider.h @ 1846:37ffea1e50ec

Add platform name query
author Chris Cannam
date Wed, 22 Apr 2020 13:07:22 +0100
parents 6f626cfdba51
children
comparison
equal deleted inserted replaced
1845:6f626cfdba51 1846:37ffea1e50ec
55 } 55 }
56 #endif 56 #endif
57 return false; 57 return false;
58 } 58 }
59 59
60 static QString thisPlatformName() {
61 #ifdef Q_OS_WIN32
62 return QObject::tr("Windows");
63 #endif
64 #ifdef Q_OS_MAC
65 return QObject::tr("Mac");
66 #endif
67 #ifdef Q_OS_LINUX
68 if (sizeof(void *) == 8) {
69 return QObject::tr("64-bit Linux");
70 } else {
71 return QObject::tr("32-bit Linux");
72 }
73 #endif
74 return "(unknown)";
75 }
76
60 bool operator==(const Provider &other) { 77 bool operator==(const Provider &other) {
61 return 78 return
62 other.infoUrl == infoUrl && 79 other.infoUrl == infoUrl &&
63 other.downloadUrl == downloadUrl && 80 other.downloadUrl == downloadUrl &&
64 other.downloadTypes == downloadTypes && 81 other.downloadTypes == downloadTypes &&