Kylin/Fluent/QClassStdStream.h
2024-08-20 23:58:02 +08:00

26 lines
826 B
C++

#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