mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Beta version 4.5.4: Fix build with GCC.
This commit is contained in:
parent
94a956ce19
commit
12c2e42917
2 changed files with 0 additions and 16 deletions
|
@ -518,7 +518,6 @@ void SetupInterfaceScale(
|
||||||
? ScalePreviewShow::Update
|
? ScalePreviewShow::Update
|
||||||
: ScalePreviewShow::Show;
|
: ScalePreviewShow::Show;
|
||||||
*shown = true;
|
*shown = true;
|
||||||
auto index = 0;
|
|
||||||
for (auto i = 0; i != valuesCount; ++i) {
|
for (auto i = 0; i != valuesCount; ++i) {
|
||||||
if (values[i] <= scale
|
if (values[i] <= scale
|
||||||
&& (i + 1 == valuesCount || values[i + 1] > scale)) {
|
&& (i + 1 == valuesCount || values[i + 1] > scale)) {
|
||||||
|
|
|
@ -73,9 +73,6 @@ private:
|
||||||
void validateShadowCache();
|
void validateShadowCache();
|
||||||
|
|
||||||
[[nodiscard]] int scaled(int value) const;
|
[[nodiscard]] int scaled(int value) const;
|
||||||
[[nodiscard]] QPoint scaled(QPoint value) const;
|
|
||||||
[[nodiscard]] QSize scaled(QSize value) const;
|
|
||||||
[[nodiscard]] QRect scaled(QRect value) const;
|
|
||||||
[[nodiscard]] QMargins scaled(QMargins value) const;
|
[[nodiscard]] QMargins scaled(QMargins value) const;
|
||||||
[[nodiscard]] style::font scaled(
|
[[nodiscard]] style::font scaled(
|
||||||
const style::font &value, int size) const;
|
const style::font &value, int size) const;
|
||||||
|
@ -310,18 +307,6 @@ int Preview::scaled(int value) const {
|
||||||
return style::ConvertScale(value, _scale);
|
return style::ConvertScale(value, _scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
QPoint Preview::scaled(QPoint value) const {
|
|
||||||
return { scaled(value.x()), scaled(value.y()) };
|
|
||||||
}
|
|
||||||
|
|
||||||
QSize Preview::scaled(QSize value) const {
|
|
||||||
return { scaled(value.width()), scaled(value.height()) };
|
|
||||||
}
|
|
||||||
|
|
||||||
QRect Preview::scaled(QRect value) const {
|
|
||||||
return { scaled(value.topLeft()), scaled(value.size()) };
|
|
||||||
}
|
|
||||||
|
|
||||||
QMargins Preview::scaled(QMargins value) const {
|
QMargins Preview::scaled(QMargins value) const {
|
||||||
return {
|
return {
|
||||||
scaled(value.left()),
|
scaled(value.left()),
|
||||||
|
|
Loading…
Add table
Reference in a new issue