Skip to content

Commit

Permalink
Compose string as QString and use .arg
Browse files Browse the repository at this point in the history
  • Loading branch information
JoergAtGithub committed May 8, 2022
1 parent 7b468f8 commit 3657c9c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/errordialoghandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,11 @@ void ErrorDialogHandler::errorDialog(ErrorDialogProperties* pProps) {
Qt::AlignCenter,
QSize(dialogWidth, dialogHeight),
pScreen->geometry()));
pMsgBox->setStyleSheet("QTextEdit { min-width: " +
QString::number(dialogWidth -
kEstimatedDialogBorders) +
"px ; max-height: " +
QString::number(dialogHeight) +
"px; font-family: monospace;}");
pMsgBox->setStyleSheet(
QString("QTextEdit { min-width: %1px ; max-height: %2px; "
"font-family: monospace;}")
.arg(dialogWidth - kEstimatedDialogBorders)
.arg(dialogHeight));
}
}

Expand Down

0 comments on commit 3657c9c

Please sign in to comment.