Replace a few more Aspect::value() calls with operator() uses

Change-Id: I9343e74bfb51af41df02a411976b82b9260be2fb
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2023-07-19 09:06:17 +02:00
parent 7dfdb6d36c
commit b14b7b1a5f
4 changed files with 7 additions and 7 deletions

View File

@@ -1004,7 +1004,7 @@ void TerminalWidget::paintCursor(QPainter &p) const
cursor.shape = Internal::Cursor::Shape::Underline;
const bool blinkState = !cursor.blink || m_cursorBlinkState
|| !settings().allowBlinkingCursor.value();
|| !settings().allowBlinkingCursor();
if (cursor.visible && blinkState) {
const int cursorCellWidth = m_surface->cellWidthAt(cursor.position.x(), cursor.position.y());
@@ -1160,7 +1160,7 @@ void TerminalWidget::keyPressEvent(QKeyEvent *event)
}
if (event->key() == Qt::Key_Escape) {
bool sendToTerminal = settings().sendEscapeToTerminal.value();
bool sendToTerminal = settings().sendEscapeToTerminal();
bool send = false;
if (sendToTerminal && event->modifiers() == Qt::NoModifier)
send = true;