Commit 33fcebfe authored by Kurt Hindenburg's avatar Kurt Hindenburg

unmaskBell convert singleshot old connect syntax to new with lambda

parent 37bd57e3
......@@ -3254,11 +3254,6 @@ int TerminalDisplay::bellMode() const
return _bellMode;
}
void TerminalDisplay::unmaskBell()
{
_bellMasked = false;
}
void TerminalDisplay::bell(const QString& message)
{
if (_bellMasked)
......@@ -3287,7 +3282,9 @@ void TerminalDisplay::bell(const QString& message)
// ...mainly for sound effects where rapid bells in sequence
// produce a horrible noise.
_bellMasked = true;
QTimer::singleShot(500, this, SLOT(unmaskBell()));
QTimer::singleShot(500, [this]() {
_bellMasked = false;
});
}
void TerminalDisplay::visualBell()
......
......@@ -756,7 +756,6 @@ protected Q_SLOTS:
private Q_SLOTS:
void unmaskBell();
void swapFGBGColors();
void viewScrolledByUser();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment