mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
feat(styles): create global styles entry point and organize global styles feat(styles): implement base HTML element styles and utility classes for flexbox feat(styles): establish layout, position, spacing, and text utility classes feat(styles): introduce mixins for animations, cards, dialogs, flexbox, grid, and responsive design test(quick_guide): add component and metadata validation tests for quick_guide package test(ui_level6): implement metadata validation tests for ui_level6 package
23 lines
537 B
QML
23 lines
537 B
QML
import QtQuick
|
|
|
|
/**
|
|
* CRating.qml - simple star rating control
|
|
*/
|
|
Row {
|
|
id: root
|
|
property int value: 0
|
|
property int max: 5
|
|
property bool readOnly: false
|
|
spacing: 4
|
|
|
|
Repeater {
|
|
model: root.max
|
|
delegate: Text {
|
|
text: index < root.value ? "★" : "☆"
|
|
font.pixelSize: 18
|
|
color: index < root.value ? Theme.primary : Theme.onSurfaceVariant
|
|
MouseArea { anchors.fill: parent; enabled: !root.readOnly; onClicked: root.value = index+1 }
|
|
}
|
|
}
|
|
}
|