00001
00002
00003
00004
00005
00006
00007 #include "GhostPath.h"
00008
00009 GhostPath::GhostPath(const QPainterPath &path,
00010 const QPen &pen,
00011 const QBrush &brush) :
00012 m_path (path),
00013 m_pen (pen),
00014 m_brush (brush)
00015 {
00016 }
00017
00018 GhostPath::GhostPath(const GhostPath &other) :
00019 m_path (other.path ()),
00020 m_pen (other.pen()),
00021 m_brush (other.brush ())
00022 {
00023 }
00024
00025 GhostPath &GhostPath::operator=(const GhostPath &other)
00026 {
00027 m_path = other.path();
00028 m_pen = other.pen();
00029 m_brush = other.brush();
00030
00031 return *this;
00032 }
00033
00034 GhostPath::~GhostPath()
00035 {
00036 }
00037
00038 QBrush GhostPath::brush() const
00039 {
00040 return m_brush;
00041 }
00042
00043 QPainterPath GhostPath::path() const
00044 {
00045 return m_path;
00046 }
00047
00048 QPen GhostPath::pen() const
00049 {
00050 return m_pen;
00051 }