@@ -934,7 +934,7 @@ void AddGiftOptions(
934934 return s.replace (kStar , QChar ());
935935 };
936936 const auto &costPerMonthFont = st::shareBoxListItem.nameStyle .font ;
937- const auto &costTotalFont = st::normalFont;
937+ const auto &costPerYearFont = st::normalFont;
938938 const auto costPerMonthIcon = info.costPerMonth .startsWith (kStar )
939939 ? GenerateStars (costPerMonthFont->height , 1 )
940940 : QImage ();
@@ -951,14 +951,14 @@ void AddGiftOptions(
951951 ? info.costPerMonth
952952 : removedStar (info.costPerMonth )));
953953
954- const auto costTotalEntry = [&] {
955- if (!info.costTotal .startsWith (kStar )) {
954+ const auto costPerYearEntry = [&] {
955+ if (!info.costPerYear .startsWith (kStar )) {
956956 return QImage ();
957957 }
958- const auto text = removedStar (info.costTotal );
959- const auto icon = GenerateStars (costTotalFont ->height , 1 );
958+ const auto text = removedStar (info.costPerYear );
959+ const auto icon = GenerateStars (costPerYearFont ->height , 1 );
960960 auto result = QImage (
961- QSize (costTotalFont ->spacew + costTotalFont ->width (text), 0 )
961+ QSize (costPerYearFont ->spacew + costPerYearFont ->width (text), 0 )
962962 * style::DevicePixelRatio ()
963963 + icon.size (),
964964 QImage::Format_ARGB32_Premultiplied);
@@ -968,8 +968,8 @@ void AddGiftOptions(
968968 auto p = QPainter (&result);
969969 p.drawImage (0 , 0 , icon);
970970 p.setPen (st::windowSubTextFg);
971- p.setFont (costTotalFont );
972- auto copy = info.costTotal ;
971+ p.setFont (costPerYearFont );
972+ auto copy = info.costPerYear ;
973973 p.drawText (
974974 Rect (result.size () / style::DevicePixelRatio ()),
975975 text,
@@ -1077,12 +1077,12 @@ void AddGiftOptions(
10771077 : (costPerMonthFont->spacew
10781078 + costPerMonthIcon.width ()
10791079 / style::DevicePixelRatio ());
1080- const auto costTotalWidth = costTotalFont ->width (
1081- info.costTotal );
1080+ const auto costPerYearWidth = costPerYearFont ->width (
1081+ info.costPerYear );
10821082 const auto pos = perRect.translated (left, 0 ).topLeft ();
10831083 const auto availableWidth = row->width ()
10841084 - pos.x ()
1085- - costTotalWidth ;
1085+ - costPerYearWidth ;
10861086 costPerMonthLabel->draw (p, {
10871087 .position = pos,
10881088 .outerWidth = availableWidth,
@@ -1094,16 +1094,16 @@ void AddGiftOptions(
10941094
10951095 const auto totalRect = row->rect ()
10961096 - QMargins (0 , 0 , st.rowMargins .right (), 0 );
1097- if (costTotalEntry .isNull ()) {
1098- p.setFont (costTotalFont );
1099- p.drawText (totalRect, info.costTotal , style::al_right);
1097+ if (costPerYearEntry .isNull ()) {
1098+ p.setFont (costPerYearFont );
1099+ p.drawText (totalRect, info.costPerYear , style::al_right);
11001100 } else {
1101- const auto size = costTotalEntry .size ()
1101+ const auto size = costPerYearEntry .size ()
11021102 / style::DevicePixelRatio ();
11031103 p.drawImage (
11041104 totalRect.width () - size.width (),
11051105 (row->height () - size.height ()) / 2 ,
1106- costTotalEntry );
1106+ costPerYearEntry );
11071107 }
11081108 }, row->lifetime ());
11091109
0 commit comments