123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /****************************************************************************
- **
- ** Copyright (C) 2012 Róbert Márki
- **
- ** This file is part of Web Feeds.
- **
- ** Web Feeds is free software: you can redistribute it and/or modify
- ** it under the terms of the GNU General Public License as published by
- ** the Free Software Foundation, either version 3 of the License, or
- ** (at your option) any later version.
- **
- ** Web Feeds is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ** GNU General Public License for more details.
- **
- ** You should have received a copy of the GNU General Public License
- ** along with Web Feeds. If not, see <http://www.gnu.org/licenses/>.
- ****************************************************************************/
- import QtQuick 1.1
- import com.nokia.meego 1.0
- import com.nokia.extras 1.1
- import WebFeeds 1.0
- import "toolbuttons" as ToolButtons
- import "../../shared/qml" as Shared
- Shared.CommonPage {
- id: root
- function pageForItem(item) {
- return item.service.servicePageUrl();
- }
- contents: Shared.CommonListPageContents {
- id: listPageContents
- rootItem: root.rootItem
- rootIndex: webFeedsApp.pageItemModel.index(root.rootItem);
- rootPage: true
- busy: root.contentsBusy
- emptyListText: qsTr("No accounts")
- delegate: MainPageDelegate {
- onReleased: createPageForItem(listPageContents.itemForRow(row));
- onHolded: showContextMenuForItem(listPageContents.itemForRow(row));
- }
- }
- tools: Shared.CommonToolBarLayout {
- Item{}
- ToolButtons.AddServiceToolButton { pageItem: root.rootItem}
- Shared.MenuToolButton {pageItem: root.rootItem; page: root}
- }
- }
|