diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-05-08 09:01:43 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-05-09 09:25:11 +0000 |
commit | 3d77e1396cfccff2e4cd2cab93d04c7762d28d57 (patch) | |
tree | f87a5f96e00bd3939bddea435fc2cb89796468ef /src/corelib/io/qfileinfo.h | |
parent | 5f2eee18c918ffb136fa2c491127f933e53345fe (diff) |
Add QDebug operator for QFileInfo
So far it only shows the path.
Change-Id: Ibfecc20ddacce12a178e1ddb297b0e7b91f29f05
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/corelib/io/qfileinfo.h')
-rw-r--r-- | src/corelib/io/qfileinfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/io/qfileinfo.h b/src/corelib/io/qfileinfo.h index 669a1b6ad3..d212b6dac2 100644 --- a/src/corelib/io/qfileinfo.h +++ b/src/corelib/io/qfileinfo.h @@ -158,6 +158,10 @@ Q_DECLARE_SHARED(QFileInfo) typedef QList<QFileInfo> QFileInfoList; +#ifndef QT_NO_DEBUG_STREAM +Q_CORE_EXPORT QDebug operator<<(QDebug, const QFileInfo &); +#endif + QT_END_NAMESPACE Q_DECLARE_METATYPE(QFileInfo) |