mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Slightly simplified Intro::Step::setDescriptionText.
This commit is contained in:
parent
9e18964e7f
commit
2b13fc9a24
2 changed files with 4 additions and 12 deletions
|
@ -294,15 +294,8 @@ void Step::setTitleText(rpl::producer<QString> titleText) {
|
||||||
_titleText = std::move(titleText);
|
_titleText = std::move(titleText);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Step::setDescriptionText(
|
void Step::setDescriptionText(v::text::data &&descriptionText) {
|
||||||
rpl::producer<QString> descriptionText) {
|
_descriptionText = v::text::take_marked(std::move(descriptionText));
|
||||||
setDescriptionText(
|
|
||||||
std::move(descriptionText) | Ui::Text::ToWithEntities());
|
|
||||||
}
|
|
||||||
|
|
||||||
void Step::setDescriptionText(
|
|
||||||
rpl::producer<TextWithEntities> richDescriptionText) {
|
|
||||||
_descriptionText = std::move(richDescriptionText);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Step::showFinished() {
|
void Step::showFinished() {
|
||||||
|
|
|
@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
|
|
||||||
#include "base/object_ptr.h"
|
#include "base/object_ptr.h"
|
||||||
#include "mtproto/sender.h"
|
#include "mtproto/sender.h"
|
||||||
|
#include "ui/text/text_variant.h"
|
||||||
#include "ui/rp_widget.h"
|
#include "ui/rp_widget.h"
|
||||||
#include "ui/effects/animations.h"
|
#include "ui/effects/animations.h"
|
||||||
|
|
||||||
|
@ -98,9 +99,7 @@ protected:
|
||||||
void resizeEvent(QResizeEvent *e) override;
|
void resizeEvent(QResizeEvent *e) override;
|
||||||
|
|
||||||
void setTitleText(rpl::producer<QString> titleText);
|
void setTitleText(rpl::producer<QString> titleText);
|
||||||
void setDescriptionText(rpl::producer<QString> descriptionText);
|
void setDescriptionText(v::text::data &&descriptionText);
|
||||||
void setDescriptionText(
|
|
||||||
rpl::producer<TextWithEntities> richDescriptionText);
|
|
||||||
bool paintAnimated(QPainter &p, QRect clip);
|
bool paintAnimated(QPainter &p, QRect clip);
|
||||||
|
|
||||||
void fillSentCodeData(const MTPDauth_sentCode &type);
|
void fillSentCodeData(const MTPDauth_sentCode &type);
|
||||||
|
|
Loading…
Add table
Reference in a new issue