2
0
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:
John Preston
2015-12-13 01:29:33 +03:00
parent 603fb63c91
commit 2225abec5c
15 changed files with 721 additions and 383 deletions

View File

@@ -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());