Clean up variable format

don't use members format camelCaseTail_
This commit is contained in:
Adasauce 2020-02-20 11:57:16 -04:00
parent f86cbbe16a
commit 105366f2b9
No known key found for this signature in database
GPG key ID: B4FD3151235211CB

View file

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