8#include <QtCore/qloggingcategory.h>
9#include <QtGui/qpa/qplatformtheme.h>
10#include <QtGui/private/qguiapplication_p.h>
140 m_iconLoader(
nullptr),
146 qCDebug(qtLabsPlatformTray) <<
"SystemTrayIcon ->" << m_handle;
157 m_menu->setSystemTrayIcon(
nullptr);
160 m_iconLoader =
nullptr;
211 if (m_handle && m_complete) {
237 if (m_handle && m_complete)
260 m_menu->setSystemTrayIcon(
nullptr);
263 menu->setSystemTrayIcon(
this);
265 if (m_handle && m_complete) {
307 return m_iconLoader->
icon();
363 if (m_menu && m_menu->
create())
393 static int slot = staticMetaObject.indexOfSlot(
"updateIcon()");
400void QQuickLabsPlatformSystemTrayIcon::updateIcon()
402 if (!m_handle || !m_iconLoader)
409 if (oldGeometry != m_handle->
geometry())
410 emit geometryChanged();
415#include "moc_qquicklabsplatformsystemtrayicon_p.cpp"
static QPlatformTheme * platformTheme()
The QIcon class provides scalable icons in different modes and states.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
connect(quitButton, &QPushButton::clicked, &app, &QCoreApplication::quit, Qt::QueuedConnection)