diff options
author | Alexander Volkov <a.volkov@rusbitech.ru> | 2018-09-24 13:45:57 +0300 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-09-29 09:33:11 +0000 |
commit | a34054c75e18326d10328baa9e39fc9eab0cbfc9 (patch) | |
tree | 13bf5ed1899153540d17872695a0ab94731ce455 /src/plugins/platforms/xcb/qxcbwindow.cpp | |
parent | 60cecc86f8cde0b2d4e727b9d0fe8a6cb994d660 (diff) |
xcb: Extract QXcbWindow::isTrayIconWindow()
Introduce this static function to detect tray icon windows.
The old non-static method was unused, so drop it.
Change-Id: Ia97b8a857bd1807ecd56340efbc9b145844d593e
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbwindow.cpp')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index 35639d4b88..69fc6c2951 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.cpp +++ b/src/plugins/platforms/xcb/qxcbwindow.cpp @@ -297,7 +297,7 @@ void QXcbWindow::create() destroy(); m_windowState = Qt::WindowNoState; - m_trayIconWindow = window()->objectName() == QLatin1String("QSystemTrayIconSysWindow"); + m_trayIconWindow = isTrayIconWindow(window()); Qt::WindowType type = window()->type(); |