mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-20 08:03:45 +08:00
Mark the floating jump buttons as overlays in the Tab chain
This commit is contained in:
committed by
John Preston
parent
4fc925acd7
commit
bcf085bb6c
@@ -1192,8 +1192,10 @@ void Widget::scrollToDefaultChecked(bool verytop) {
|
||||
|
||||
void Widget::setupScrollUpButton() {
|
||||
// The button floats over the bottom of the list, but it is created long
|
||||
// before it, so the scroll has to order the two by position.
|
||||
// before it, so the scroll has to order the two - and it is an overlay,
|
||||
// not something laid out beside the list.
|
||||
_scroll->setVisualTabOrder(true);
|
||||
_scrollToTop->setVisualTabOrderOverlay(true);
|
||||
|
||||
_scrollToTop->setClickedCallback([=] { scrollToDefaultChecked(); });
|
||||
_scrollToTop->setAccessibleName(tr::lng_sr_scroll_to_top(tr::now));
|
||||
|
||||
@@ -81,8 +81,9 @@ CornerButtons::CornerButtons(
|
||||
_column.setAttribute(Qt::WA_TransparentForMouseEvents);
|
||||
_column.show();
|
||||
_column.setVisualTabOrder(true);
|
||||
_column.setVisualTabOrderOverlay(true);
|
||||
if (const auto scroll = qobject_cast<Ui::RpWidget*>(_parent.get())) {
|
||||
// Without this the column, created before the list, would come first.
|
||||
// Otherwise the column, created before the list, would come first.
|
||||
scroll->setVisualTabOrder(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user