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:
@@ -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,
|
||||
|
@@ -33,6 +33,8 @@ public:
|
||||
not_null<DocumentData*> document,
|
||||
FullMsgId context = FullMsgId());
|
||||
|
||||
QString tooltip() const override;
|
||||
|
||||
[[nodiscard]] not_null<DocumentData*> document() const;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user