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
qcoreapplication_mac.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
#include "
qcoreapplication.h
"
5
#include "private/qcoreapplication_p.h"
6
#include <private/qcore_mac_p.h>
7
8
QT_BEGIN_NAMESPACE
9
10
/*****************************************************************************
11
QCoreApplication utility functions
12
*****************************************************************************/
13
QString
qAppFileName
()
14
{
15
static
QString
appFileName;
16
if
(appFileName.isEmpty()) {
17
QCFType<CFURLRef> bundleURL(CFBundleCopyExecutableURL(CFBundleGetMainBundle()));
18
if
(bundleURL) {
19
QCFString
cfPath(CFURLCopyFileSystemPath(bundleURL, kCFURLPOSIXPathStyle));
20
if
(cfPath)
21
appFileName = cfPath;
22
}
23
}
24
return
appFileName;
25
}
26
27
QT_END_NAMESPACE
QCFString
Definition
qcore_mac_p.h:174
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
qcoreapplication.h
qAppFileName
QT_BEGIN_NAMESPACE QString qAppFileName()
Definition
qcoreapplication_mac.cpp:13
qtbase
src
corelib
kernel
qcoreapplication_mac.cpp
Generated by
1.10.0