| 384 | inline constexpr bool is_flag_type(Flag) { return true; } |
| 385 | |
| 386 | void 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 | |
| 399 | template <typename PaintItemCallback> |
| 400 | void PaintRow( |
no test coverage detected