From 93c4c0884ee79b10bb421c087251c2c2f2995b18 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Sat, 12 Mar 2022 15:06:50 +0800 Subject: [PATCH] Gui: remove command description label in Customize -> Keyboard Because long description may cause undesired dialog layout changes. The description is available through tool tip of the command tree widget. --- src/Gui/DlgKeyboard.ui | 35 +---------------------------------- src/Gui/DlgKeyboardImp.cpp | 2 -- 2 files changed, 1 insertion(+), 36 deletions(-) diff --git a/src/Gui/DlgKeyboard.ui b/src/Gui/DlgKeyboard.ui index e8b484cda9..d50cff090f 100644 --- a/src/Gui/DlgKeyboard.ui +++ b/src/Gui/DlgKeyboard.ui @@ -13,7 +13,7 @@ Keyboard - + @@ -308,39 +308,6 @@ same time. The one with the highest prioirty will be triggered. - - - - QLayout::SetDefaultConstraint - - - - - - 0 - 0 - - - - Description: - - - - - - - - 0 - 0 - - - - - - - - - diff --git a/src/Gui/DlgKeyboardImp.cpp b/src/Gui/DlgKeyboardImp.cpp index 5b98e71090..27c1582b9a 100644 --- a/src/Gui/DlgKeyboardImp.cpp +++ b/src/Gui/DlgKeyboardImp.cpp @@ -391,8 +391,6 @@ void DlgCustomKeyboardImp::on_commandTreeWidget_currentItemChanged(QTreeWidgetIt ui->buttonAssign->setEnabled(!ui->editShortcut->text().isEmpty() && (ks != ks3)); ui->buttonReset->setEnabled((ks != ks2)); } - - ui->textLabelDescription->setText(Action::commandToolTip(cmd, false)); } /** Shows all commands of this category */