MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / PaintDialogDate

Function PaintDialogDate

Telegram/SourceFiles/dialogs/ui/dialogs_layout.cpp:386–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384inline constexpr bool is_flag_type(Flag) { return true; }
385
386void PaintDialogDate(
387 QPainter &p,
388 not_null<const Entry*> entry,
389 const FakeRow *fakeRow,
390 TimeId date,
391 QRect &rectForName,
392 const PaintContext &context) {
393 const auto resolved = fakeRow
394 ? fakeRow->dateText(date, context.now)
395 : entry->chatListTimestampText(date, context.now);
396 PaintRowTopRight(p, resolved.text, rectForName, context, resolved.width);
397}
398
399template <typename PaintItemCallback>
400void PaintRow(

Callers 1

PaintRowFunction · 0.85

Calls 3

PaintRowTopRightFunction · 0.85
dateTextMethod · 0.80
chatListTimestampTextMethod · 0.80

Tested by

no test coverage detected