Skip to content

Commit

Permalink
#182 quick fix for tooltip on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
yse committed Jun 6, 2020
1 parent 2be697e commit e67ba65
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion profiler_gui/arbitrary_value_tooltip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e67ba65

Please sign in to comment.