Commit 39075c7
committed
tdf#130857 qt weld: Implement TreeView tooltip handling
Handle the QEvent::ToolTip event for the
QTreeView's viewport. Retrieve the tooltip
for the item using weld::TreeView::signal_query_tooltip
and display it if it's non-empty.
This makes the file path of the corresponding template
show up when hovering over an item in the
"File" -> "Templates" -> "Manage Templates" dialog
with the list view mode enabled with
SAL_VCL_QT_USE_WELDED_WIDGETS=1, in a WIP branch
where support for that dialog using native Qt widgets
is declared.
Change-Id: Ia849a9fa6506ffbd2d74be00600e0a694f1b9efd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190317
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>1 parent d93fc2b commit 39075c7
2 files changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
| |||
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
1097 | 1101 | | |
1098 | 1102 | | |
1099 | 1103 | | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1100 | 1112 | | |
1101 | 1113 | | |
1102 | 1114 | | |
| |||
1158 | 1170 | | |
1159 | 1171 | | |
1160 | 1172 | | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
1161 | 1190 | | |
1162 | 1191 | | |
1163 | 1192 | | |
| |||
0 commit comments