We don't need to change the radius, so we can make it const
--HG-- branch : feature
This commit is contained in:
parent
ece2c42e5f
commit
0869c7fed4
|
@ -321,7 +321,7 @@ void VAbstractTool::AddRecord(const quint32 id, const Tool &toolType, VAbstractP
|
||||||
* @brief RefreshLine refresh line to label on scene.
|
* @brief RefreshLine refresh line to label on scene.
|
||||||
*/
|
*/
|
||||||
void VAbstractTool::RefreshLine(QGraphicsEllipseItem *point, VGraphicsSimpleTextItem *namePoint, QGraphicsLineItem *lineName,
|
void VAbstractTool::RefreshLine(QGraphicsEllipseItem *point, VGraphicsSimpleTextItem *namePoint, QGraphicsLineItem *lineName,
|
||||||
qreal radius, const QPen pen)
|
const qreal radius, const QPen pen)
|
||||||
{
|
{
|
||||||
QRectF nRec = namePoint->sceneBoundingRect();
|
QRectF nRec = namePoint->sceneBoundingRect();
|
||||||
nRec.translate(- point->scenePos());
|
nRec.translate(- point->scenePos());
|
||||||
|
|
|
@ -124,7 +124,7 @@ protected:
|
||||||
void ToolCreation(const Source &typeCreation);
|
void ToolCreation(const Source &typeCreation);
|
||||||
|
|
||||||
static void RefreshLine(QGraphicsEllipseItem *point, VGraphicsSimpleTextItem *namePoint, QGraphicsLineItem *lineName,
|
static void RefreshLine(QGraphicsEllipseItem *point, VGraphicsSimpleTextItem *namePoint, QGraphicsLineItem *lineName,
|
||||||
qreal radius, const QPen pen);
|
const qreal radius, const QPen pen);
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VAbstractTool)
|
Q_DISABLE_COPY(VAbstractTool)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user