mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix build for Xcode.
This commit is contained in:
parent
e6ba85e112
commit
9caff93c35
3 changed files with 5 additions and 2 deletions
|
@ -1831,7 +1831,7 @@ Ui::Toast::Config PrepareTogglePinToast(
|
|||
lt_count,
|
||||
count))
|
||||
: QString()),
|
||||
.text = (pin
|
||||
.text = { (pin
|
||||
? (count == 1
|
||||
? tr::lng_mediaview_pin_story_about(tr::now)
|
||||
: tr::lng_mediaview_pin_stories_about(
|
||||
|
@ -1843,7 +1843,7 @@ Ui::Toast::Config PrepareTogglePinToast(
|
|||
: tr::lng_mediaview_unpin_stories_done(
|
||||
tr::now,
|
||||
lt_count,
|
||||
count))),
|
||||
count))) },
|
||||
.st = &st::storiesActionToast,
|
||||
.duration = (pin
|
||||
? Data::Stories::kInProfileToastDuration
|
||||
|
|
|
@ -18,6 +18,8 @@ DiscreteSlider::DiscreteSlider(QWidget *parent, bool snapToLabel)
|
|||
setCursor(style::cur_pointer);
|
||||
}
|
||||
|
||||
DiscreteSlider::~DiscreteSlider() = default;
|
||||
|
||||
void DiscreteSlider::setActiveSection(int index) {
|
||||
_activeIndex = index;
|
||||
activateCallback();
|
||||
|
|
|
@ -19,6 +19,7 @@ class RippleAnimation;
|
|||
class DiscreteSlider : public RpWidget {
|
||||
public:
|
||||
DiscreteSlider(QWidget *parent, bool snapToLabel);
|
||||
~DiscreteSlider();
|
||||
|
||||
void addSection(const QString &label);
|
||||
void setSections(const std::vector<QString> &labels);
|
||||
|
|
Loading…
Add table
Reference in a new issue