<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

//FrontPanelIconTextItem - base class for standard content items in the
//Front panel - this contains standard visual properties that are common


FrontPanelContentItem {
    id: fpITI
    property alias imageSource: fpImage.source
    property alias text: fpText.text
    property bool zoomImage: false
    property string fallBackImage: ""

    contentHeight: panelSize.contentItemHeight
    mouseAreaActive: true

    Image {
        id: fpImage
        height: (fpITI.zoomImage ? width : sourceSize.width)
        width: (fpITI.zoomImage ? panelSize.contentIconSize : sourceSize.width) //THEME - VERIFY
        fillMode: Image.PreserveAspectCrop
        anchors.left: parent.left
        anchors.leftMargin: panelSize.contentSideMargin
        anchors.verticalCenter: parent.verticalCenter
        asynchronous: true

        Component.onCompleted: {
            if ((fallBackImage != "") && ((fpImage.status == Image.Error) || (fpImage.status == Image.Null))) {
                fpImage.source = fallBackImage;
            }
        }
    }

    Text {<commit_msg>Fix BMC#17044 - Settings icons in my tablet should not be statically sized<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

//FrontPanelIconTextItem - base class for standard content items in the
//Front panel - this contains standard visual properties that are common


FrontPanelContentItem {
    id: fpITI
    property alias imageSource: fpImage.source
    property alias text: fpText.text
    property bool zoomImage: false
    property string fallBackImage: ""

    contentHeight: panelSize.contentItemHeight
    mouseAreaActive: true

    Image {
        id: fpImage
        height: (fpITI.zoomImage ? width : sourceSize.height)
        width: (fpITI.zoomImage ? panelSize.contentIconSize : sourceSize.width) //THEME - VERIFY
        fillMode: Image.PreserveAspectCrop
        anchors.left: parent.left
        anchors.leftMargin: panelSize.contentSideMargin
        anchors.verticalCenter: parent.verticalCenter
        asynchronous: true

        Component.onCompleted: {
            if ((fallBackImage != "") && ((fpImage.status == Image.Error) || (fpImage.status == Image.Null))) {
                fpImage.source = fallBackImage;
            }
        }
    }

    Text {
{'fraction_non_alphanumeric': 0.0841874084919473, 'fraction_numerical': 0.009150805270863836, 'mean_word_length': 2.7644628099173554, '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': '6190631', 'n_tokens_mistral': 763, 'n_tokens_neox': 735, 'n_words': 225}