~mterry/ubuntu-calculator-app/confined

« back to all changes in this revision

Viewing changes to app/ui/Screen.qml

  • Committer: Riccardo Padovani
  • Date: 2014-12-03 22:54:49 UTC
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: rpadovani@ubuntu.com-20141203225449-c6ra5dm0gvd56mp1
Added upstream components

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * You should have received a copy of the GNU General Public License
16
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
17
 */
18
 
 
19
18
import QtQuick 2.3
20
19
import Ubuntu.Components 1.1
21
20
 
 
21
import "../upstreamcomponents"
 
22
 
22
23
ListItemWithActions {
23
24
    id: root
24
25
 
26
27
    Row {
27
28
        id: row
28
29
        anchors.right: parent.right
 
30
        width: parent.width
 
31
 
29
32
        Text {
30
 
            text: contents.calc
 
33
            text: model.contents.calc
31
34
            font.pixelSize: units.gu(3)
32
 
 
33
 
            //verticalAlignment: Text.AlignBottom
34
 
            anchors.bottom: parent.bottom
 
35
            elide: Text.ElideLeft
 
36
            width: parent.width - equal.width - result.width
 
37
            horizontalAlignment: Text.AlignRight
35
38
        }
36
39
        Text {
 
40
            id: equal
37
41
            text: " = "
38
42
            font.pixelSize: units.gu(4)
39
 
 
40
 
            //verticalAlignment: Text.AlignBottom
41
 
            anchors.bottom: parent.bottom
42
43
        }
43
44
        Text {
44
 
            text: contents.result
45
 
 
46
 
            font.bold: true
 
45
            id: result
 
46
            text: model.contents.result
47
47
            font.pixelSize: units.gu(4)
48
 
 
49
 
            verticalAlignment: Text.AlignBottom
50
 
            anchors.bottom: parent.bottom
51
48
        }
52
49
    }
53
50
}