From e67ba6592ee19daf488e3fc2b9e66aeb7c89d923 Mon Sep 17 00:00:00 2001 From: Sergey Yagovtsev Date: Sat, 6 Jun 2020 23:54:34 +0300 Subject: [PATCH] #182 quick fix for tooltip on MacOS --- profiler_gui/arbitrary_value_tooltip.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/profiler_gui/arbitrary_value_tooltip.cpp b/profiler_gui/arbitrary_value_tooltip.cpp index 1da8f9b..a835107 100644 --- a/profiler_gui/arbitrary_value_tooltip.cpp +++ b/profiler_gui/arbitrary_value_tooltip.cpp @@ -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");