&& p.d->cosmetic == d->cosmetic);
}
-
-/*!
- \fn bool QPen::isDetached() const
-
- \internal
-*/
-
-bool QPen::isDetached() const
-{
- return d->ref == 1;
-}
-
-
/*****************************************************************************
QPen stream functions
*****************************************************************************/
inline bool operator!=(const QPen &p) const { return !(operator==(p)); }
operator QVariant() const;
- bool isDetached() const;
private:
friend Q_GUI_EXPORT QDataStream &operator>>(QDataStream &, QPen &);
friend Q_GUI_EXPORT QDataStream &operator<<(QDataStream &, const QPen &);
QPenPrivate *d;
-
-public:
- typedef QPenPrivate * DataPtr;
- inline DataPtr &data_ptr() { return d; }
};
Q_DECLARE_TYPEINFO(QPen, Q_MOVABLE_TYPE);
-Q_DECLARE_SHARED(QPen)
#ifndef QT_NO_DEBUG_STREAM
Q_GUI_EXPORT QDebug operator<<(QDebug, const QPen &);