Fix double click to select all
parent
12e7eacea2
commit
cd963fa87d
|
@ -1485,6 +1485,11 @@ bool SkeletonGraphicsWidget::mousePress(QMouseEvent* event)
|
||||||
if (processed) {
|
if (processed) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
} else if (Document::EditMode::Pick == m_document->editMode) {
|
||||||
|
if (m_hoveredNodeItem) {
|
||||||
|
dust3dDebug << "nodePicked:" << m_hoveredNodeItem->id().toString();
|
||||||
|
emit nodePicked(m_hoveredNodeItem->id());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1531,7 +1536,8 @@ QPointF SkeletonGraphicsWidget::scenePosFromUnified(QPointF pos)
|
||||||
bool SkeletonGraphicsWidget::mouseDoubleClick(QMouseEvent* event)
|
bool SkeletonGraphicsWidget::mouseDoubleClick(QMouseEvent* event)
|
||||||
{
|
{
|
||||||
if (m_hoveredNodeItem || m_hoveredEdgeItem) {
|
if (m_hoveredNodeItem || m_hoveredEdgeItem) {
|
||||||
selectPartAll();
|
if (Document::EditMode::Select == m_document->editMode)
|
||||||
|
selectPartAll();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (QGuiApplication::queryKeyboardModifiers().testFlag(Qt::ControlModifier)) {
|
if (QGuiApplication::queryKeyboardModifiers().testFlag(Qt::ControlModifier)) {
|
||||||
|
|
|
@ -76,6 +76,7 @@ signals:
|
||||||
void shortcutToggleFlatShading();
|
void shortcutToggleFlatShading();
|
||||||
void shortcutToggleRotation();
|
void shortcutToggleRotation();
|
||||||
void loadedTurnaroundImageChanged();
|
void loadedTurnaroundImageChanged();
|
||||||
|
void nodePicked(const dust3d::Uuid& nodeId);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SkeletonGraphicsWidget(const Document* document);
|
SkeletonGraphicsWidget(const Document* document);
|
||||||
|
|
Loading…
Reference in New Issue