diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-01-02 16:09:20 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-02 16:33:56 +0100 |
commit | f47c258ea94ccf7a65746e839197fb64029d9ea1 (patch) | |
tree | 61265163dc966719735019017255d369bdf87da7 /src | |
parent | 0a0d2f464aa022a0751c9551878ab3945b9ed28a (diff) | |
download | qtenginio-f47c258ea94ccf7a65746e839197fb64029d9ea1.tar.gz |
Do not define debug operator<< in header
Task-number: QTBUG-35534
[ChangeLog][Enginio] Fixed static linking
Change-Id: I0024b9d6ca816c59885d048af5d5525149de75ed
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/enginio_client/enginiobasemodel_p.h | 8 | ||||
-rw-r--r-- | src/enginio_client/enginiomodel.cpp | 10 |
2 files changed, 11 insertions, 7 deletions
diff --git a/src/enginio_client/enginiobasemodel_p.h b/src/enginio_client/enginiobasemodel_p.h index 9e7417d..bd6bd2f 100644 --- a/src/enginio_client/enginiobasemodel_p.h +++ b/src/enginio_client/enginiobasemodel_p.h @@ -88,13 +88,7 @@ struct EnginioModelPrivateAttachedData Q_DECLARE_TYPEINFO(EnginioModelPrivateAttachedData, Q_MOVABLE_TYPE); #ifndef QT_NO_DEBUG_STREAM -QDebug operator<<(QDebug dbg, const EnginioModelPrivateAttachedData &a) -{ - dbg.nospace() << "EnginioModelPrivateAttachedData(ref:"; - dbg.nospace() << a.ref << ", row: "<< a.row << ", synced: " << (a.ref == 0) << ", id: " << a.id; - dbg.nospace() << ')'; - return dbg.space(); -} +QDebug operator<<(QDebug dbg, const EnginioModelPrivateAttachedData &a); #endif class AttachedDataContainer diff --git a/src/enginio_client/enginiomodel.cpp b/src/enginio_client/enginiomodel.cpp index d9063a5..f493513 100644 --- a/src/enginio_client/enginiomodel.cpp +++ b/src/enginio_client/enginiomodel.cpp @@ -312,6 +312,16 @@ void EnginioBaseModelPrivate::syncRoles() } } +#ifndef QT_NO_DEBUG_STREAM +QDebug operator<<(QDebug dbg, const EnginioModelPrivateAttachedData &a) +{ + dbg.nospace() << "EnginioModelPrivateAttachedData(ref:"; + dbg.nospace() << a.ref << ", row: "<< a.row << ", synced: " << (a.ref == 0) << ", id: " << a.id; + dbg.nospace() << ')'; + return dbg.space(); +} +#endif + namespace { struct Types { |