summary refs log tree commit diff
path: root/src/UserSettingsPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/UserSettingsPage.cpp')
-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;