Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions devel/222_63.md
Original file line number Diff line number Diff line change
@@ -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 <QLabel>`
4 changes: 0 additions & 4 deletions src/Plugins/Qt/QTMTextToolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <QGuiApplication>
#include <QHelpEvent>
#include <QIcon>
#include <QLabel>
#include <QLayoutItem>
#include <QPainter>
#include <QPen>
Expand Down Expand Up @@ -86,9 +85,6 @@ QTMTextToolbar::clearButtons () {
void
QTMTextToolbar::rebuildButtonsFromScheme () {
clearButtons ();
QLabel* placeholder= new QLabel ("文本工具栏", this);
placeholder->setAlignment (Qt::AlignCenter);
layout->addWidget (placeholder);
autoSize ();
}

Expand Down
Loading