Fix title bar draggable mistake
| | |
| | | |
| | | class WindowBarPrivate { |
| | | Q_DECLARE_PUBLIC(WindowBar) |
| | | Q_DISABLE_COPY(WindowBarPrivate) |
| | | public: |
| | | WindowBarPrivate(); |
| | | virtual ~WindowBarPrivate(); |
| | |
| | | inline void insertDefaultSpace(int index) { |
| | | layout->insertSpacerItem(index, new QSpacerItem(0, 0)); |
| | | } |
| | | |
| | | private: |
| | | Q_DISABLE_COPY_MOVE(WindowBarPrivate) |
| | | }; |
| | | |
| | | } |
| | |
| | | return false; |
| | | } |
| | | |
| | | if (!m_delegate->mapGeometryToScene(m_titleBar).contains(pos)) { |
| | | return false; |
| | | } |
| | | |
| | | for (int i = CoreWindowAgent::WindowIcon; i <= CoreWindowAgent::Close; ++i) { |
| | | auto currentButton = m_systemButtons[i]; |
| | | if (currentButton && m_delegate->isVisible(currentButton) && |
| | |
| | | if (!m_hitTestVisibleRects.isEmpty() && hitTestShape().contains(pos)) { |
| | | return false; |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | |
| | | |
| | | #include <QtCore/QHash> |
| | | #include <QtCore/QAbstractNativeEventFilter> |
| | | #include <QtCore/QCoreApplication> |
| | | #include <QtCore/QOperatingSystemVersion> |
| | | #include <QtCore/QScopeGuard> |
| | | #include <QtCore/QTimer> |
| | | #include <QtGui/QGuiApplication> |
| | | |
| | | #include <QtCore/private/qsystemlibrary_p.h> |
| | | #include <QtGui/private/qhighdpiscaling_p.h> |