0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-26 08:01:51 +08:00

#182 quick fix for tooltip on MacOS

This commit is contained in:
Sergey Yagovtsev 2020-06-06 23:54:34 +03:00
parent 2be697ee7a
commit e67ba6592e

View File

@ -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");