From e321ab11adea164ceffda07cc46c3c4a20e7cf1d Mon Sep 17 00:00:00 2001 From: Prathmesh Shukla Date: Fri, 20 Mar 2026 15:41:57 +0530 Subject: [PATCH] Remove unnecessary floating text toolbar label --- devel/222_63.md | 14 ++++++++++++++ src/Plugins/Qt/QTMTextToolbar.cpp | 4 ---- 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 devel/222_63.md diff --git a/devel/222_63.md b/devel/222_63.md new file mode 100644 index 0000000000..8467f9bd17 --- /dev/null +++ b/devel/222_63.md @@ -0,0 +1,14 @@ + +# #3019 Remove Redundant Text Toolbar Label + +### 2026/03/20 Removed Redundant "Text Toolbar" Label + +### What +Removed the hardcoded "文本工具栏" (Text Toolbar) label from the floating text toolbar. + +### Why +The label is unnecessary since the toolbar is self-explanatory through icons and does not respect UI language settings. + +### How +- Removed the QLabel creation in `QTMTextToolbar::rebuildButtonsFromScheme()` +- Removed unused `#include ` diff --git a/src/Plugins/Qt/QTMTextToolbar.cpp b/src/Plugins/Qt/QTMTextToolbar.cpp index 4e22f52cc0..3f076ffa78 100644 --- a/src/Plugins/Qt/QTMTextToolbar.cpp +++ b/src/Plugins/Qt/QTMTextToolbar.cpp @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -86,9 +85,6 @@ QTMTextToolbar::clearButtons () { void QTMTextToolbar::rebuildButtonsFromScheme () { clearButtons (); - QLabel* placeholder= new QLabel ("文本工具栏", this); - placeholder->setAlignment (Qt::AlignCenter); - layout->addWidget (placeholder); autoSize (); }