Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/TerminalDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@ QColor TerminalDisplay::keyboardCursorColor() const
void TerminalDisplay::setOpacity(qreal opacity)
{
_opacity = qBound(static_cast<qreal>(0), opacity, static_cast<qreal>(1));
update();
}

void TerminalDisplay::setBackgroundImage(const QString& backgroundImage)
Expand Down
6 changes: 3 additions & 3 deletions lib/TerminalDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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()
Expand Down