~lukas-kde/unity8/dashboard

« back to all changes in this revision

Viewing changes to tests/qmltests/Greeter/TestView.qml

  • Committer: Lukáš Tinkl
  • Date: 2017-01-26 12:13:17 UTC
  • mfrom: (2749.1.49 unity8)
  • Revision ID: lukas.tinkl@canonical.com-20170126121317-qms39s9pikclidbe
merge trunk, fix conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    property bool alphanumeric
33
33
    property var userModel
34
34
    property var infographicModel
 
35
    property bool waiting
35
36
    readonly property bool fullyShown: _fullyShown
36
37
    readonly property bool required: _required
37
38
    readonly property bool animating: _animating
45
46
    signal tease()
46
47
    signal emergencyCall()
47
48
 
48
 
    signal _showMessageCalled(string html)
49
 
    signal _showPromptCalled(string text, bool isSecret, bool isDefaultPrompt)
50
49
    signal _showLastChanceCalled()
51
50
    signal _hideCalled()
52
 
    signal _notifyAuthenticationSucceededCalled(bool showFakePassword)
 
51
    signal _showFakePasswordCalled()
53
52
    signal _notifyAuthenticationFailedCalled()
54
53
    signal _showErrorMessageCalled(string msg)
55
 
    signal _resetCalled(bool forceShow)
 
54
    signal _forceShowCalled()
56
55
    signal _tryToUnlockCalled(bool toTheRight)
57
56
 
58
 
    function showMessage(html) {
59
 
        _showMessageCalled(html);
60
 
    }
61
 
 
62
 
    function showPrompt(text, isSecret, isDefaultPrompt) {
63
 
        _showPromptCalled(text, isSecret, isDefaultPrompt);
64
 
    }
65
 
 
66
57
    function showLastChance() {
67
58
        _showLastChanceCalled();
68
59
    }
73
64
        _fullyShown = false;
74
65
    }
75
66
 
76
 
    function notifyAuthenticationSucceeded(showFakePassword) {
77
 
        _notifyAuthenticationSucceededCalled(showFakePassword);
 
67
    function showFakePassword() {
 
68
        _showFakePasswordCalled();
78
69
    }
79
70
 
80
71
    function notifyAuthenticationFailed() {
85
76
        _showErrorMessageCalled(msg);
86
77
    }
87
78
 
88
 
    function reset(forceShow) {
89
 
        _resetCalled(forceShow);
 
79
    function forceShow() {
 
80
        _forceShowCalled();
90
81
    }
91
82
 
92
83
    function tryToUnlock(toTheRight) {