~ci-train-bot/ubuntu-settings-components/ubuntu-settings-components-ubuntu-yakkety-1993

« back to all changes in this revision

Viewing changes to plugins/Ubuntu/Settings/Menus/TextMessageMenu.qml

  • Committer: Bileto Bot
  • Date: 2016-10-11 09:36:08 UTC
  • mfrom: (146.3.109 slots-layouts)
  • Revision ID: ci-train-bot@canonical.com-20161011093608-w2zqafz4tiqvh29q
* Menus: rewrite components using ListItemLayout's and SlotsLayout's
* Bump revision to 0.10, as per Components removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2013 Canonical Ltd.
 
2
 * Copyright 2013-2016 Canonical Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU Lesser General Public License as published by
16
16
 * Authors:
17
17
 *      Renato Araujo Oliveira Filho <renato@canonical.com>
18
18
 *      Olivier Tilloy <olivier.tilloy@canonical.com>
 
19
 *      Marco Trevisan <marco.trevisan@canonical.com>
19
20
 */
20
21
 
21
22
import QtQuick 2.4
25
26
SimpleMessageMenu {
26
27
    id: menu
27
28
 
28
 
    property bool replyEnabled: true
29
 
    property string replyButtonText: i18n.dtr("ubuntu-settings-components", "Send")
30
 
    property string replyHintText
 
29
    property alias replyEnabled: actionTextField.activateEnabled
 
30
    property alias replyButtonText: actionTextField.buttonText
 
31
    property alias replyHintText: actionTextField.textHint
31
32
 
32
33
    signal replied(string value)
33
34
 
34
35
    footer: USC.ActionTextField {
35
 
        activateEnabled: menu.replyEnabled
36
 
        buttonText: menu.replyButtonText
37
 
        textHint: menu.replyHintText
 
36
        id: actionTextField
 
37
        activateEnabled: true
 
38
        buttonText: i18n.dtr("ubuntu-settings-components", "Send")
38
39
 
39
40
        onActivated: {
40
41
            menu.replied(value);