Changed the type of the MLRenderingColorPicker::setColor from reference to object. No need for ref for small Qt object.

This commit is contained in:
Paolo Cignoni cignoni 2016-07-16 09:43:08 +00:00
parent 1782f419db
commit ec12c5fcfe
2 changed files with 4 additions and 4 deletions

View File

@ -884,7 +884,7 @@ void MLRenderingColorPicker::initGui()
connect(_cbutton,SIGNAL(clicked()),this,SLOT(pickColor()));
}
void MLRenderingColorPicker::setColor( QColor& def )
void MLRenderingColorPicker::setColor( QColor def )
{
_act->setColor(def);
updateColorInfo();
@ -953,7 +953,7 @@ void MLRenderingBBoxColorPicker::initGui()
connect(_cbutton,SIGNAL(clicked()),this,SLOT(pickColor()));
}
void MLRenderingBBoxColorPicker::setColor( QColor& def )
void MLRenderingBBoxColorPicker::setColor( QColor def )
{
_act->setColor(def);
updateColorInfo();

View File

@ -42,7 +42,7 @@ public:
MLRenderingColorPicker(MLRenderingData::PRIMITIVE_MODALITY pr,QWidget *p);
~MLRenderingColorPicker();
void setColor(QColor& def);
void setColor(QColor def);
//protected:
// void paintEvent( QPaintEvent * );
protected:
@ -66,7 +66,7 @@ public:
MLRenderingBBoxColorPicker(int meshid,QWidget* parent);
~MLRenderingBBoxColorPicker();
void setColor(QColor& def);
void setColor(QColor def);
protected:
void initGui();
void updateColorInfo();