Files
metabuilder/fakemui/qml-components/form/CRating.qml
JohnDoe6345789 58a94d0489 feat(styles): add component-specific styles for TaskDetail, SearchDialog, and Documentation
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
2025-12-30 02:29:58 +00:00

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 }
}
}
}