mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Moved MultiSelect to td_ui.
This commit is contained in:
parent
cd97495208
commit
964b0f4f79
3 changed files with 8 additions and 6 deletions
|
@ -1142,8 +1142,6 @@ PRIVATE
|
||||||
ui/image/image_location_factory.h
|
ui/image/image_location_factory.h
|
||||||
ui/widgets/level_meter.cpp
|
ui/widgets/level_meter.cpp
|
||||||
ui/widgets/level_meter.h
|
ui/widgets/level_meter.h
|
||||||
ui/widgets/multi_select.cpp
|
|
||||||
ui/widgets/multi_select.h
|
|
||||||
ui/countryinput.cpp
|
ui/countryinput.cpp
|
||||||
ui/countryinput.h
|
ui/countryinput.h
|
||||||
ui/empty_userpic.cpp
|
ui/empty_userpic.cpp
|
||||||
|
|
|
@ -365,14 +365,14 @@ void Item::prepareCache() {
|
||||||
if (!_cache.isNull()) return;
|
if (!_cache.isNull()) return;
|
||||||
|
|
||||||
Assert(!_visibility.animating());
|
Assert(!_visibility.animating());
|
||||||
auto cacheWidth = _width * kWideScale * cIntRetinaFactor();
|
auto cacheWidth = _width * kWideScale * style::DevicePixelRatio();
|
||||||
auto cacheHeight = _st.height * kWideScale * cIntRetinaFactor();
|
auto cacheHeight = _st.height * kWideScale * style::DevicePixelRatio();
|
||||||
auto data = QImage(
|
auto data = QImage(
|
||||||
cacheWidth,
|
cacheWidth,
|
||||||
cacheHeight,
|
cacheHeight,
|
||||||
QImage::Format_ARGB32_Premultiplied);
|
QImage::Format_ARGB32_Premultiplied);
|
||||||
data.fill(Qt::transparent);
|
data.fill(Qt::transparent);
|
||||||
data.setDevicePixelRatio(cRetinaFactor());
|
data.setDevicePixelRatio(style::DevicePixelRatio());
|
||||||
{
|
{
|
||||||
Painter p(&data);
|
Painter p(&data);
|
||||||
paintOnce(
|
paintOnce(
|
||||||
|
@ -774,7 +774,9 @@ void MultiSelect::Inner::paintEvent(QPaintEvent *e) {
|
||||||
auto paintRect = e->rect();
|
auto paintRect = e->rect();
|
||||||
p.fillRect(paintRect, _st.bg);
|
p.fillRect(paintRect, _st.bg);
|
||||||
|
|
||||||
auto offset = QPoint(rtl() ? _st.padding.right() : _st.padding.left(), _st.padding.top());
|
auto offset = QPoint(
|
||||||
|
style::RightToLeft() ? _st.padding.right() : _st.padding.left(),
|
||||||
|
_st.padding.top());
|
||||||
p.translate(offset);
|
p.translate(offset);
|
||||||
paintRect.translate(-offset);
|
paintRect.translate(-offset);
|
||||||
|
|
||||||
|
|
|
@ -221,6 +221,8 @@ PRIVATE
|
||||||
ui/widgets/continuous_sliders.h
|
ui/widgets/continuous_sliders.h
|
||||||
ui/widgets/discrete_sliders.cpp
|
ui/widgets/discrete_sliders.cpp
|
||||||
ui/widgets/discrete_sliders.h
|
ui/widgets/discrete_sliders.h
|
||||||
|
ui/widgets/multi_select.cpp
|
||||||
|
ui/widgets/multi_select.h
|
||||||
ui/widgets/sent_code_field.cpp
|
ui/widgets/sent_code_field.cpp
|
||||||
ui/widgets/sent_code_field.h
|
ui/widgets/sent_code_field.h
|
||||||
ui/widgets/separate_panel.cpp
|
ui/widgets/separate_panel.cpp
|
||||||
|
|
Loading…
Add table
Reference in a new issue