summary refs log tree commit diff
path: root/src/timeline/widgets/FileItem.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/FileItem.cpp
parentFix deprecated function call issues with Qt 5.13 (diff)
downloadnheko-2484e0c11874cac06a18ab64e9e02e375d93a6dd.tar.xz
Fix formatting issues
Diffstat (limited to 'src/timeline/widgets/FileItem.cpp')
-rw-r--r--src/timeline/widgets/FileItem.cpp5
1 files changed, 3 insertions, 2 deletions
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);