mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-26 16:11:02 +08:00
#183 workaround
This commit is contained in:
parent
50398b67be
commit
a3723894c2
@ -107,7 +107,7 @@ WindowHeader::WindowHeader(const QString& title, Buttons buttons, QWidget& paren
|
|||||||
connect(m_closeButton, &QPushButton::clicked, parent, &QWidget::close, Qt::QueuedConnection);
|
connect(m_closeButton, &QPushButton::clicked, parent, &QWidget::close, Qt::QueuedConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32) && !defined(__APPLE__)
|
||||||
if (m_maximizeButton != nullptr || m_minimizeButton != nullptr)
|
if (m_maximizeButton != nullptr || m_minimizeButton != nullptr)
|
||||||
{
|
{
|
||||||
parent->setWindowFlags(parent->windowFlags() | Qt::SubWindow);
|
parent->setWindowFlags(parent->windowFlags() | Qt::SubWindow);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user