~popey/stock-ticker-mobile-app/fix-1288885

1 by Robert Steckroth
Initial commit of the Stock Ticker app to Launchpad
1
/* Copyright 2013 Robert Edward Steckroth II <RobertSteckroth@gmail.com> Bust0ut, Surgemcgee
2
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU Lesser General Public License as published by
5
* the Free Software Foundation; version 3.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
* GNU Lesser General Public License for more details.
11
*
12
* You should have received a copy of the GNU Lesser General Public License
13
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
14
*/
15
16
import QtQuick 2.0
17
import Ubuntu.Components 0.1
18
import Ubuntu.Components.ListItems 0.1 as ListItem
19
import QtQuick.XmlListModel 2.0
20
21
import QtMultimedia 5.0
22
6 by Robert Steckroth
Updated splash screens to svg format. Better subTabsPage resizing design
23
Item {
1 by Robert Steckroth
Initial commit of the Stock Ticker app to Launchpad
24
    property alias detailViewCurrent: detailViewCurrent
25
    ListView {
51 by Robert Steckroth
Added sub tabs tests. Switched to a more coherent management design.
26
        objectName: "detailsListView"
1 by Robert Steckroth
Initial commit of the Stock Ticker app to Launchpad
27
        visible: currentStocksList.count > 0 ? true : false
28
        id: detailViewCurrent
29
        anchors.fill: parent
30
        clip: true
31
        model: currentStocksList
32
        delegate: Stock_Component_Detail {}
33
        spacing: units.gu(1)
34
    }
35
36
    Scrollbar {
37
        id: detailsScrollBar
38
        flickableItem: detailViewCurrent
39
        align: Qt.AlignTrailing
40
    }
41
}
42
43
44
45