summary refs log tree commit diff
path: root/src/timeline/widgets/AudioItem.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2019-07-04 21:31:28 -0400
committerJoseph Donofry <joedonofry@gmail.com>2019-07-04 21:31:28 -0400
commit2484e0c11874cac06a18ab64e9e02e375d93a6dd (patch)
tree3abcafa6b08be16147751870042cf23e30978930 /src/timeline/widgets/AudioItem.cpp
parentFix deprecated function call issues with Qt 5.13 (diff)
downloadnheko-2484e0c11874cac06a18ab64e9e02e375d93a6dd.tar.xz
Fix formatting issues
Diffstat (limited to 'src/timeline/widgets/AudioItem.cpp')
-rw-r--r--src/timeline/widgets/AudioItem.cpp5
1 files changed, 3 insertions, 2 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);