<commit_before>/*
 * Copyright 2011 Intel Corporation.
 *
 * This program is licensed under the terms and conditions of the
 * Apache License, version 2.0.  The full text of the Apache License is at	
 * http://www.apache.org/licenses/LICENSE-2.0
 */

import Qt 4.7

BorderImage {
    id: container

    property alias text: input.text
    property alias defaultText: fakeText.text
    property alias textInput: input
    property alias inputMethodHints: input.inputMethodHints

    border.top: 10
    border.bottom: 10
    border.left: 10
    border.right: 10

    height: 50
    source: "image://theme/email/frm_textfield_l"

    signal textChanged

    Text {
        id: fakeText
        x: 15
        y: 15
        anchors.verticalCenter: parent.verticalCenter

        font.pixelSize: theme_fontPixelSizeLarge
        color: "slategrey"

        visible: (input.text == "")

        Connections {
            target: input
            onTextChanged: {
                fakeText.visible = (input.text == "")
            }
        }

    }

    TextInput {
        id: input

        x: 15
        y: 15
        width: parent.width - 30
        anchors.verticalCenter: parent.verticalCenter

        font.pixelSize: theme_fontPixelSizeLarge

        // TODO: Add this capability back once it has been proven
        //       to work across the entire stack
        CCPContextArea {
            editor: parent<commit_msg>Fix BMC#5499 TextEntry field should be top aligned not vertically centered<commit_after>/*
 * Copyright 2011 Intel Corporation.
 *
 * This program is licensed under the terms and conditions of the
 * Apache License, version 2.0.  The full text of the Apache License is at	
 * http://www.apache.org/licenses/LICENSE-2.0
 */

import Qt 4.7

BorderImage {
    id: container

    property alias text: input.text
    property alias defaultText: fakeText.text
    property alias textInput: input
    property alias inputMethodHints: input.inputMethodHints

    border.top: 10
    border.bottom: 10
    border.left: 10
    border.right: 10

    height: 50
    source: "image://theme/email/frm_textfield_l"

    signal textChanged

    Text {
        id: fakeText
        x: 15
        y: 15
        anchors {top:  parent.top; topMargin: 13 }

        font.pixelSize: theme_fontPixelSizeLarge
        color: "slategrey"

        visible: (input.text == "")

        Connections {
            target: input
            onTextChanged: {
                fakeText.visible = (input.text == "")
            }
        }

    }

    TextInput {
        id: input

        x: 15
        y: 15
        width: parent.width - 30
        anchors {top:  parent.top; topMargin: 13 }

        font.pixelSize: theme_fontPixelSizeLarge

        // TODO: Add this capability back once it has been proven
        //       to work across the entire stack
        CCPContextArea {
            editor: parent
{'fraction_non_alphanumeric': 0.07623318385650224, 'fraction_numerical': 0.023456364263539153, 'mean_word_length': 1.9682702149437052, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2815516', 'n_tokens_mistral': 875, 'n_tokens_neox': 789, 'n_words': 255}