Changeset View
Changeset View
Standalone View
Standalone View
src/activities/magic-hat-minus/StarsBar.qml
Show All 26 Lines | 26 | Item { | |||
---|---|---|---|---|---|
27 | id: item | 27 | id: item | ||
28 | height: starsSize | 28 | height: starsSize | ||
29 | property int barGroupIndex | 29 | property int barGroupIndex | ||
30 | property int barIndex | 30 | property int barIndex | ||
31 | property int nbStarsOn: 0 | 31 | property int nbStarsOn: 0 | ||
32 | property bool authorizeClick: false | 32 | property bool authorizeClick: false | ||
33 | property int coefficient: 1 | 33 | property int coefficient: 1 | ||
34 | property bool coefficientVisible: false | 34 | property bool coefficientVisible: false | ||
35 | property var maxRange | | |||
36 | property int starsSize | 35 | property int starsSize | ||
jjazeix: int? | |||||
37 | property string backgroundColor | 36 | property string backgroundColor | ||
38 | property string starsColor: "1" | 37 | property string starsColor: "1" | ||
39 | property Item theHat | 38 | property Item theHat | ||
40 | property alias repeaterStars: repeaterStars | 39 | property alias repeaterStars: repeaterStars | ||
41 | 40 | | |||
42 | Row { | 41 | Row { | ||
43 | id: rowlayout | 42 | id: rowlayout | ||
44 | height: item.height | 43 | height: item.height | ||
45 | spacing: 5 | 44 | spacing: 5 | ||
46 | GCText { | 45 | GCText { | ||
47 | id: text | 46 | id: text | ||
48 | visible: item.coefficientVisible | 47 | visible: item.coefficientVisible | ||
49 | text: qsTr("%1%2").arg(item.coefficient).arg("x") | 48 | //: text displaying coefficient with which the set of stars is to be multiplied along with multipli. | ||
use .arg() for translation, on some locale, it may not be "3 x" but "3x" or even "x3" or not x at all. jjazeix: use .arg() for translation, on some locale, it may not be "3 x" but "3x" or even "x3" or not x… | |||||
("%1x").arg(...) jjazeix: ("%1x").arg(...)
with a comment for translators above please :) (//: comment) | |||||
49 | text: qsTr("%1x").arg(item.coefficient) | ||||
50 | fontSizeMode: Text.HorizontalFit | 50 | fontSizeMode: Text.HorizontalFit | ||
51 | width: rowlayout.width / 10 | 51 | width: rowlayout.width / 10 | ||
52 | color: "white" | 52 | color: "white" | ||
53 | anchors.rightMargin: 20 | 53 | anchors.rightMargin: 20 | ||
54 | fontSize: tinySize | 54 | fontSize: tinySize | ||
55 | } | 55 | } | ||
56 | Repeater { | 56 | Repeater { | ||
57 | id: repeaterStars | 57 | id: repeaterStars | ||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |
int?