Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ImageTile.qml « WelcomePages « qml « resources - github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b8f40ed25ff95335b12a102cbf9112d86baa25da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2019 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.

import QtQuick 2.10
import QtQuick.Controls 2.3

import UM 1.5 as UM


//
// This component places a text on top of an image.
//
Column
{
    leftPadding: UM.Theme.getSize("default_margin").width
    rightPadding: UM.Theme.getSize("default_margin").width
    spacing: UM.Theme.getSize("default_margin").height
    property alias text: label.text
    property alias imageSource: image.source

    UM.Label
    {
        id: label
        width: image.width
        anchors.horizontalCenter: image.horizontalCenter
        horizontalAlignment: Text.AlignHCenter
        text: ""
        wrapMode: Text.WordWrap
    }

    Image
    {
        id: image
        source: ""
    }
}