From d04e06dc3279bd812d5a060c3f045b84ea345f35 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Tue, 29 May 2012 10:21:13 +0900 Subject: Remove Library dependency on Settings made QLibraryInfo available with QT_NO_SETTINGS. QKdeTheme is removed when QT_NO_SETTINGS is defined. Change-Id: I63d619bb305e6c23985d9ea50c72d39a697b7a4b Reviewed-by: Oswald Buddenhagen --- src/corelib/global/qfeatures.h | 5 ----- src/corelib/global/qfeatures.txt | 2 +- src/corelib/global/qlibraryinfo.cpp | 8 +++++--- src/corelib/global/qlibraryinfo.h | 5 ----- 4 files changed, 6 insertions(+), 14 deletions(-) (limited to 'src/corelib/global') diff --git a/src/corelib/global/qfeatures.h b/src/corelib/global/qfeatures.h index 7d1551aab6..c51b090a6c 100644 --- a/src/corelib/global/qfeatures.h +++ b/src/corelib/global/qfeatures.h @@ -302,11 +302,6 @@ #define QT_NO_ICONV #endif -// QLibrary -#if !defined(QT_NO_LIBRARY) && (defined(QT_NO_SETTINGS)) -#define QT_NO_LIBRARY -#endif - // QMenu #if !defined(QT_NO_MENU) && (defined(QT_NO_ACTION)) #define QT_NO_MENU diff --git a/src/corelib/global/qfeatures.txt b/src/corelib/global/qfeatures.txt index 564884c381..f0b3e4e071 100644 --- a/src/corelib/global/qfeatures.txt +++ b/src/corelib/global/qfeatures.txt @@ -188,7 +188,7 @@ SeeAlso: ??? Feature: LIBRARY Description: Supports a shared library wrapper. Section: File I/O -Requires: SETTINGS +Requires: Name: QLibrary SeeAlso: ??? diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp index 1bd17ce9ff..9953eef5e1 100644 --- a/src/corelib/global/qlibraryinfo.cpp +++ b/src/corelib/global/qlibraryinfo.cpp @@ -162,6 +162,8 @@ QSettings *QLibraryInfoPrivate::findConfiguration() return 0; //no luck } +#endif // QT_NO_SETTINGS + /*! \class QLibraryInfo \brief The QLibraryInfo class provides information about the Qt library. @@ -306,7 +308,7 @@ QLibraryInfo::rawLocation(LibraryLocation loc, PathGroup group) if (!QLibraryInfoPrivate::haveGroup(group) && (group == FinalPaths || !(group = FinalPaths, QLibraryInfoPrivate::haveGroup(FinalPaths)))) -#else +#elif !defined(QT_NO_SETTINGS) if (!QLibraryInfoPrivate::configuration()) #endif { @@ -320,6 +322,7 @@ QLibraryInfo::rawLocation(LibraryLocation loc, PathGroup group) if (path) ret = QString::fromLocal8Bit(path); +#ifndef QT_NO_SETTINGS } else { QString key; QString defaultValue; @@ -362,6 +365,7 @@ QLibraryInfo::rawLocation(LibraryLocation loc, PathGroup group) ret = QDir::fromNativeSeparators(ret); } +#endif // QT_NO_SETTINGS } if (!ret.isEmpty() && QDir::isRelativePath(ret)) { @@ -427,8 +431,6 @@ QLibraryInfo::rawLocation(LibraryLocation loc, PathGroup group) \sa location() */ -#endif // QT_NO_SETTINGS - QT_END_NAMESPACE #if defined(Q_CC_GNU) && defined(ELF_INTERPRETER) diff --git a/src/corelib/global/qlibraryinfo.h b/src/corelib/global/qlibraryinfo.h index 5861b4b8bd..1b7ff2bfa3 100644 --- a/src/corelib/global/qlibraryinfo.h +++ b/src/corelib/global/qlibraryinfo.h @@ -49,9 +49,6 @@ QT_BEGIN_HEADER QT_BEGIN_NAMESPACE - -#ifndef QT_NO_SETTINGS - class Q_CORE_EXPORT QLibraryInfo { public: @@ -98,8 +95,6 @@ private: QLibraryInfo(); }; -#endif /* QT_NO_SETTINGS */ - QT_END_NAMESPACE QT_END_HEADER -- cgit v1.2.3