diff --git a/src/Gui/DlgKeyboard.ui b/src/Gui/DlgKeyboard.ui index d50cff090f..0e8b9f0e27 100644 --- a/src/Gui/DlgKeyboard.ui +++ b/src/Gui/DlgKeyboard.ui @@ -33,8 +33,8 @@ 0 - - + + @@ -52,8 +52,8 @@ - - + + @@ -94,6 +94,37 @@ 0 + + + + Current shortcut: + + + + + + + true + + + + + + + + + &New shortcut: + + + editShortcut + + + + + + + + @@ -104,13 +135,6 @@ - - - - Current shortcut: - - - @@ -147,6 +171,24 @@ be treated as shorctcut key sequence 'F, F'. + + + + + 0 + 20 + + + + This list shows commands having the same shortcut in the priority from high +to low. If more than one command with the same shortcut are active at the +same time. The one with the highest prioirty will be triggered. + + + Shorcut priority list: + + + @@ -168,48 +210,6 @@ be treated as shorctcut key sequence 'F, F'. - - - - true - - - - - - - - - &New shortcut: - - - editShortcut - - - - - - - - - - - - - 0 - 20 - - - - This list shows commands having the same shortcut in the priority from high -to low. If more than one command with the same shortcut are active at the -same time. The one with the highest prioirty will be triggered. - - - Shorcut priority list: - - - @@ -328,11 +328,12 @@ same time. The one with the highest prioirty will be triggered. categoryBox commandTreeWidget accelLineEditShortcut + editShortcut + shortcutTimeout buttonAssign buttonClear buttonReset buttonResetAll - shortcutTimeout assignedTreeWidget buttonUp buttonDown diff --git a/src/Gui/DlgToolbars.ui b/src/Gui/DlgToolbars.ui index 8eebc76576..910985b748 100644 --- a/src/Gui/DlgToolbars.ui +++ b/src/Gui/DlgToolbars.ui @@ -42,6 +42,9 @@ + + + @@ -55,9 +58,6 @@ - - - @@ -331,7 +331,7 @@ - <html><head><meta name="qrichtext" content="1" /></head><body style=" white-space: pre-wrap; font-family:MS Shell Dlg 2; font-size:7.8pt; font-weight:400; font-style:normal; text-decoration:none;"><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"><span style=" font-weight:600;">Note:</span> The changes become active the next time you load the appropriate workbench</p></body></html> + <html><head><meta name="qrichtext" content="1" /></head><body style=" white-space: pre-wrap; font-size:7.8pt; font-weight:400; font-style:normal; text-decoration:none;"><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"><span style=" font-weight:600;">Note:</span> The changes become active the next time you load the appropriate workbench</p></body></html> diff --git a/src/Gui/DlgToolbarsImp.cpp b/src/Gui/DlgToolbarsImp.cpp index 1f1bbedf82..72c5b51ffa 100644 --- a/src/Gui/DlgToolbarsImp.cpp +++ b/src/Gui/DlgToolbarsImp.cpp @@ -209,7 +209,7 @@ void DlgCustomToolbars::importCustomToolbars(const QByteArray& name) auto* item = new QTreeWidgetItem(toplevel); item->setText(0, Action::commandMenuText(pCmd)); item->setToolTip(0, Action::commandToolTip(pCmd)); - item->setData(0, Qt::UserRole, QByteArray(it2->first.c_str())); + item->setData(0, Qt::UserRole, QByteArray(it2.first.c_str())); if (pCmd->getPixmap()) item->setIcon(0, BitmapFactory().iconFromTheme(pCmd->getPixmap())); item->setSizeHint(0, QSize(32, 32));