mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-26 16:11:02 +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 "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
|
||||
, const profiler::BlocksTree& _block, QWidget* _parent)
|
||||
: QWidget(_parent, Qt::Tool | Qt::SubWindow | Qt::FramelessWindowHint)
|
||||
: QWidget(_parent, TOOLTIP_OPTIONS)
|
||||
{
|
||||
auto content = new QWidget();
|
||||
content->setObjectName("cnt");
|
||||
|
Loading…
x
Reference in New Issue
Block a user