mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Clean up variable format
don't use members format camelCaseTail_
This commit is contained in:
parent
f86cbbe16a
commit
105366f2b9
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue