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// Qt-Security score:significant reason:default
4
6
7#include <QDebug>
8#include <QUrl>
9
11
12Q_LOGGING_CATEGORY(lcQpaQnxNavigator, "qt.qpa.qnx.navigator");
13
14QQnxAbstractNavigator::QQnxAbstractNavigator(QObject *parent)
15 : QObject(parent)
16{
17}
18
22
23bool QQnxAbstractNavigator::invokeUrl(const QUrl &url)
24{
25 if (!url.isValid() || url.isRelative())
26 return false;
27
28 // not using QUrl::toEncoded() because for e.g. camera:// it creates camera:
29 // which is not recognized by the navigator anymore
30 const bool result = requestInvokeUrl(url.toString().toUtf8());
31
32 qCDebug(lcQpaQnxNavigator) << Q_FUNC_INFO << "url =" << url << "result =" << result;
33
34 return result;
35}
36
37QT_END_NAMESPACE
bool invokeUrl(const QUrl &url)
Combined button and popup list for selecting options.