QDebug: unexport most of the class for Qt 7
Only a few helper methods need to be exported. Change-Id: I74249c52dc02478ba93cfffd16d2e8eac8a13182 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
1e468432f6
commit
4ccd974ada
@ -60,8 +60,7 @@
|
|||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
|
class QT6_ONLY(Q_CORE_EXPORT) QDebug : public QIODeviceBase
|
||||||
class Q_CORE_EXPORT QDebug : public QIODeviceBase
|
|
||||||
{
|
{
|
||||||
friend class QMessageLogger;
|
friend class QMessageLogger;
|
||||||
friend class QDebugStateSaver;
|
friend class QDebugStateSaver;
|
||||||
@ -93,9 +92,9 @@ class Q_CORE_EXPORT QDebug : public QIODeviceBase
|
|||||||
|
|
||||||
enum Latin1Content { ContainsBinary = 0, ContainsLatin1 };
|
enum Latin1Content { ContainsBinary = 0, ContainsLatin1 };
|
||||||
|
|
||||||
void putUcs4(uint ucs4);
|
QT7_ONLY(Q_CORE_EXPORT) void putUcs4(uint ucs4);
|
||||||
void putString(const QChar *begin, size_t length);
|
QT7_ONLY(Q_CORE_EXPORT) void putString(const QChar *begin, size_t length);
|
||||||
void putByteArray(const char *begin, size_t length, Latin1Content content);
|
QT7_ONLY(Q_CORE_EXPORT) void putByteArray(const char *begin, size_t length, Latin1Content content);
|
||||||
public:
|
public:
|
||||||
explicit QDebug(QIODevice *device) : stream(new Stream(device)) {}
|
explicit QDebug(QIODevice *device) : stream(new Stream(device)) {}
|
||||||
explicit QDebug(QString *string) : stream(new Stream(string)) {}
|
explicit QDebug(QString *string) : stream(new Stream(string)) {}
|
||||||
@ -107,7 +106,7 @@ public:
|
|||||||
~QDebug();
|
~QDebug();
|
||||||
void swap(QDebug &other) noexcept { qt_ptr_swap(stream, other.stream); }
|
void swap(QDebug &other) noexcept { qt_ptr_swap(stream, other.stream); }
|
||||||
|
|
||||||
QDebug &resetFormat();
|
QT7_ONLY(Q_CORE_EXPORT) QDebug &resetFormat();
|
||||||
|
|
||||||
inline QDebug &space() { stream->space = true; stream->ts << ' '; return *this; }
|
inline QDebug &space() { stream->space = true; stream->ts << ' '; return *this; }
|
||||||
inline QDebug &nospace() { stream->space = false; return *this; }
|
inline QDebug &nospace() { stream->space = false; return *this; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user