mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Moved widget sliders to td_ui.
This commit is contained in:
@@ -1076,10 +1076,6 @@ PRIVATE
|
||||
ui/image/image_location.h
|
||||
ui/image/image_location_factory.cpp
|
||||
ui/image/image_location_factory.h
|
||||
ui/widgets/continuous_sliders.cpp
|
||||
ui/widgets/continuous_sliders.h
|
||||
ui/widgets/discrete_sliders.cpp
|
||||
ui/widgets/discrete_sliders.h
|
||||
ui/widgets/level_meter.cpp
|
||||
ui/widgets/level_meter.h
|
||||
ui/widgets/multi_select.cpp
|
||||
|
||||
@@ -174,7 +174,7 @@ void FilledSlider::paintEvent(QPaintEvent *e) {
|
||||
const auto disabled = isDisabled();
|
||||
const auto over = getCurrentOverFactor();
|
||||
const auto lineWidth = _st.lineWidth + ((_st.fullWidth - _st.lineWidth) * over);
|
||||
const auto lineWidthRounded = qFloor(lineWidth);
|
||||
const auto lineWidthRounded = std::floor(lineWidth);
|
||||
const auto lineWidthPartial = lineWidth - lineWidthRounded;
|
||||
const auto seekRect = getSeekRect();
|
||||
const auto value = getCurrentValue();
|
||||
|
||||
@@ -194,7 +194,7 @@ void SettingsSlider::resizeSections(int newWidth) {
|
||||
enumerateSections([&](Section §ion) {
|
||||
Expects(sectionWidth != sectionWidths.end());
|
||||
|
||||
section.left = qFloor(x) + skip;
|
||||
section.left = std::floor(x) + skip;
|
||||
x += *sectionWidth;
|
||||
section.width = qRound(x) - (section.left - skip);
|
||||
skip += _st.barSkip;
|
||||
|
||||
@@ -178,6 +178,10 @@ PRIVATE
|
||||
ui/toasts/common_toasts.cpp
|
||||
ui/toasts/common_toasts.h
|
||||
|
||||
ui/widgets/continuous_sliders.cpp
|
||||
ui/widgets/continuous_sliders.h
|
||||
ui/widgets/discrete_sliders.cpp
|
||||
ui/widgets/discrete_sliders.h
|
||||
ui/widgets/sent_code_field.cpp
|
||||
ui/widgets/sent_code_field.h
|
||||
ui/widgets/separate_panel.cpp
|
||||
|
||||
Reference in New Issue
Block a user