Gui: Compiler warning cleanup

This commit is contained in:
Chris Hennes
2025-12-16 15:16:49 -06:00
parent b15e279bc5
commit 38fd5c7153
3 changed files with 3 additions and 5 deletions

View File

@@ -1058,7 +1058,8 @@ void DlgExpressionInput::setMsgText()
// elide text if it is going out of widget bounds
// note: this is only 'rough elide', as this text is usually not very long;
const int msgLinesLimit = 3;
if (wrappedMsg.size() > msgContentWidth / msgFontMetrics.averageCharWidth() * msgLinesLimit) {
if (static_cast<int>(wrappedMsg.size())
> msgContentWidth / msgFontMetrics.averageCharWidth() * msgLinesLimit) {
const QString elidedMsg = msgFontMetrics.elidedText(
QString::fromStdString(wrappedMsg),
Qt::ElideRight,