2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Added display of full filenames for documents in tooltips.

This commit is contained in:
23rd
2022-10-04 19:03:57 +03:00
committed by John Preston
parent c1b2d7ed4c
commit 38f5cda800
5 changed files with 77 additions and 2 deletions

View File

@@ -53,6 +53,10 @@ DocumentClickHandler::DocumentClickHandler(
reinterpret_cast<qulonglong>(_document.get()));
}
QString DocumentClickHandler::tooltip() const {
return property(kDocumentFilenameTooltipProperty).value<QString>();
}
DocumentOpenClickHandler::DocumentOpenClickHandler(
not_null<DocumentData*> document,
Fn<void(FullMsgId)> &&callback,

View File

@@ -33,6 +33,8 @@ public:
not_null<DocumentData*> document,
FullMsgId context = FullMsgId());
QString tooltip() const override;
[[nodiscard]] not_null<DocumentData*> document() const;
private: