~verzegnassi-stefano/ubuntu-terminal-app/device-detection

« back to all changes in this revision

Viewing changes to src/app/qml/ubuntu-terminal-app.qml

  • Committer: Stefano Verzegnassi
  • Date: 2016-03-15 13:49:57 UTC
  • mfrom: (180.1.10 ubuntu-terminal-app)
  • Revision ID: stefano92.100@gmail.com-20160315134957-invbzjiptemw6jww
Merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    applicationName: "com.ubuntu.terminal"
13
13
    automaticOrientation: true
14
14
 
15
 
    width: units.gu(90)
16
 
    height: units.gu(55)
17
 
 
18
15
    AuthenticationService {
 
16
        id: authService
19
17
        onDenied: Qt.quit();
20
18
    }
21
19
 
131
129
 
132
130
    Component.onCompleted: {
133
131
        tabsModel.selectTab(0);
 
132
 
 
133
        // The margins for the terminal canvas are 2px
 
134
        // Hardcoded value from TerminalDisplay.h
 
135
        width = 80 * terminalPage.terminal.fontMetrics.width + 2
 
136
        height = 24 * terminalPage.terminal.fontMetrics.height + 2
134
137
    }
135
138
 
136
139
    // WORKAROUND: Not yet implemented in the SDK