diff options
| -rw-r--r-- | CMakeLists.txt | 5 | ||||
| -rw-r--r-- | autotests/fallbackconfigresourcestest.cpp | 2 | ||||
| -rw-r--r-- | autotests/kdesktopfiletest.cpp | 2 | ||||
| -rw-r--r-- | autotests/ksharedconfigtest.cpp | 2 | 
4 files changed, 8 insertions, 3 deletions
| diff --git a/CMakeLists.txt b/CMakeLists.txt index c4c61602..f17172d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,11 @@ ecm_setup_version(PROJECT VARIABLE_PREFIX KCONFIG                          VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kconfig_version.h"                          PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5ConfigConfigVersion.cmake"                          SOVERSION 5) +add_definitions(-DQT_NO_CAST_FROM_ASCII) +add_definitions(-DQT_NO_CAST_TO_ASCII) +add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT) +add_definitions(-DQT_NO_URL_CAST_FROM_STRING) +add_definitions(-DQT_USE_QSTRINGBUILDER)  add_subdirectory(src) diff --git a/autotests/fallbackconfigresourcestest.cpp b/autotests/fallbackconfigresourcestest.cpp index f921031e..2a9d1be7 100644 --- a/autotests/fallbackconfigresourcestest.cpp +++ b/autotests/fallbackconfigresourcestest.cpp @@ -32,7 +32,7 @@ private Q_SLOTS:  void FallbackConfigResourcesTest::initTestCase()  { -    QStandardPaths::enableTestMode(true); +    QStandardPaths::setTestModeEnabled(true);  }  void FallbackConfigResourcesTest::testResourceFallbackFile() diff --git a/autotests/kdesktopfiletest.cpp b/autotests/kdesktopfiletest.cpp index fd4a5c9e..4f8c5deb 100644 --- a/autotests/kdesktopfiletest.cpp +++ b/autotests/kdesktopfiletest.cpp @@ -29,7 +29,7 @@ QTEST_MAIN(KDesktopFileTest)  void KDesktopFileTest::initTestCase()  { -    QStandardPaths::enableTestMode(true); +    QStandardPaths::setTestModeEnabled(true);      KConfigGroup actionRestrictions(KSharedConfig::openConfig(), "KDE Action Restrictions");      actionRestrictions.writeEntry("someBlockedAction", false); diff --git a/autotests/ksharedconfigtest.cpp b/autotests/ksharedconfigtest.cpp index ae3d40a2..281f7755 100644 --- a/autotests/ksharedconfigtest.cpp +++ b/autotests/ksharedconfigtest.cpp @@ -37,7 +37,7 @@ private:  void KSharedConfigTest::initTestCase()  { -    QStandardPaths::enableTestMode(true); +    QStandardPaths::setTestModeEnabled(true);      m_path = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation)              + QLatin1Char('/') + QCoreApplication::applicationName() + QStringLiteral("rc"); | 
