summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAdasauce <adasauce@with.parts>2020-02-20 11:57:16 -0400
committerAdasauce <adasauce@with.parts>2020-02-20 11:57:16 -0400
commit105366f2b90b6f495beb3f68afea348bf33bec4e (patch)
tree84e43b55b44a18956ae172746537feb20497c18b /src
parentAdd constexpr for the minimum formlayout width (diff)
downloadnheko-105366f2b90b6f495beb3f68afea348bf33bec4e.tar.xz
Clean up variable format
don't use members format camelCaseTail_
Diffstat (limited to 'src')
-rw-r--r--src/UserSettingsPage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp

index 4e134888..73da0169 100644 --- a/src/UserSettingsPage.cpp +++ b/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;