diff --git a/lib/TerminalDisplay.cpp b/lib/TerminalDisplay.cpp index d6c1edfa..4b812a52 100644 --- a/lib/TerminalDisplay.cpp +++ b/lib/TerminalDisplay.cpp @@ -760,6 +760,7 @@ QColor TerminalDisplay::keyboardCursorColor() const void TerminalDisplay::setOpacity(qreal opacity) { _opacity = qBound(static_cast(0), opacity, static_cast(1)); + update(); } void TerminalDisplay::setBackgroundImage(const QString& backgroundImage) diff --git a/lib/TerminalDisplay.h b/lib/TerminalDisplay.h index 6f10aef8..0bc1a2ec 100644 --- a/lib/TerminalDisplay.h +++ b/lib/TerminalDisplay.h @@ -134,9 +134,6 @@ class KONSOLEPRIVATE_EXPORT TerminalDisplay : public QQuickPaintedItem */ uint randomSeed() const; - /** Sets the opacity of the terminal display. */ - void setOpacity(qreal opacity); - /** * This enum describes the location where the scroll bar is positioned in the display widget. */ @@ -596,6 +593,9 @@ public slots: */ void setBackgroundColor(const QColor& color); + /** Sets the opacity of the terminal display. */ + void setOpacity(qreal opacity); + /** * Sets the text of the display to the specified color. * @see setColorTable(), setBackgroundColor()