Commit 2c6d449
committed
Fix: Add elision and tooltip for long placeholder text in DLineEditEx
When the font size is large or the placeholder text is too long, the text
would previously wrap or display abnormally. This change ensures that:
1. The text is forced to be single line.
2. The text is elided with '...' at the right if it exceeds the widget width.
3. A tooltip with the full text is shown when the text is elided.
Log: 修复当字体较大时 placeholder 文本显示异常的问题,增加省略号和 ToolTip 提示。
Pms: BUG-3226391 parent 9da746c commit 2c6d449
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
150 | 162 | | |
151 | 163 | | |
152 | 164 | | |
| |||
0 commit comments