Remove QOperatingSystemVersion::WindowsVista
The minimum supported version is Windows 7. Remove
QOperatingSystemVersion::WindowsVista added by
b0cd007335 and replace with "true"
wherever it was used.
Change-Id: I08c0208467b655a921b6773f77d8bc099be69031
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
parent
46ec24d2b9
commit
43983b0b6f
|
|
@ -355,14 +355,6 @@ bool QOperatingSystemVersion::isAnyOfType(std::initializer_list<OSType> types) c
|
|||
return false;
|
||||
}
|
||||
|
||||
/*!
|
||||
\variable QOperatingSystemVersion::WindowsVista
|
||||
\brief a version corresponding to Windows Vista (version 6.0).
|
||||
\since 6.0
|
||||
*/
|
||||
const QOperatingSystemVersion QOperatingSystemVersion::WindowsVista =
|
||||
QOperatingSystemVersion(QOperatingSystemVersion::Windows, 6, 0);
|
||||
|
||||
/*!
|
||||
\variable QOperatingSystemVersion::Windows7
|
||||
\brief a version corresponding to Windows 7 (version 6.1).
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ public:
|
|||
Android
|
||||
};
|
||||
|
||||
static const QOperatingSystemVersion WindowsVista;
|
||||
static const QOperatingSystemVersion Windows7;
|
||||
static const QOperatingSystemVersion Windows8;
|
||||
static const QOperatingSystemVersion Windows8_1;
|
||||
|
|
|
|||
|
|
@ -143,13 +143,12 @@ void QSslSocketPrivate::ensureCiphersAndCertsLoaded()
|
|||
if (!s_loadRootCertsOnDemand)
|
||||
setDefaultCaCertificates(systemCaCertificates());
|
||||
#ifdef Q_OS_WIN
|
||||
//Enabled for fetching additional root certs from windows update on windows 6+
|
||||
//Enabled for fetching additional root certs from windows update on windows.
|
||||
//This flag is set false by setDefaultCaCertificates() indicating the app uses
|
||||
//its own cert bundle rather than the system one.
|
||||
//Same logic that disables the unix on demand cert loading.
|
||||
//Unlike unix, we do preload the certificates from the cert store.
|
||||
if (QOperatingSystemVersion::current() >= QOperatingSystemVersion::WindowsVista)
|
||||
s_loadRootCertsOnDemand = true;
|
||||
s_loadRootCertsOnDemand = true;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -84,8 +84,7 @@ static const int windowsRightBorder = 15; // right border on windows
|
|||
*/
|
||||
bool QWindowsVistaStylePrivate::useVista()
|
||||
{
|
||||
return QOperatingSystemVersion::current() >= QOperatingSystemVersion::WindowsVista
|
||||
&& QWindowsVistaStylePrivate::useXP();
|
||||
return QWindowsVistaStylePrivate::useXP();
|
||||
}
|
||||
|
||||
/* \internal
|
||||
|
|
|
|||
|
|
@ -2098,8 +2098,7 @@ void tst_QFileInfo::owner()
|
|||
DWORD bufSize = 1024;
|
||||
if (GetUserNameW(usernameBuf, &bufSize)) {
|
||||
userName = QString::fromWCharArray(usernameBuf);
|
||||
if (QOperatingSystemVersion::current() >= QOperatingSystemVersion::WindowsVista
|
||||
&& IsUserAdmin()) {
|
||||
if (IsUserAdmin()) {
|
||||
// Special case : If the user is a member of Administrators group, all files
|
||||
// created by the current user are owned by the Administrators group.
|
||||
LPLOCALGROUP_USERS_INFO_0 pBuf = NULL;
|
||||
|
|
|
|||
|
|
@ -881,11 +881,6 @@ void tst_QTcpServer::serverAddress_data()
|
|||
{
|
||||
QTest::addColumn<QHostAddress>("listenAddress");
|
||||
QTest::addColumn<QHostAddress>("serverAddress");
|
||||
#ifdef Q_OS_WIN
|
||||
if (QOperatingSystemVersion::current() < QOperatingSystemVersion::WindowsVista)
|
||||
QTest::newRow("Any") << QHostAddress(QHostAddress::Any) << QHostAddress(QHostAddress::AnyIPv4); //windows XP doesn't support dual stack sockets
|
||||
else
|
||||
#endif
|
||||
if (QtNetworkSettings::hasIPv6())
|
||||
QTest::newRow("Any") << QHostAddress(QHostAddress::Any) << QHostAddress(QHostAddress::Any);
|
||||
else
|
||||
|
|
|
|||
|
|
@ -7704,9 +7704,7 @@ void tst_QWidget::moveWindowInShowEvent()
|
|||
void tst_QWidget::repaintWhenChildDeleted()
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
if (QOperatingSystemVersion::current() >= QOperatingSystemVersion::WindowsVista) {
|
||||
QTest::qWait(1000);
|
||||
}
|
||||
QTest::qWait(1000);
|
||||
#endif
|
||||
ColorWidget w(nullptr, Qt::FramelessWindowHint, Qt::red);
|
||||
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
||||
|
|
@ -8903,11 +8901,10 @@ void tst_QWidget::translucentWidget()
|
|||
|
||||
#ifdef Q_OS_WIN
|
||||
QWidget *desktopWidget = QApplication::desktop()->screen(0);
|
||||
if (QOperatingSystemVersion::current() >= QOperatingSystemVersion::WindowsVista)
|
||||
widgetSnapshot = grabWindow(desktopWidget->windowHandle(), labelPos.x(), labelPos.y(), label.width(), label.height());
|
||||
else
|
||||
widgetSnapshot = grabWindow(desktopWidget->windowHandle(), labelPos.x(), labelPos.y(), label.width(), label.height());
|
||||
#else
|
||||
widgetSnapshot = label.grab(QRect(QPoint(0, 0), label.size()));
|
||||
#endif
|
||||
widgetSnapshot = label.grab(QRect(QPoint(0, 0), label.size()));
|
||||
const QImage actual = widgetSnapshot.toImage().convertToFormat(QImage::Format_RGB32);
|
||||
const QImage expected = pm.toImage().scaled(label.devicePixelRatioF() * pm.size());
|
||||
if (m_platform == QStringLiteral("winrt"))
|
||||
|
|
|
|||
|
|
@ -171,11 +171,8 @@ void tst_QProgressBar::format()
|
|||
bar.setFormat("%v of %m (%p%)");
|
||||
qApp->processEvents();
|
||||
|
||||
#ifndef Q_OS_MAC
|
||||
#if !defined(Q_OS_MACOS) && !defined(Q_OS_WIN)
|
||||
// Animated scroll bars get paint events all the time
|
||||
#ifdef Q_OS_WIN
|
||||
if (QOperatingSystemVersion::current() < QOperatingSystemVersion::WindowsVista)
|
||||
#endif
|
||||
QVERIFY(!bar.repainted);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue