Hookup line and fill color buttons in object editor.
This commit is contained in:
@@ -111,9 +111,8 @@ namespace glabels
|
||||
}
|
||||
|
||||
|
||||
ColorNode ColorButton::getColorNode( bool& isDefault )
|
||||
ColorNode ColorButton::colorNode()
|
||||
{
|
||||
isDefault = mIsDefault;
|
||||
return mColorNode;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace glabels
|
||||
void setColorNode( ColorNode colorNode );
|
||||
void setColor( QColor color );
|
||||
void setToDefault();
|
||||
ColorNode getColorNode( bool& isDefault );
|
||||
ColorNode colorNode();
|
||||
void setKeys( const QList<QString> keyList );
|
||||
void clearKeys();
|
||||
|
||||
|
||||
@@ -140,11 +140,13 @@ namespace glabels
|
||||
void ObjectEditor::onLineControlsChanged()
|
||||
{
|
||||
mObject->setLineWidth( lineWidthSpin->value() );
|
||||
mObject->setLineColorNode( lineColorButton->colorNode() );
|
||||
}
|
||||
|
||||
|
||||
void ObjectEditor::onFillControlsChanged()
|
||||
{
|
||||
mObject->setFillColorNode( fillColorButton->colorNode() );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user