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
qquickitemgenerator.cpp
Go to the documentation of this file.
1// Copyright (C) 2024 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
5#include "utils_p.h"
7
8#include <private/qsgcurveprocessor_p.h>
9#include <private/qquickshape_p.h>
10#include <private/qquadpath_p.h>
11#include <private/qquickitem_p.h>
12#include <private/qquickimagebase_p_p.h>
13#include <private/qquickanimation_p.h>
14#include <private/qquicktext_p.h>
15#include <private/qquicktranslate_p.h>
16#include <private/qquickimage_p.h>
17
18#include <QtCore/qloggingcategory.h>
19#include <QtCore/qstandardpaths.h>
20#include <QtQml/qqmlcomponent.h>
21
23
24QQuickItemGenerator::QQuickItemGenerator(const QString fileName,
25 QQuickVectorImageGenerator::GeneratorFlags flags)
26 : QQuickQmlGenerator(fileName, flags, QString{})
27{
28 setRetainFilePaths(true);
29
30 QString tmpDir = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
31 setAssetFileDirectory(tmpDir);
32 setAssetFilePrefix(QStringLiteral("_qt_vectorimage_"));
33 setUrlPrefix(QStringLiteral("file:"));
34}
35
36QQuickItemGenerator::~QQuickItemGenerator()
37{
38}
39
40QT_END_NAMESPACE
Combined button and popup list for selecting options.