~larryprice/acolyterm/release-0.1

« back to all changes in this revision

Viewing changes to src/plugin/qmltermwidget/test-app/test-app.qml

  • Committer: Larry Price
  • Date: 2016-06-15 14:47:59 UTC
  • Revision ID: larry.price@canonical.com-20160615144759-6wopn0gxwgta3x1n
Updating QMLTermWidget and removing unnecessary konsole codebase

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
        shortcut: "Ctrl+Shift+V"
17
17
    }
18
18
 
 
19
    Action{
 
20
        onTriggered: searchButton.visible = !searchButton.visible
 
21
        shortcut: "Ctrl+F"
 
22
    }
 
23
 
19
24
    QMLTermWidget {
20
25
        id: terminal
21
26
        anchors.fill: parent
22
27
        font.family: "Monospace"
23
 
        font.pointSize: 12 
 
28
        font.pointSize: 12
24
29
        colorScheme: "cool-retro-term"
25
30
        session: QMLTermSession{
26
 
            id: mainsession
 
31
            id: mainsession
27
32
            initialWorkingDirectory: "$HOME"
 
33
            onMatchFound: {
 
34
                console.log("found at: %1 %2 %3 %4".arg(startColumn).arg(startLine).arg(endColumn).arg(endLine));
 
35
            }
 
36
            onNoMatchFound: {
 
37
                console.log("not found");
 
38
            }
28
39
        }
29
40
        onTerminalUsesMouseChanged: console.log(terminalUsesMouse);
30
41
        onTerminalSizeChanged: console.log(terminalSize);
40
51
                anchors.fill: parent
41
52
            }
42
53
        }
 
54
 
 
55
    }
 
56
 
 
57
    Button {
 
58
        id: searchButton
 
59
        text: "Find version"
 
60
        anchors.bottom: parent.bottom
 
61
        anchors.right: parent.right
 
62
        visible: false
 
63
        onClicked: mainsession.search("version");
43
64
    }
44
65
    Component.onCompleted: terminal.forceActiveFocus();
45
66
}