#include <QtGui/qcolor.h>
#include <QtGui/qbrush.h>
Go to the source code of this file.
◆ operator<<() [1/2]
Definition at line 936 of file qpen.cpp.
Referenced by QPen::data_ptr(), and QPen::operator!=().
939 if (s.version() < 3) {
942 s << (
quint8)(p.style() | p.capStyle() | p.joinStyle());
944 s << (
quint16)(p.style() | p.capStyle() | p.joinStyle());
948 if (s.version() < 7) {
952 s << double(p.widthF());
954 s << double(p.miterLimit());
955 if (
sizeof(
qreal) ==
sizeof(double)) {
956 s << p.dashPattern();
963 for (
int i = 0; i < pattern.
size(); ++i)
964 s <<
double(pattern.
at(i));
966 if (s.version() >= 9)
967 s <<
double(p.dashOffset());
const T & at(int i) const
Returns the item at index position i in the vector.
int size() const
Returns the number of items in the vector.
◆ operator<<() [2/2]
Definition at line 1045 of file qpen.cpp.
1047 #ifndef Q_BROKEN_DEBUG_STREAM 1048 const char *PEN_STYLES[] = {
1058 dbg.nospace() <<
"QPen(" << p.width() <<
',' << p.brush()
1059 <<
',' << PEN_STYLES[p.style()] <<
',' << int(p.capStyle())
1060 <<
',' <<
int(p.joinStyle()) <<
',' << p.dashPattern()
1061 <<
',' << p.dashOffset()
1062 <<
',' << p.miterLimit() <<
')';
1065 qWarning(
"This compiler doesn't support streaming QPen to QDebug");
Q_CORE_EXPORT void qWarning(const char *,...)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ operator>>()
Definition at line 985 of file qpen.cpp.
Referenced by QPen::operator!=().
992 double miterLimit = 2;
994 double dashOffset = 0;
995 bool cosmetic =
false;
1004 if (s.version() < 7) {
1013 if (
sizeof(
qreal) ==
sizeof(double)) {
1019 for (
quint32 i = 0; i < numDashes; ++i) {
1021 dashPattern << dash;
1024 if (s.version() >= 9)
The QColor class provides colors based on RGB, HSV or CMYK values.
Qt::PenJoinStyle joinStyle
The QBrush class defines the fill pattern of shapes drawn by QPainter.
QVector< qreal > dashPattern
◆ Q_DECLARE_TYPEINFO()