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,
 | 
										lt_count,
 | 
				
			||||||
					count))
 | 
										count))
 | 
				
			||||||
			: QString()),
 | 
								: QString()),
 | 
				
			||||||
		.text = (pin
 | 
							.text = { (pin
 | 
				
			||||||
			? (count == 1
 | 
								? (count == 1
 | 
				
			||||||
				? tr::lng_mediaview_pin_story_about(tr::now)
 | 
									? tr::lng_mediaview_pin_story_about(tr::now)
 | 
				
			||||||
				: tr::lng_mediaview_pin_stories_about(
 | 
									: tr::lng_mediaview_pin_stories_about(
 | 
				
			||||||
| 
						 | 
					@ -1843,7 +1843,7 @@ Ui::Toast::Config PrepareTogglePinToast(
 | 
				
			||||||
				: tr::lng_mediaview_unpin_stories_done(
 | 
									: tr::lng_mediaview_unpin_stories_done(
 | 
				
			||||||
					tr::now,
 | 
										tr::now,
 | 
				
			||||||
					lt_count,
 | 
										lt_count,
 | 
				
			||||||
					count))),
 | 
										count))) },
 | 
				
			||||||
		.st = &st::storiesActionToast,
 | 
							.st = &st::storiesActionToast,
 | 
				
			||||||
		.duration = (pin
 | 
							.duration = (pin
 | 
				
			||||||
			? Data::Stories::kInProfileToastDuration
 | 
								? Data::Stories::kInProfileToastDuration
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,6 +18,8 @@ DiscreteSlider::DiscreteSlider(QWidget *parent, bool snapToLabel)
 | 
				
			||||||
	setCursor(style::cur_pointer);
 | 
						setCursor(style::cur_pointer);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					DiscreteSlider::~DiscreteSlider() = default;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void DiscreteSlider::setActiveSection(int index) {
 | 
					void DiscreteSlider::setActiveSection(int index) {
 | 
				
			||||||
	_activeIndex = index;
 | 
						_activeIndex = index;
 | 
				
			||||||
	activateCallback();
 | 
						activateCallback();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -19,6 +19,7 @@ class RippleAnimation;
 | 
				
			||||||
class DiscreteSlider : public RpWidget {
 | 
					class DiscreteSlider : public RpWidget {
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
	DiscreteSlider(QWidget *parent, bool snapToLabel);
 | 
						DiscreteSlider(QWidget *parent, bool snapToLabel);
 | 
				
			||||||
 | 
						~DiscreteSlider();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	void addSection(const QString &label);
 | 
						void addSection(const QString &label);
 | 
				
			||||||
	void setSections(const std::vector<QString> &labels);
 | 
						void setSections(const std::vector<QString> &labels);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue