QRC and GUI Test #4

This commit is contained in:
Linuxero committed 2026-11-15 17:06:22 +01:00
1 parent 828534c1f5
commit 15a716d107
11 files changed
+628 -6

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import QtQuick
import QtQuick.Controls
ApplicationWindow {
visible: true
width: 760
height: 560
minimumWidth: 480
minimumHeight: 360
title: "Mageia Control Center"
PluginList {
anchors.fill: parent
anchors.margins: 16
plugins: registeredPlugins
}
}
+41
View File
@@ -0,0 +1,41 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Frame {
id: root
required property var plugin
implicitHeight: content.implicitHeight + topPadding + bottomPadding
padding: 14
ColumnLayout {
id: content
width: parent.width
spacing: 6
Label {
Layout.fillWidth: true
text: root.plugin.name
font.pixelSize: 18
font.bold: true
wrapMode: Text.Wrap
}
Label {
Layout.fillWidth: true
text: root.plugin.description
wrapMode: Text.Wrap
}
Label {
Layout.fillWidth: true
text: root.plugin.category + " / " + root.plugin.subcategory
color: palette.placeholderText
font.pixelSize: 12
wrapMode: Text.Wrap
}
}
}
+52
View File
@@ -0,0 +1,52 @@
import QtQuick
import QtQuick.Controls
Column {
id: root
property var plugins: []
spacing: 12
Label {
width: parent.width
text: "Available tools"
font.pixelSize: 24
font.bold: true
}
Label {
width: parent.width
text: root.plugins.length === 1
? "1 tool"
: root.plugins.length + " tools"
color: palette.placeholderText
}
ListView {
id: pluginView
width: parent.width
height: Math.max(0, root.height - y)
clip: true
spacing: 10
model: root.plugins
boundsBehavior: Flickable.StopAtBounds
delegate: PluginCard {
required property var modelData
width: pluginView.width
plugin: modelData
}
ScrollBar.vertical: ScrollBar {}
}
Label {
anchors.centerIn: parent
visible: root.plugins.length === 0
text: "No tools are currently available."
color: palette.placeholderText
}
}