| | |
| | | if (m_titleBar == item) { |
| | | return false; |
| | | } |
| | | |
| | | if (m_titleBar) { |
| | | // Since the title bar is changed, all items inside it should be dereferenced right away |
| | | for (auto &button : m_systemButtons) { |
| | | button = nullptr; |
| | | } |
| | | m_hitTestVisibleItems.clear(); |
| | | } |
| | | |
| | | m_titleBar = item; |
| | | return true; |
| | | } |
| | |
| | | |
| | | #include <QWKCore/qwindowkit_windows.h> |
| | | |
| | | #include <QtGui/QStyleHints> |
| | | #include <QtGui/QPalette> |
| | | |
| | | #include <QtCore/private/qsystemlibrary_p.h> |
| | | #include <QtCore/private/qwinregistry_p.h> |
| | | |
| | | #include <QtGui/QStyleHints> |
| | | #include <QtGui/QPalette> |
| | | |
| | | // Don't include this header in any header files. |
| | | |
| | | namespace QWK { |
| | |
| | | #ifndef STYLEAGENTPRIVATE_H |
| | | #define STYLEAGENTPRIVATE_H |
| | | |
| | | // |
| | | // W A R N I N G !!! |
| | | // ----------------- |
| | | // |
| | | // This file is not part of the QWindowKit API. It is used purely as an |
| | | // implementation detail. This header file may change from version to |
| | | // version without notice, or may even be removed. |
| | | // |
| | | |
| | | #include <QWKStyleSupport/styleagent.h> |
| | | #include <QtCore/QHash> |
| | | |