forked from qt-creator/qt-creator
Debugger: Delay showing tooltip
Task-number: QTCREATORBUG-31250 Change-Id: If74100538a992b5bc7d71bdb2808f6d1e70571d1 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -647,6 +647,7 @@ public:
|
|||||||
void positionShow(const TextEditorWidget *editorWidget);
|
void positionShow(const TextEditorWidget *editorWidget);
|
||||||
|
|
||||||
void updateTooltip(DebuggerEngine *engine);
|
void updateTooltip(DebuggerEngine *engine);
|
||||||
|
void updateTooltip2(DebuggerEngine *engine);
|
||||||
|
|
||||||
void setState(DebuggerTooltipState newState);
|
void setState(DebuggerTooltipState newState);
|
||||||
void destroy();
|
void destroy();
|
||||||
@@ -782,6 +783,11 @@ DebuggerToolTipHolder::DebuggerToolTipHolder(const DebuggerToolTipContext &conte
|
|||||||
// after normal WatchModel update.
|
// after normal WatchModel update.
|
||||||
|
|
||||||
void DebuggerToolTipHolder::updateTooltip(DebuggerEngine *engine)
|
void DebuggerToolTipHolder::updateTooltip(DebuggerEngine *engine)
|
||||||
|
{
|
||||||
|
QTimer::singleShot(0, [this, engine] { updateTooltip2(engine); });
|
||||||
|
}
|
||||||
|
|
||||||
|
void DebuggerToolTipHolder::updateTooltip2(DebuggerEngine *engine)
|
||||||
{
|
{
|
||||||
widget->setEngine(engine);
|
widget->setEngine(engine);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user