OSDN Git Service

export QDir::SortFlags debug operator
authorIvailo Monev <xakepa10@gmail.com>
Tue, 5 Jan 2021 05:52:39 +0000 (07:52 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Tue, 5 Jan 2021 05:57:13 +0000 (07:57 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/io/qdir.cpp
src/core/io/qdir.h

index 2533f7d..9872049 100644 (file)
@@ -1963,7 +1963,7 @@ QDebug operator<<(QDebug debug, QDir::Filters filters)
     return debug;
 }
 
-static QDebug operator<<(QDebug debug, QDir::SortFlags sorting)
+QDebug operator<<(QDebug debug, QDir::SortFlags sorting)
 {
     if (sorting == QDir::NoSort) {
         debug << "QDir::SortFlags(NoSort)";
index e01d88a..dcefba8 100644 (file)
@@ -198,6 +198,7 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(QDir::SortFlags)
 #ifndef QT_NO_DEBUG_STREAM
 class QDebug;
 Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters);
+Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::SortFlags sorting);
 Q_CORE_EXPORT QDebug operator<<(QDebug debug, const QDir &dir);
 #endif