Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqnxabstractnavigator.cpp
Go to the documentation of this file.
1
// Copyright (C) 2012 Research In Motion
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
"qqnxabstractnavigator.h"
5
6
#
include
<
QDebug
>
7
#
include
<
QUrl
>
8
9
QT_BEGIN_NAMESPACE
10
11
Q_LOGGING_CATEGORY(lcQpaQnxNavigator,
"qt.qpa.qnx.navigator"
);
12
13
QQnxAbstractNavigator
::QQnxAbstractNavigator(QObject *parent)
14
: QObject(parent)
15
{
16
}
17
18
QQnxAbstractNavigator
::~
QQnxAbstractNavigator
()
19
{
20
}
21
22
bool
QQnxAbstractNavigator
::
invokeUrl
(
const
QUrl &url)
23
{
24
if
(!url.isValid() || url.isRelative())
25
return
false
;
26
27
// not using QUrl::toEncoded() because for e.g. camera:// it creates camera:
28
// which is not recognized by the navigator anymore
29
const
bool
result = requestInvokeUrl(url.toString().toUtf8());
30
31
qCDebug(lcQpaQnxNavigator) << Q_FUNC_INFO <<
"url ="
<< url <<
"result ="
<< result;
32
33
return
result;
34
}
35
36
QT_END_NAMESPACE
QQnxAbstractNavigator
Definition
qqnxabstractnavigator.h:17
QQnxAbstractNavigator::invokeUrl
bool invokeUrl(const QUrl &url)
Definition
qqnxabstractnavigator.cpp:22
QQnxAbstractNavigator::~QQnxAbstractNavigator
~QQnxAbstractNavigator()
Definition
qqnxabstractnavigator.cpp:18
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
platforms
qnx
qqnxabstractnavigator.cpp
Generated on
for Qt by
1.14.0