[TD]default LineFormat ctor

This commit is contained in:
wandererfan
2022-09-06 14:35:59 -04:00
committed by WandererFan
parent 24c6e9ada1
commit 2dfc8667b6
2 changed files with 13 additions and 4 deletions

View File

@@ -74,6 +74,14 @@ using namespace std;
#define COSMETICEDGE 1
#define CENTERLINE 2
LineFormat::LineFormat()
{
m_style = getDefEdgeStyle();
m_weight = getDefEdgeWidth();
m_color= getDefEdgeColor();
m_visible = true;
}
LineFormat::LineFormat(int style,
double weight,
App::Color color,

View File

@@ -44,10 +44,11 @@ class DrawViewPart;
class TechDrawExport LineFormat
{
public:
LineFormat(int style = getDefEdgeStyle(),
double weight = getDefEdgeWidth(),
App::Color color = getDefEdgeColor(),
bool visible = true);
LineFormat();
LineFormat(int style,
double weight,
App::Color color,
bool visible);
~LineFormat() = default;
int m_style;