Selection fixes

This commit is contained in:
lupoDharkael
2018-04-19 09:16:30 +02:00
parent 205cd7c87b
commit c942383b00
2 changed files with 6 additions and 2 deletions

View File

@@ -503,10 +503,11 @@ void CaptureWidget::initPanel() {
void CaptureWidget::initSelection() {
m_selection = new SelectionWidget(m_uiColor, this);
m_selection->setVisible(false);
connect(m_selection, &SelectionWidget::animationEnded, this, [this](){
this->m_buttonHandler->updatePosition(this->m_selection->geometry());
});
m_selection->setVisible(false);
m_selection->setGeometry(QRect());
}
void CaptureWidget::initWidget() {
@@ -708,7 +709,9 @@ void CaptureWidget::updateCursor() {
default:
break;
}
} else if (m_selection->geometry().contains(m_context.mousePos)) {
} else if (m_selection->isVisible() &&
m_selection->geometry().contains(m_context.mousePos))
{
setCursor(Qt::OpenHandCursor);
} else {
setCursor(Qt::CrossCursor);