mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-20 23:27:23 +00:00
Moved widget sliders to td_ui.
This commit is contained in:
parent
c15ba7d23a
commit
30681e2e58
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user