mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
voice messages and shared contacts redesigned (contacts not realtime-updated yet)
This commit is contained in:
@@ -1527,9 +1527,11 @@ void HistoryInner::onUpdateSelected() {
|
||||
App::mousedItem(item);
|
||||
m = mapMouseToItem(point, item);
|
||||
if (item->hasPoint(m.x(), m.y())) {
|
||||
redrawItem(App::hoveredItem());
|
||||
App::hoveredItem(item);
|
||||
redrawItem(App::hoveredItem());
|
||||
if (App::hoveredItem() != item) {
|
||||
redrawItem(App::hoveredItem());
|
||||
App::hoveredItem(item);
|
||||
redrawItem(App::hoveredItem());
|
||||
}
|
||||
} else if (App::hoveredItem()) {
|
||||
redrawItem(App::hoveredItem());
|
||||
App::hoveredItem(0);
|
||||
@@ -1670,7 +1672,7 @@ void HistoryInner::onUpdateSelected() {
|
||||
_widget->noSelectingScroll();
|
||||
}
|
||||
|
||||
if (lnkChanged || cur != _cursor) {
|
||||
if (_dragAction == NoDrag && (lnkChanged || cur != _cursor)) {
|
||||
setCursor(_cursor = cur);
|
||||
}
|
||||
}
|
||||
@@ -5608,6 +5610,12 @@ void HistoryWidget::notify_redrawHistoryItem(const HistoryItem *item) {
|
||||
}
|
||||
}
|
||||
|
||||
void HistoryWidget::notify_historyItemLayoutChanged(const HistoryItem *item) {
|
||||
if (_peer && _list && (item == App::mousedItem() || item == App::hoveredItem() || item == App::hoveredLinkItem())) {
|
||||
_list->onUpdateSelected();
|
||||
}
|
||||
}
|
||||
|
||||
void HistoryWidget::resizeEvent(QResizeEvent *e) {
|
||||
_reportSpamPanel.resize(width(), _reportSpamPanel.height());
|
||||
|
||||
|
Reference in New Issue
Block a user