Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qcocoaservices.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 "
qcocoaservices.h
"
5
6
#include <AppKit/NSWorkspace.h>
7
#include <Foundation/NSURL.h>
8
9
#include <QtCore/QUrl>
10
11
QT_BEGIN_NAMESPACE
12
13
bool
QCocoaServices::openUrl
(
const
QUrl
&
url
)
14
{
15
return
[[NSWorkspace sharedWorkspace] openURL:
url
.toNSURL()];
16
}
17
18
bool
QCocoaServices::openDocument
(
const
QUrl
&
url
)
19
{
20
return
openUrl
(
url
);
21
}
22
23
QT_END_NAMESPACE
QCocoaServices::openUrl
bool openUrl(const QUrl &url) override
Definition
qcocoaservices.mm:13
QCocoaServices::openDocument
bool openDocument(const QUrl &url) override
Definition
qcocoaservices.mm:18
QUrl
\inmodule QtCore
Definition
qurl.h:94
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
qcocoaservices.h
url
QUrl url("example.com")
[constructor-url-reference]
Definition
src_corelib_io_qurl.cpp:19
qtbase
src
plugins
platforms
cocoa
qcocoaservices.mm
Generated by
1.9.7