Properly test internal window flags
Qt::Popup is a mask, so we cannot use the `&` operator to test the window type. We need to use QFlags::testFlag() for that purpose instead.
This commit is contained in:
parent
bc34736534
commit
70700b868a
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ bool InternalClient::isResizable() const
|
|||
|
||||
bool InternalClient::isPlaceable() const
|
||||
{
|
||||
return !(m_internalWindowFlags & Qt::BypassWindowManagerHint) && !(m_internalWindowFlags & Qt::Popup);
|
||||
return !m_internalWindowFlags.testFlag(Qt::BypassWindowManagerHint) && !m_internalWindowFlags.testFlag(Qt::Popup);
|
||||
}
|
||||
|
||||
bool InternalClient::noBorder() const
|
||||
|
|
Loading…
Reference in a new issue