Clean up variable format

don't use members format camelCaseTail_
usersettings-formlayout
Adasauce 5 years ago
parent f86cbbe16a
commit 105366f2b9
Signed by: adasauce
GPG Key ID: B4FD3151235211CB
  1. 8
      src/UserSettingsPage.cpp

@ -435,12 +435,12 @@ UserSettingsPage::showEvent(QShowEvent *)
void
UserSettingsPage::resizeEvent(QResizeEvent *event)
{
auto preWidth_ = width();
auto preWidth = width();
if (preWidth_ * 0.5 > LayoutMinWidth)
sideMargin_ = preWidth_ * 0.25;
if (preWidth * 0.5 > LayoutMinWidth)
sideMargin_ = preWidth * 0.25;
else
sideMargin_ = static_cast<double>(preWidth_ - LayoutMinWidth) / 2.;
sideMargin_ = static_cast<double>(preWidth - LayoutMinWidth) / 2.;
if (sideMargin_ < 60)
sideMargin_ = 0;

Loading…
Cancel
Save