Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickvectorimagesource.cpp
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
6
7#include <QtCore/qbuffer.h>
8#include <QtCore/qdebug.h>
9#include <QtCore/qfile.h>
10
12
13QQuickVectorImageSource::QQuickVectorImageSource(const QString &fileName, const QByteArray &data)
14 : m_fileName(fileName)
15 , m_data(data)
16{
17}
18
19QQuickVectorImageSource::~QQuickVectorImageSource() = default;
20
21#ifndef QT_NO_DEBUG_STREAM
22QDebug operator<<(QDebug debug, const QQuickVectorImageSource &source)
23{
24 QDebugStateSaver saver(debug);
25 debug.nospace() << "QQuickVectorImageSource(";
26 if (source.isFile())
27 debug << "file " << source.fileName();
28 else
29 debug << source.data().size() << " bytes of data";
30 debug << ')';
31 return debug;
32}
33#endif
34
35QT_END_NAMESPACE
Combined button and popup list for selecting options.