mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Added ability to count sections widths of slider from derived class.
This commit is contained in:
parent
76b1288f77
commit
3699439506
1 changed files with 2 additions and 1 deletions
|
@ -127,13 +127,14 @@ protected:
|
||||||
|
|
||||||
void startRipple(int sectionIndex) override;
|
void startRipple(int sectionIndex) override;
|
||||||
|
|
||||||
|
std::vector<float64> countSectionsWidths(int newWidth) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const style::TextStyle &getLabelStyle() const override;
|
const style::TextStyle &getLabelStyle() const override;
|
||||||
int getAnimationDuration() const override;
|
int getAnimationDuration() const override;
|
||||||
QImage prepareRippleMask(int sectionIndex, const Section §ion);
|
QImage prepareRippleMask(int sectionIndex, const Section §ion);
|
||||||
|
|
||||||
void resizeSections(int newWidth);
|
void resizeSections(int newWidth);
|
||||||
std::vector<float64> countSectionsWidths(int newWidth) const;
|
|
||||||
|
|
||||||
const style::SettingsSlider &_st;
|
const style::SettingsSlider &_st;
|
||||||
std::optional<Ui::RoundRect> _bar;
|
std::optional<Ui::RoundRect> _bar;
|
||||||
|
|
Loading…
Add table
Reference in a new issue