Moved widget sliders to td_ui.

This commit is contained in:
23rd 2021-10-18 18:54:45 +03:00
parent c15ba7d23a
commit 30681e2e58
4 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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();

View File

@ -194,7 +194,7 @@ void SettingsSlider::resizeSections(int newWidth) {
enumerateSections([&](Section &section) {
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;

View File

@ -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