diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2014-03-10 16:11:07 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-19 11:14:02 +0100 |
commit | f8d1105adde03a52806e0f19cc652f2dca6bb78f (patch) | |
tree | 1279d82ae58cd2f570ff2f861bb32f90cefbb83c /examples/common | |
parent | 177be5dc8c34f840e07e4ac33e182b012420893b (diff) |
Remove the widgetsnanobrowser example
This example hasn't been touched since we imported QtWebKit examples.
If we need to have a more test-purpose widgets browser in the future,
we can dig it back from the history.
Change-Id: Icee9bd7f09827a97b33c6783b87311e331d963b1
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'examples/common')
-rw-r--r-- | examples/common/common_resources.qrc | 8 | ||||
-rw-r--r-- | examples/common/icons/go-next.png | bin | 930 -> 0 bytes | |||
-rw-r--r-- | examples/common/icons/go-previous.png | bin | 955 -> 0 bytes | |||
-rw-r--r-- | examples/common/icons/process-stop.png | bin | 1272 -> 0 bytes | |||
-rw-r--r-- | examples/common/icons/view-refresh.png | bin | 1364 -> 0 bytes | |||
-rw-r--r-- | examples/common/util.h | 73 |
6 files changed, 0 insertions, 81 deletions
diff --git a/examples/common/common_resources.qrc b/examples/common/common_resources.qrc deleted file mode 100644 index 45e766179..000000000 --- a/examples/common/common_resources.qrc +++ /dev/null @@ -1,8 +0,0 @@ -<!DOCTYPE RCC><RCC version="1.0"> -<qresource prefix="icons"> - <file alias="go-next.png">icons/go-next.png</file> - <file alias="go-previous.png">icons/go-previous.png</file> - <file alias="process-stop.png">icons/process-stop.png</file> - <file alias="view-refresh.png">icons/view-refresh.png</file> -</qresource> -</RCC> diff --git a/examples/common/icons/go-next.png b/examples/common/icons/go-next.png Binary files differdeleted file mode 100644 index 6f3f65d33..000000000 --- a/examples/common/icons/go-next.png +++ /dev/null diff --git a/examples/common/icons/go-previous.png b/examples/common/icons/go-previous.png Binary files differdeleted file mode 100644 index 93be3d1ee..000000000 --- a/examples/common/icons/go-previous.png +++ /dev/null diff --git a/examples/common/icons/process-stop.png b/examples/common/icons/process-stop.png Binary files differdeleted file mode 100644 index b68290bf1..000000000 --- a/examples/common/icons/process-stop.png +++ /dev/null diff --git a/examples/common/icons/view-refresh.png b/examples/common/icons/view-refresh.png Binary files differdeleted file mode 100644 index cab4d02c7..000000000 --- a/examples/common/icons/view-refresh.png +++ /dev/null diff --git a/examples/common/util.h b/examples/common/util.h deleted file mode 100644 index ea0ae8b2e..000000000 --- a/examples/common/util.h +++ /dev/null @@ -1,73 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/legal -** -** This file is part of the QtWebEngine module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU General Public License version 3.0 requirements will be -** met: http://www.gnu.org/copyleft/gpl.html. -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#ifndef UTIL_H -#define UTIL_H - -#include <QtCore/QCoreApplication> -#include <QtCore/QFileInfo> -#include <QtCore/QUrl> -#include <QtCore/QStringList> - -QUrl urlFromUserInput(const QString& userInput) -{ - QFileInfo fileInfo(userInput); - if (fileInfo.exists()) - return QUrl(fileInfo.absoluteFilePath()); - return QUrl::fromUserInput(userInput); -} - -QUrl startupUrl() -{ - QUrl ret; - QStringList args(qApp->arguments()); - args.takeFirst(); - Q_FOREACH(const QString& arg, args) { - if (arg.startsWith(QLatin1Char('-'))) - continue; - ret = urlFromUserInput(arg); - if (ret.isValid()) - return ret; - } - return QUrl(QStringLiteral("http://qt-project.org/")); -} - - -#endif // UTIL_H |