void QConsoleWidgetPrivate:: selectAndSetFont() { auto font_ = this->textCharFormat.font() ; QFontDialog * dialog = new QFontDialog( font_ ); if (dialog->exec()) { font_ = dialog->selectedFont(); this->textCharFormat.setFont(font_); super->updateCharFormat(); dialog->deleteLater(); } else { dialog->deleteLater(); } firstVisibleBlock = -100; super->viewport()->update(); }