~larryprice/acolyterm/env-shell

« back to all changes in this revision

Viewing changes to src/app/qml/TabsPage.qml

  • Committer: Larry Price
  • Date: 2016-06-17 14:47:16 UTC
  • Revision ID: larry.price@canonical.com-20160617144716-4hmgq8e2wxznu68v
Running a single command

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
            model: tabsModel
48
48
            anchors.margins: units.gu(1)
49
49
            cellWidth: (parent.width - units.gu(2)) * 0.5
50
 
            cellHeight: cellWidth * (terminalPage.terminalContainer.height / terminalPage.terminalContainer.width)
51
 
 
52
 
            //      add: Transition {
53
 
            //          NumberAnimation { properties: "x,y"; duration: 200 }
54
 
            //      }
 
50
            cellHeight: cellWidth * terminalPage.terminalContainer.height / terminalPage.terminalContainer.width
55
51
 
56
52
            removeDisplaced: Transition {
57
53
                NumberAnimation { properties: "x,y"; duration: 200 }
105
101
 
106
102
                    Label {
107
103
                        anchors { fill: blackRect; margins: units.dp(2) }
108
 
                        text: tabsModel.get(index).terminal.session.title
 
104
                        text: tabsModel.get(index) ? tabsModel.get(index).terminal.session.title : ""
109
105
                        wrapMode: Text.Wrap
110
106
                        color: "white"
111
107
                    }