aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/basehoverhandler.cpp
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2020-04-16 23:51:26 +0200
committerRobert Loehning <robert.loehning@qt.io>2020-04-21 10:01:01 +0000
commit7c95e17436d68f43e9b9d2e9e5a5bc2bdcb8bfb9 (patch)
tree908d09130061244f3493bb04cf99285536066092 /src/plugins/texteditor/basehoverhandler.cpp
parent8c7a06efd504882cc47f987502070e0a6e93ffbf (diff)
Make WidgetTips Squish-testable
Change-Id: I337fdca3541c5b2fb8f09ab2d7721b8950c0bea9 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/texteditor/basehoverhandler.cpp')
-rw-r--r--src/plugins/texteditor/basehoverhandler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/texteditor/basehoverhandler.cpp b/src/plugins/texteditor/basehoverhandler.cpp
index 8d7fcad5173..34eb326b812 100644
--- a/src/plugins/texteditor/basehoverhandler.cpp
+++ b/src/plugins/texteditor/basehoverhandler.cpp
@@ -163,10 +163,13 @@ void BaseHoverHandler::operateTooltip(TextEditorWidget *editorWidget, const QPoi
auto layout = new QVBoxLayout;
layout->setContentsMargins(0, 0, 0, 0);
auto label = new QLabel;
+ label->setObjectName("qcWidgetTipTopLabel");
label->setTextFormat(m_textFormat);
label->setText(m_toolTip);
layout->addWidget(label);
- layout->addWidget(new QLabel("<hr/>" + helpContents));
+ auto helpContentLabel = new QLabel("<hr/>" + helpContents);
+ helpContentLabel->setObjectName("qcWidgetTipHelpLabel");
+ layout->addWidget(helpContentLabel);
Utils::ToolTip::show(point, layout, editorWidget, helpItem);
}
}