Fix build with GCC.
This commit is contained in:
parent
66532aaac5
commit
196447ac19
|
@ -19,7 +19,6 @@ namespace Dialogs::Stories {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
constexpr auto kSmallThumbsShown = 3;
|
constexpr auto kSmallThumbsShown = 3;
|
||||||
constexpr auto kSummaryExpandLeft = 1;
|
|
||||||
constexpr auto kPreloadPages = 2;
|
constexpr auto kPreloadPages = 2;
|
||||||
constexpr auto kExpandAfterRatio = 0.72;
|
constexpr auto kExpandAfterRatio = 0.72;
|
||||||
constexpr auto kCollapseAfterRatio = 0.68;
|
constexpr auto kCollapseAfterRatio = 0.68;
|
||||||
|
@ -276,9 +275,6 @@ void List::paintEvent(QPaintEvent *e) {
|
||||||
const auto photoTop = photoTopSmall
|
const auto photoTop = photoTopSmall
|
||||||
+ (full.photoTop - photoTopSmall) * layout.expandedRatio;
|
+ (full.photoTop - photoTopSmall) * layout.expandedRatio;
|
||||||
const auto photo = lerp(st.photo, full.photo);
|
const auto photo = lerp(st.photo, full.photo);
|
||||||
const auto summaryTop = st.nameTop
|
|
||||||
- (st.photoTop + (st.photo / 2.))
|
|
||||||
+ (photoTop + (photo / 2.));
|
|
||||||
const auto nameScale = _lastRatio;
|
const auto nameScale = _lastRatio;
|
||||||
const auto nameTop = full.nameTop
|
const auto nameTop = full.nameTop
|
||||||
+ (photoTop + photo - full.photoTop - full.photo);
|
+ (photoTop + photo - full.photoTop - full.photo);
|
||||||
|
@ -325,7 +321,6 @@ void List::paintEvent(QPaintEvent *e) {
|
||||||
const auto lookup = [&](int index) {
|
const auto lookup = [&](int index) {
|
||||||
const auto indexSmall = layout.startIndexSmall + index;
|
const auto indexSmall = layout.startIndexSmall + index;
|
||||||
const auto indexFull = layout.startIndexFull + index;
|
const auto indexFull = layout.startIndexFull + index;
|
||||||
const auto k = (photoTop - photoTopSmall);
|
|
||||||
const auto ySmall = photoTopSmall
|
const auto ySmall = photoTopSmall
|
||||||
+ ((photoTop - photoTopSmall)
|
+ ((photoTop - photoTopSmall)
|
||||||
* (kSmallThumbsShown - indexSmall + layout.smallSkip) / 0.5);
|
* (kSmallThumbsShown - indexSmall + layout.smallSkip) / 0.5);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user