Some style cleanup.

This commit is contained in:
Jim Evins
2013-12-21 23:47:59 -05:00
parent 5c74625a97
commit f1de981804
16 changed files with 951 additions and 326 deletions
+77
View File
@@ -28,6 +28,83 @@
namespace glabels
{
LabelModelBoxObject::LabelModelBoxObject( QObject* parent ) : LabelModelObject(parent)
{
/* TODO: initialize default line and fill poperties. */
}
LabelModelBoxObject::~LabelModelBoxObject()
{
}
double LabelModelBoxObject::lineWidth( void ) const
{
return mLineWidth;
}
void LabelModelBoxObject::setLineWidth( double value )
{
if ( mLineWidth != value )
{
mLineWidth = value;
emit changed();
}
}
ColorNode LabelModelBoxObject::lineColorNode( void ) const
{
return mLineColorNode;
}
void LabelModelBoxObject::setLineColorNode( const ColorNode& value )
{
if ( mLineColorNode != value )
{
mLineColorNode = value;
emit changed();
}
}
ColorNode LabelModelBoxObject::fillColorNode( void ) const
{
return mFillColorNode;
}
void LabelModelBoxObject::setFillColorNode( const ColorNode& value )
{
if ( mFillColorNode != value )
{
mFillColorNode = value;
emit changed();
}
}
bool LabelModelBoxObject::canFill()
{
return true;
}
bool LabelModelBoxObject::canLineColor()
{
return true;
}
bool LabelModelBoxObject::canLineWidth()
{
return true;
}
// Create QGraphicsItem suitable for representing this object
QGraphicsItem* LabelModelBoxObject::createGraphicsItem()
{