diff options
author | Joseph Donofry <joedonofry@gmail.com> | 2019-07-04 21:31:28 -0400 |
---|---|---|
committer | Joseph Donofry <joedonofry@gmail.com> | 2019-07-04 21:31:28 -0400 |
commit | 2484e0c11874cac06a18ab64e9e02e375d93a6dd (patch) | |
tree | 3abcafa6b08be16147751870042cf23e30978930 /src/timeline/widgets | |
parent | Fix deprecated function call issues with Qt 5.13 (diff) | |
download | nheko-2484e0c11874cac06a18ab64e9e02e375d93a6dd.tar.xz |
Fix formatting issues
Diffstat (limited to 'src/timeline/widgets')
-rw-r--r-- | src/timeline/widgets/AudioItem.cpp | 5 | ||||
-rw-r--r-- | src/timeline/widgets/FileItem.cpp | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/timeline/widgets/AudioItem.cpp b/src/timeline/widgets/AudioItem.cpp index 8cc2ba8f..7ce9bf9a 100644 --- a/src/timeline/widgets/AudioItem.cpp +++ b/src/timeline/widgets/AudioItem.cpp @@ -162,8 +162,9 @@ AudioItem::resizeEvent(QResizeEvent *event) font.setWeight(QFont::Medium); QFontMetrics fm(font); - const int computedWidth = std::min( - fm.horizontalAdvance(text_) + 2 * IconRadius + VerticalPadding * 2 + TextPadding, (double)MaxWidth); + const int computedWidth = + std::min(fm.horizontalAdvance(text_) + 2 * IconRadius + VerticalPadding * 2 + TextPadding, + (double)MaxWidth); resize(computedWidth, Height); diff --git a/src/timeline/widgets/FileItem.cpp b/src/timeline/widgets/FileItem.cpp index 903fc4b2..3ae76913 100644 --- a/src/timeline/widgets/FileItem.cpp +++ b/src/timeline/widgets/FileItem.cpp @@ -153,8 +153,9 @@ FileItem::resizeEvent(QResizeEvent *event) font.setWeight(QFont::Medium); QFontMetrics fm(font); - const int computedWidth = std::min( - fm.horizontalAdvance(text_) + 2 * IconRadius + VerticalPadding * 2 + TextPadding, (double)MaxWidth); + const int computedWidth = + std::min(fm.horizontalAdvance(text_) + 2 * IconRadius + VerticalPadding * 2 + TextPadding, + (double)MaxWidth); resize(computedWidth, Height); |