有人帮我看看这个C++class的定义为什么是合法的吗?# JobHunting - 待字闺中
s*s
1 楼
class Q_SVG_EXPORT QGraphicsSvgItem : public QObject, public QGraphicsItem
{
Q_OBJECT
public:
private:
Q_DISABLE_COPY(QGraphicsSvgItem)
inline QGraphicsSvgItemPrivate *d_func()
{ return reinterpret_cast(QObject::d_ptr); }
inline const QGraphicsSvgItemPrivate *d_func() const
{ return reinterpret_cast(QObject::d_pt
r); }
friend class QGraphicsSvgItemPrivate;
Q_PRIVATE_SLOT(d_func(), void _q_repaintItem())
}
{
Q_OBJECT
public:
private:
Q_DISABLE_COPY(QGraphicsSvgItem)
inline QGraphicsSvgItemPrivate *d_func()
{ return reinterpret_cast
inline const QGraphicsSvgItemPrivate *d_func() const
{ return reinterpret_cast
r); }
friend class QGraphicsSvgItemPrivate;
Q_PRIVATE_SLOT(d_func(), void _q_repaintItem())
}