5#ifndef QT_NO_SYSTEMTRAYICON
9#include <QDBusConnection>
10#include <QDBusMetaType>
19#include <QGuiApplication>
20#include <qpa/qplatformmenu.h>
21#include <private/qdbusplatformmenu_p.h>
22#include <private/qicon_p.h>
45 bool hasSmallIcon =
false;
46 bool hasMediumIcon =
false;
57 for (
const QSize &
size : std::as_const(toRemove))
121 for (
int i = 0;
i < iconVector.
size(); ++
i) {
137 iconVector.
append(element);
char * data()
\macro QT_NO_CAST_FROM_BYTEARRAY
void endArray()
Closes a D-Bus array opened with beginArray().
void beginStructure()
Opens a new D-Bus structure suitable for appending new arguments.
bool atEnd() const
Returns true if there are no more elements to be extracted from this QDBusArgument.
void endStructure()
Closes a D-Bus structure opened with beginStructure().
void beginArray(int elementMetaTypeId)
The QIconEngine class provides an abstract base class for QIcon renderers.
The QIcon class provides scalable icons in different modes and states.
bool isNull() const
Returns true if the icon is empty; otherwise returns false.
int width() const
Returns the width of the image.
int height() const
Returns the height of the image.
void fill(uint pixel)
Fills the entire image with the given pixelValue.
const uchar * constBits() const
Returns a pointer to the first pixel data.
qsizetype size() const noexcept
void append(parameter_type t)
The QPainter class performs low-level painting on widgets and other paint devices.
void drawImage(const QRectF &targetRect, const QImage &image, const QRectF &sourceRect, Qt::ImageConversionFlags flags=Qt::AutoColor)
Draws the rectangular portion source of the given image into the target rectangle in the paint device...
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
static const int IconNormalMediumSize
const QDBusArgument & operator>>(const QDBusArgument &argument, QXdgDBusImageStruct &icon)
static const int IconNormalSmallSize
static QT_BEGIN_NAMESPACE const int IconSizeLimit
QXdgDBusImageVector iconToQXdgDBusImageVector(const QIcon &icon)
const QDBusArgument & operator<<(QDBusArgument &argument, const QXdgDBusImageStruct &icon)
constexpr const T & qMax(const T &a, const T &b)
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint GLsizei const GLuint const GLintptr const GLsizeiptr * sizes
const void * data_ptr(const QTransform &t)