QStandardPaths: purge deprecated API

Since 5.2: enableTestMode(bool)

Change-Id: Ibfd5958b6383491d9297d3f0e815ad4679fb57f5
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
Edward Welbourne 2020-07-16 14:27:12 +02:00
parent 8b7bde6c49
commit 563a8d628f
2 changed files with 2 additions and 12 deletions

View File

@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Copyright (C) 2020 The Qt Company Ltd.
** Copyright (C) 2016 Intel Corporation.
** Contact: https://www.qt.io/licensing/
**
@ -601,13 +601,6 @@ QString QStandardPaths::displayName(StandardLocation type)
static bool qsp_testMode = false;
#if QT_DEPRECATED_SINCE(5, 2)
void QStandardPaths::enableTestMode(bool testMode)
{
qsp_testMode = testMode;
}
#endif
void QStandardPaths::setTestModeEnabled(bool testMode)
{
qsp_testMode = testMode;

View File

@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtCore module of the Qt Toolkit.
@ -96,9 +96,6 @@ public:
static QString findExecutable(const QString &executableName, const QStringList &paths = QStringList());
#if QT_DEPRECATED_SINCE(5, 2)
static QT_DEPRECATED void enableTestMode(bool testMode);
#endif
static void setTestModeEnabled(bool testMode);
static bool isTestModeEnabled();