Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 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
4
6
7#include <qpa/qplatformprintplugin.h>
8#include <QtCore/QStringList>
9
11
12using namespace Qt::StringLiterals;
13
15{
18
19public:
20 QStringList keys() const;
21 QPlatformPrinterSupport *create(const QString &) override;
22};
23
25{
26 return QStringList(QStringLiteral("cupsprintersupport"));
27}
28
30{
31 if (key.compare(key, "cupsprintersupport"_L1, Qt::CaseInsensitive) == 0)
32 return new QCupsPrinterSupport;
33 return 0;
34}
35
37
38#include "main.moc"
QStringList keys() const
Definition main.cpp:24
QPlatformPrinterSupport * create(const QString &) override
Definition main.cpp:29
The QPlatformPrinterSupport class provides an abstraction for print support.
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
@ CaseInsensitive
GLuint64 key
#define QPlatformPrinterSupportFactoryInterface_iid
#define QStringLiteral(str)
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
view create()