Skip to content

Commit 9d29495

Browse files
committed
Fix CLang-Tidy warnings
1 parent d56fd10 commit 9d29495

File tree

1 file changed

+2
-2
lines changed
  • plugins/robots/common/twoDModel/src/engine/view/parts

1 file changed

+2
-2
lines changed

plugins/robots/common/twoDModel/src/engine/view/parts/ruler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ void Ruler::setOrientation(Qt::Orientation orientation)
5252
const QString theLongestText = "-123.45"; // The longest text that ruler must place into itself.
5353
const QSizeF theLargestSize = textBoundingRect(theLongestText).size();
5454
if (orientation == Qt::Horizontal) {
55-
setFixedHeight(theLargestSize.height() + 2 * gap);
55+
setFixedHeight(static_cast<int>(theLargestSize.height() + 2 * gap));
5656
} else {
57-
setFixedWidth(theLargestSize.width() + 2 * gap);
57+
setFixedWidth(static_cast<int>(theLargestSize.width() + 2 * gap));
5858
}
5959
}
6060

0 commit comments

Comments
 (0)