~ubuntu-branches/ubuntu/vivid/qtdeclarative-opensource-src/vivid-proposed

« back to all changes in this revision

Viewing changes to examples/quick/demos/rssnews/content/RssFeeds.qml

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2014-10-27 05:56:48 UTC
  • mfrom: (0.3.20 sid)
  • Revision ID: package-import@ubuntu.com-20141027055648-atwzz11krl5f1ik7
Tags: 5.3.2-3ubuntu1
* New upstream release.
* Drop patches merged upstream:
  - Make-ItemViews-displayMargin-work-correctly-when-set.patch
  - v4_yarr_jit_push_pop_addressTempRegister.patch
  - fix_qqmlobjectcreator.patch
  - Implement-proper-support-for-layoutChange-in-QQmlDel.patch
  - Fix-crash-with-running-animators-on-re-shown-windows.patch
  - Fix-crash-when-deleting-component-in-Component.onCom.patch
  - Fix-interaction-of-garbage-collector-with-JS-objects.patch
  - 8454a21b-Flickable-Cancel-interaction-on-interactive-changes.patch
  - Avoid-double-deletion-when-deleting-an-incubating-co.patch
  - Fix-bindings-to-when-property-of-States-not-always-w.patch
  - Fix-crash-in-QObjectWrapper.patch
* Sync with Debian 5.3.2-3
  - Keep gles packages support, transitional packages, tests enablement 
    and additional patches
* Update symbols and mark private ones.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/****************************************************************************
2
2
**
3
 
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
 
3
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4
4
** Contact: http://www.qt-project.org/legal
5
5
**
6
 
** This file is part of the QtQml module of the Qt Toolkit.
7
 
**
8
 
** $QT_BEGIN_LICENSE:LGPL$
9
 
** Commercial License Usage
10
 
** Licensees holding valid commercial Qt licenses may use this file in
11
 
** accordance with the commercial license agreement provided with the
12
 
** Software or, alternatively, in accordance with the terms contained in
13
 
** a written agreement between you and Digia.  For licensing terms and
14
 
** conditions see http://qt.digia.com/licensing.  For further information
15
 
** use the contact form at http://qt.digia.com/contact-us.
16
 
**
17
 
** GNU Lesser General Public License Usage
18
 
** Alternatively, this file may be used under the terms of the GNU Lesser
19
 
** General Public License version 2.1 as published by the Free Software
20
 
** Foundation and appearing in the file LICENSE.LGPL included in the
21
 
** packaging of this file.  Please review the following information to
22
 
** ensure the GNU Lesser General Public License version 2.1 requirements
23
 
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24
 
**
25
 
** In addition, as a special exception, Digia gives you certain additional
26
 
** rights.  These rights are described in the Digia Qt LGPL Exception
27
 
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28
 
**
29
 
** GNU General Public License Usage
30
 
** Alternatively, this file may be used under the terms of the GNU
31
 
** General Public License version 3.0 as published by the Free Software
32
 
** Foundation and appearing in the file LICENSE.GPL included in the
33
 
** packaging of this file.  Please review the following information to
34
 
** ensure the GNU General Public License version 3.0 requirements will be
35
 
** met: http://www.gnu.org/copyleft/gpl.html.
36
 
**
 
6
** This file is part of the examples of the Qt Toolkit.
 
7
**
 
8
** $QT_BEGIN_LICENSE:BSD$
 
9
** You may use this file under the terms of the BSD license as follows:
 
10
**
 
11
** "Redistribution and use in source and binary forms, with or without
 
12
** modification, are permitted provided that the following conditions are
 
13
** met:
 
14
**   * Redistributions of source code must retain the above copyright
 
15
**     notice, this list of conditions and the following disclaimer.
 
16
**   * Redistributions in binary form must reproduce the above copyright
 
17
**     notice, this list of conditions and the following disclaimer in
 
18
**     the documentation and/or other materials provided with the
 
19
**     distribution.
 
20
**   * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
 
21
**     of its contributors may be used to endorse or promote products derived
 
22
**     from this software without specific prior written permission.
 
23
**
 
24
**
 
25
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 
26
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 
27
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 
28
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 
29
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 
30
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 
31
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 
32
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 
33
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 
34
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 
35
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
37
36
**
38
37
** $QT_END_LICENSE$
39
38
**
40
39
****************************************************************************/
41
40
 
42
 
import QtQuick 2.0
 
41
import QtQuick 2.2
43
42
 
44
43
ListModel {
45
 
    id: rssFeeds
46
 
 
47
 
    ListElement { name: "Top Stories"; feed: "rss.news.yahoo.com/rss/topstories" }
48
 
    ListElement { name: "World"; feed: "rss.news.yahoo.com/rss/world" }
49
 
    ListElement { name: "Europe"; feed: "rss.news.yahoo.com/rss/europe" }
50
 
    ListElement { name: "Oceania"; feed: "rss.news.yahoo.com/rss/oceania" }
51
 
    ListElement { name: "U.S. National"; feed: "rss.news.yahoo.com/rss/us" }
52
 
    ListElement { name: "Politics"; feed: "rss.news.yahoo.com/rss/politics" }
53
 
    ListElement { name: "Business"; feed: "rss.news.yahoo.com/rss/business" }
54
 
    ListElement { name: "Technology"; feed: "rss.news.yahoo.com/rss/tech" }
55
 
    ListElement { name: "Entertainment"; feed: "rss.news.yahoo.com/rss/entertainment" }
56
 
    ListElement { name: "Health"; feed: "rss.news.yahoo.com/rss/health" }
57
 
    ListElement { name: "Science"; feed: "rss.news.yahoo.com/rss/science" }
58
 
    ListElement { name: "Sports"; feed: "rss.news.yahoo.com/rss/sports" }
 
44
    ListElement { name: "Top Stories"; feed: "news.yahoo.com/rss/topstories"; image: "images/TopStories.jpg" }
 
45
    ListElement { name: "World"; feed: "news.yahoo.com/rss/world"; image: "images/World.jpg" }
 
46
    ListElement { name: "Europe"; feed: "news.yahoo.com/rss/europe"; image: "images/Europe.jpg" }
 
47
    ListElement { name: "Asia"; feed: "news.yahoo.com/rss/asia"; image: "images/Asia.jpg" }
 
48
    ListElement { name: "U.S. National"; feed: "news.yahoo.com/rss/us"; image: "images/USNational.jpg"  }
 
49
    ListElement { name: "Politics"; feed: "news.yahoo.com/rss/politics"; image: "images/Politics.jpg" }
 
50
    ListElement { name: "Business"; feed: "news.yahoo.com/rss/business"; image: "images/Business.jpg" }
 
51
    ListElement { name: "Technology"; feed: "news.yahoo.com/rss/tech"; image: "images/Technology.jpg" }
 
52
    ListElement { name: "Entertainment"; feed: "news.yahoo.com/rss/entertainment"; image: "images/Entertainment.jpg" }
 
53
    ListElement { name: "Health"; feed: "news.yahoo.com/rss/health"; image: "images/Health.jpg" }
 
54
    ListElement { name: "Science"; feed: "news.yahoo.com/rss/science"; image: "images/Science.jpg" }
 
55
    ListElement { name: "Sports"; feed: "news.yahoo.com/rss/sports"; image: "images/Sports.jpg" }
59
56
}