Merge branch 'Plasma/5.13'
This commit is contained in:
commit
c86fdf4c54
2 changed files with 9 additions and 1 deletions
|
@ -123,11 +123,17 @@ DecoratedClientImpl::DecoratedClientImpl(AbstractClient *client, KDecoration2::D
|
|||
this->m_toolTipFallAsleep.setRemainingTime(fallAsleepDelay);
|
||||
|
||||
QToolTip::showText(Cursor::pos(), this->m_toolTipText);
|
||||
m_toolTipShowing = true;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
DecoratedClientImpl::~DecoratedClientImpl() = default;
|
||||
DecoratedClientImpl::~DecoratedClientImpl()
|
||||
{
|
||||
if (m_toolTipShowing) {
|
||||
requestHideToolTip();
|
||||
}
|
||||
}
|
||||
|
||||
void DecoratedClientImpl::signalShadeChange() {
|
||||
emit decoratedClient()->shadedChanged(m_client->isShade());
|
||||
|
@ -224,6 +230,7 @@ void DecoratedClientImpl::requestHideToolTip()
|
|||
{
|
||||
m_toolTipWakeUp.stop();
|
||||
QToolTip::hideText();
|
||||
m_toolTipShowing = false;
|
||||
}
|
||||
|
||||
void DecoratedClientImpl::requestShowWindowMenu()
|
||||
|
|
|
@ -115,6 +115,7 @@ private:
|
|||
QString m_toolTipText;
|
||||
QTimer m_toolTipWakeUp;
|
||||
QDeadlineTimer m_toolTipFallAsleep;
|
||||
bool m_toolTipShowing = false;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue