Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
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:129
Combined button and popup list for selecting options.
@ CaseInsensitive
QList< QString > QStringList
Constructs a string list that contains the given string, str.
GLuint64 key
#define QPlatformPrinterSupportFactoryInterface_iid
#define QStringLiteral(str)
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
view create()