Kylin/Fluent/QClassStdStream.h

26 lines
826 B
C
Raw Normal View History

2023-08-13 15:05:35 +08:00
#ifndef QCLASSSTDSTREAM_H
#define QCLASSSTDSTREAM_H
#include <QImage>
#include <QString>
#include <QVector3D>
#include <ostream>
namespace std {
inline std::ostream &operator<<(std::ostream &stream, const QVector3D &element) {
stream << "(" << element.x() << "," << element.y() << "," << element.z() << ")";
return stream;
}
std::ostream &operator<<(std::ostream &stream, const QString &element);
std::ostream &operator<<(std::ostream &stream, const QStringList &element);
std::ostream &operator<<(std::ostream &stream, const QPoint &element);
std::ostream &operator<<(std::ostream &stream, const QPointF &element);
std::ostream &operator<<(std::ostream &stream, const QSize &element);
std::ostream &operator<<(std::ostream &stream, const QImage::Format &element);
} // namespace std
#endif // QCLASSSTDSTREAM_H