00001 /****************************************************************************************************** 00002 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 00003 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 00004 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 00005 ******************************************************************************************************/ 00006 00007 #include "GhostEllipse.h" 00008 00009 GhostEllipse::GhostEllipse(const QRectF &rect, 00010 const QPen &pen, 00011 const QBrush &brush) : 00012 m_rect (rect), 00013 m_pen (pen), 00014 m_brush (brush) 00015 { 00016 } 00017 00018 GhostEllipse::GhostEllipse(const GhostEllipse &other) : 00019 m_rect (other.rect ()), 00020 m_pen (other.pen()), 00021 m_brush (other.brush()) 00022 { 00023 } 00024 00025 GhostEllipse &GhostEllipse::operator=(const GhostEllipse &other) 00026 { 00027 m_rect = other.rect(); 00028 m_pen = other.pen(); 00029 m_brush = other.brush(); 00030 00031 return *this; 00032 } 00033 00034 GhostEllipse::~GhostEllipse() 00035 { 00036 } 00037 00038 QBrush GhostEllipse::brush() const 00039 { 00040 return m_brush; 00041 } 00042 00043 QPen GhostEllipse::pen () const 00044 { 00045 return m_pen; 00046 } 00047 00048 QRectF GhostEllipse::rect() const 00049 { 00050 return m_rect; 00051 }