mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-27 08:41:02 +08:00
#0 [UI] Tooltip fix
This commit is contained in:
parent
8623fa81bb
commit
291c04e8c3
@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
ArbitraryValueToolTip::ArbitraryValueToolTip(const QString& _name
|
ArbitraryValueToolTip::ArbitraryValueToolTip(const QString& _name
|
||||||
, const profiler::BlocksTree& _block, QWidget* _parent)
|
, const profiler::BlocksTree& _block, QWidget* _parent)
|
||||||
: QWidget(_parent, Qt::ToolTip | Qt::WindowStaysOnTopHint)
|
: QWidget(_parent, Qt::Tool | Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint)
|
||||||
{
|
{
|
||||||
auto content = new QWidget();
|
auto content = new QWidget();
|
||||||
content->setObjectName("cnt");
|
content->setObjectName("cnt");
|
||||||
@ -73,6 +73,7 @@ ArbitraryValueToolTip::ArbitraryValueToolTip(const QString& _name
|
|||||||
auto pane = new QTextEdit();
|
auto pane = new QTextEdit();
|
||||||
pane->setWordWrapMode(QTextOption::NoWrap);
|
pane->setWordWrapMode(QTextOption::NoWrap);
|
||||||
pane->setReadOnly(true);
|
pane->setReadOnly(true);
|
||||||
|
pane->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);
|
||||||
|
|
||||||
auto label = new QLabel(QStringLiteral("Arbitrary Value"));
|
auto label = new QLabel(QStringLiteral("Arbitrary Value"));
|
||||||
QFont font = EASY_GLOBALS.font.default_font;
|
QFont font = EASY_GLOBALS.font.default_font;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user