Dev bubble pointers (#2638)
* adding a simple line as a test * replacing line with pointer * remove commented out lines * code format * fixed the 'QPainterPath path' error * make pointers more pointy * comment and variable name Co-authored-by: Mehrad Mahmoudian <m.mahmoudian@gmail.com>
This commit is contained in:
@@ -562,19 +562,11 @@ bool CaptureWidget::startDrawObjectTool(const QPoint& pos)
|
||||
m_context.mousePos = pos;
|
||||
m_activeTool->drawStart(m_context);
|
||||
// TODO this is the wrong place to do this
|
||||
|
||||
if (m_activeTool->type() == CaptureTool::TYPE_CIRCLECOUNT) {
|
||||
// While it is based on AbstractTwoPointTool it has the only one
|
||||
// point and shouldn't wait for second point and move event
|
||||
m_activeTool->drawEnd(m_context.mousePos);
|
||||
|
||||
m_activeTool->setCount(m_context.circleCount++);
|
||||
|
||||
m_captureToolObjectsBackup = m_captureToolObjects;
|
||||
m_captureToolObjects.append(m_activeTool);
|
||||
pushObjectsStateToUndoStack();
|
||||
releaseActiveTool();
|
||||
m_mouseIsClicked = false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user