mirror of
https://github.com/vale981/tdesktop
synced 2025-03-09 04:26:42 -04:00
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
/*
|
|
This file is part of Telegram Desktop,
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
For license and copyright information please follow this link:
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
*/
|
|
#include "history/history_media.h"
|
|
|
|
#include "history/history_item.h"
|
|
#include "storage/storage_shared_media.h"
|
|
|
|
Storage::SharedMediaTypesMask HistoryMedia::sharedMediaTypes() const {
|
|
return {};
|
|
}
|
|
|
|
bool HistoryMedia::isDisplayed() const {
|
|
return !_parent->isHiddenByGroup();
|
|
}
|
|
|
|
QSize HistoryMedia::countCurrentSize(int newWidth) {
|
|
return QSize(qMin(newWidth, maxWidth()), minHeight());
|
|
}
|
|
|
|
TextSelection HistoryMedia::skipSelection(TextSelection selection) const {
|
|
return internal::unshiftSelection(selection, fullSelectionLength());
|
|
}
|
|
|
|
TextSelection HistoryMedia::unskipSelection(TextSelection selection) const {
|
|
return internal::shiftSelection(selection, fullSelectionLength());
|
|
}
|
|
|
|
HistoryTextState HistoryMedia::getStateGrouped(
|
|
const QRect &geometry,
|
|
QPoint point,
|
|
HistoryStateRequest request) const {
|
|
Unexpected("Grouping method call.");
|
|
}
|