mirror of
https://github.com/yse/easy_profiler.git
synced 2025-01-14 00:27:55 +08:00
#182 quick fix for tooltip on MacOS
This commit is contained in:
parent
2be697ee7a
commit
e67ba6592e
@ -59,9 +59,16 @@
|
|||||||
#include "common_functions.h"
|
#include "common_functions.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
|
||||||
|
constexpr auto TOOLTIP_OPTIONS =
|
||||||
|
#ifndef __APPLE__
|
||||||
|
Qt::Tool | Qt::SubWindow | Qt::FramelessWindowHint;
|
||||||
|
#else
|
||||||
|
Qt::Tool | Qt::FramelessWindowHint;
|
||||||
|
#endif
|
||||||
|
|
||||||
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::Tool | Qt::SubWindow | Qt::FramelessWindowHint)
|
: QWidget(_parent, TOOLTIP_OPTIONS)
|
||||||
{
|
{
|
||||||
auto content = new QWidget();
|
auto content = new QWidget();
|
||||||
content->setObjectName("cnt");
|
content->setObjectName("cnt");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user