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.mm
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#include <AppKit/AppKit.h>
5
6#include <qpa/qplatformintegrationplugin.h>
7#include <qpa/qplatformthemeplugin.h>
8#include "qcocoaintegration.h"
9#include "qcocoatheme.h"
10
11#include <QtCore/private/qcore_mac_p.h>
12
14
15using namespace Qt::StringLiterals;
16
24
26{
28 if (system.compare("cocoa"_L1, Qt::CaseInsensitive) == 0)
29 return new QCocoaIntegration(paramList);
30
31 return nullptr;
32}
33
35
36#include "main.moc"
QPlatformIntegration * create(const QString &, const QStringList &)
Definition main.mm:25
The QPlatformIntegration class is the entry for WindowSystem specific functionality.
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
int compare(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
Definition qstring.cpp:6664
Combined button and popup list for selecting options.
@ CaseInsensitive
#define QPlatformIntegrationFactoryInterface_iid
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
view create()