From 291c04e8c3271ca8be7c77abb1318a2a8a955f20 Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Sat, 19 May 2018 23:35:00 +0300 Subject: [PATCH] #0 [UI] Tooltip fix --- profiler_gui/arbitrary_value_tooltip.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiler_gui/arbitrary_value_tooltip.cpp b/profiler_gui/arbitrary_value_tooltip.cpp index 86c17df..e5ab7bf 100644 --- a/profiler_gui/arbitrary_value_tooltip.cpp +++ b/profiler_gui/arbitrary_value_tooltip.cpp @@ -61,7 +61,7 @@ ArbitraryValueToolTip::ArbitraryValueToolTip(const QString& _name , const profiler::BlocksTree& _block, QWidget* _parent) - : QWidget(_parent, Qt::ToolTip | Qt::WindowStaysOnTopHint) + : QWidget(_parent, Qt::Tool | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint) { auto content = new QWidget(); content->setObjectName("cnt"); @@ -73,6 +73,7 @@ ArbitraryValueToolTip::ArbitraryValueToolTip(const QString& _name auto pane = new QTextEdit(); pane->setWordWrapMode(QTextOption::NoWrap); pane->setReadOnly(true); + pane->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard); auto label = new QLabel(QStringLiteral("Arbitrary Value")); QFont font = EASY_GLOBALS.font.default_font;