We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d56fd10 commit 9d29495Copy full SHA for 9d29495
plugins/robots/common/twoDModel/src/engine/view/parts/ruler.cpp
@@ -52,9 +52,9 @@ void Ruler::setOrientation(Qt::Orientation orientation)
52
const QString theLongestText = "-123.45"; // The longest text that ruler must place into itself.
53
const QSizeF theLargestSize = textBoundingRect(theLongestText).size();
54
if (orientation == Qt::Horizontal) {
55
- setFixedHeight(theLargestSize.height() + 2 * gap);
+ setFixedHeight(static_cast<int>(theLargestSize.height() + 2 * gap));
56
} else {
57
- setFixedWidth(theLargestSize.width() + 2 * gap);
+ setFixedWidth(static_cast<int>(theLargestSize.width() + 2 * gap));
58
}
59
60
0 commit comments