@@ -421,7 +421,7 @@ void LogTextBrowser::keyPressEvent(QKeyEvent *keyEvt) {
421421 int docHeight = verticalScrollBar ()->maximum ();
422422 auto customObjects = qvariant_cast< QList< QObject * > >(doc.property (" customObjects" ));
423423
424- int lastIndex = customObjects.size () - 1 ;
424+ int lastIndex = static_cast < int >( customObjects.size () - 1 ) ;
425425 int focusIndex = doc.property (" customObjectFocusIndex" ).toInt ();
426426 int scrollStep = 15 ;
427427 if (modifiers.testFlag (Qt::ControlModifier)) {
@@ -504,7 +504,7 @@ void LogTextBrowser::keyReleaseEvent(QKeyEvent *keyEvt) {
504504
505505 QTextDocument *doc = document ();
506506 auto customObjects = qvariant_cast< QList< QObject * > >(doc->property (" customObjects" ));
507- int lastIndex = customObjects.size () - 1 ;
507+ int lastIndex = static_cast < int >( customObjects.size () - 1 ) ;
508508 bool isFocusIndex;
509509 int inputFocusIndex = queuedNumericInput.toInt (&isFocusIndex);
510510 bool isFocusIndexTooHigh = !isFocusIndex || inputFocusIndex > lastIndex;
@@ -1953,7 +1953,7 @@ void ImageAnimationTextObject::toggleVideoControls() {
19531953
19541954void ImageAnimationTextObject::addVideoControlsSwitch (QMenu &menu) {
19551955 QString firstWord = areVideoControlsShown ? tr (" Hide" ) : tr (" Show" );
1956- menu.addAction (tr (" %1 Video Controls" ).arg (firstWord), this , [ this ]() { toggleVideoControls (); } );
1956+ menu.addAction (tr (" %1 Video Controls" ).arg (firstWord), this , &ImageAnimationTextObject:: toggleVideoControls);
19571957}
19581958
19591959bool ImageAnimationTextObject::mousePress (const QPoint &mouseDocPos, const Qt::MouseButton &button, QMovie &animation) {
0 commit comments