mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +02:00
Added amount of total voters to poll results with multiple answers.
Fixed #28879.
This commit is contained in:
parent
28a79bfccb
commit
db9e60b4b5
1 changed files with 12 additions and 5 deletions
|
@ -17,6 +17,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "ui/wrap/vertical_layout.h"
|
||||
#include "ui/wrap/slide_wrap.h"
|
||||
#include "ui/text/text_utilities.h"
|
||||
#include "ui/vertical_list.h"
|
||||
#include "boxes/peer_list_box.h"
|
||||
#include "main/main_session.h"
|
||||
#include "history/history.h"
|
||||
|
@ -610,11 +611,17 @@ void InnerWidget::setupContent() {
|
|||
_content,
|
||||
rpl::single(_poll->question),
|
||||
st::pollResultsQuestion),
|
||||
style::margins{
|
||||
st::boxRowPadding.left(),
|
||||
0,
|
||||
st::boxRowPadding.right(),
|
||||
st::boxMediumSkip });
|
||||
st::boxRowPadding);
|
||||
Ui::AddSkip(_content, st::boxLittleSkip / 2);
|
||||
_content->add(
|
||||
object_ptr<Ui::FlatLabel>(
|
||||
_content,
|
||||
tr::lng_polls_votes_count(
|
||||
lt_count_decimal,
|
||||
rpl::single(float64(_poll->totalVoters))),
|
||||
st::boxDividerLabel),
|
||||
st::boxRowPadding);
|
||||
Ui::AddSkip(_content, st::boxLittleSkip);
|
||||
for (const auto &answer : _poll->answers) {
|
||||
const auto session = &_controller->session();
|
||||
const auto controller = CreateAnswerRows(
|
||||
|
|
Loading…
Add table
Reference in a new issue