Add shortcut key F
Bring the part widget of current hovered part to visible areamaster
parent
2b70f34d16
commit
c7ba9ef1a9
|
@ -68,6 +68,8 @@ Keyboard
|
|||
+----------------------+--------------------------------------------------------------------------+
|
||||
| E | Swith the Selected Nodes to Different Profile (Main / Side) |
|
||||
+----------------------+--------------------------------------------------------------------------+
|
||||
| F | Bring the part widget of current hovered part to visible area |
|
||||
+----------------------+--------------------------------------------------------------------------+
|
||||
|
||||
Mouse
|
||||
======
|
||||
|
|
|
@ -46,4 +46,5 @@ void initShortCuts(QWidget *widget, SkeletonGraphicsWidget *graphicsWidget)
|
|||
defineKey(Qt::Key_B, &SkeletonGraphicsWidget::shortcutSubdivedOrNotSelectedPart);
|
||||
defineKey(Qt::Key_U, &SkeletonGraphicsWidget::shortcutRoundEndOrNotSelectedPart);
|
||||
defineKey(Qt::Key_W, &SkeletonGraphicsWidget::shortcutToggleWireframe);
|
||||
defineKey(Qt::Key_F, &SkeletonGraphicsWidget::shortcutCheckPartComponent);
|
||||
}
|
||||
|
|
|
@ -2386,6 +2386,23 @@ void SkeletonGraphicsWidget::selectPartAll()
|
|||
}
|
||||
}
|
||||
|
||||
void SkeletonGraphicsWidget::shortcutCheckPartComponent()
|
||||
{
|
||||
QUuid choosenPartId;
|
||||
if (m_hoveredNodeItem) {
|
||||
const SkeletonNode *node = m_document->findNode(m_hoveredNodeItem->id());
|
||||
if (node)
|
||||
choosenPartId = node->partId;
|
||||
} else if (m_hoveredEdgeItem) {
|
||||
const SkeletonEdge *edge = m_document->findEdge(m_hoveredEdgeItem->id());
|
||||
if (edge)
|
||||
choosenPartId = edge->partId;
|
||||
}
|
||||
if (!choosenPartId.isNull()) {
|
||||
emit partComponentChecked(choosenPartId);
|
||||
}
|
||||
}
|
||||
|
||||
void SkeletonGraphicsWidget::selectAll()
|
||||
{
|
||||
unselectAll();
|
||||
|
|
|
@ -543,6 +543,7 @@ public slots:
|
|||
void shortcutXmirrorOnOrOffSelectedPart();
|
||||
void shortcutSubdivedOrNotSelectedPart();
|
||||
void shortcutRoundEndOrNotSelectedPart();
|
||||
void shortcutCheckPartComponent();
|
||||
private slots:
|
||||
void turnaroundImageReady();
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue