| 928 | } |
| 929 | |
| 930 | void PeerListRow::paintUserpic( |
| 931 | Painter &p, |
| 932 | const style::PeerListItem &st, |
| 933 | int x, |
| 934 | int y, |
| 935 | int outerWidth) { |
| 936 | if (_disabledState == State::DisabledChecked) { |
| 937 | paintDisabledCheckUserpic(p, st, x, y, outerWidth); |
| 938 | } else if (_checkbox) { |
| 939 | _checkbox->paint(p, x, y, outerWidth); |
| 940 | } else if (const auto callback = generatePaintUserpicCallback(false)) { |
| 941 | callback(p, x, y, outerWidth, st.photoSize); |
| 942 | } |
| 943 | paintUserpicOverlay(p, st, x, y, outerWidth); |
| 944 | } |
| 945 | |
| 946 | // Emulates Ui::RoundImageCheckbox::paint() in a checked state. |
| 947 | void PeerListRow::paintDisabledCheckUserpic( |
no test coverage detected