Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Add documentation to new generalized widgets.
Wolthera van Hövell tot Westerflier18048a4f9cb7
diff --git a/qmlmodules/components/qml/ResourcePopup.qml b/qmlmodules/components/qml/ResourcePopup.qmlindex 54060447df..5af72a9274 100644--- a/qmlmodules/components/qml/ResourcePopup.qml+++ b/qmlmodules/components/qml/ResourcePopup.qml@@ -21,14 +21,45 @@ Button {//--- Model setup. ---//+ /*+ \qmlProperty modelWrapper+ The resource model wrapper of the resource view. Can be replaced+ to have two resource views have the same model.+ */property alias modelWrapper : resourceView.modelWrapper;++ /*+ \qmlProperty useFileName+ whether to search against filename or regular name.+ */property bool useFileName : true;+ /*+ \qmlProperty view+ The resource view inside the popup.+ */property alias view: resourceView;+ /*+ \qmlProperty resourceType+ A string corresponding to KisResourceTypes.h ResourceType.+ */property alias resourceType: resourceView.resourceType;+ /*+ \qmlProperty resourceDelegate+ The delegate used for the list inside the resource view.+ */property alias resourceDelegate: resourceView.resourceDelegate;+ /*+ \qmlProperty resourceDelegate+ Whether the add-resource row is visible.+ This contains the import and delete buttons.+ */property alias addResourceRowVisible: resourceView.addResourceRowVisible;+ /*+ \qmlProperty placeholderText+ The placeholder text when the text input is empty.+ */property alias placeholderText: textInput.placeholderText;Connections {diff --git a/qmlmodules/components/qml/ResourceView.qml b/qmlmodules/components/qml/ResourceView.qmlindex 204b70b6fd..ddc4cc8936 100644--- a/qmlmodules/components/qml/ResourceView.qml+++ b/qmlmodules/components/qml/ResourceView.qml@@ -52,6 +52,10 @@ Control {*/property alias resourceDelegate : view.delegate;+ /*+ \qmlProperty addResourceRowVisible+ Whether the resource row should be visible.+ */property alias addResourceRowVisible: addResourceRow.visible;/*\qmlProperty resourceDelegatediff --git a/qmlmodules/components/qml/resourceDelegates/ResourceDelegateBase.qml b/qmlmodules/components/qml/resourceDelegates/ResourceDelegateBase.qmlindex e9b4cf74f0..d13ea66a1c 100644--- a/qmlmodules/components/qml/resourceDelegates/ResourceDelegateBase.qml+++ b/qmlmodules/components/qml/resourceDelegates/ResourceDelegateBase.qml@@ -8,14 +8,31 @@ import QtQuick.Controls 2.15import QtQuick.Layouts 1.15import org.krita.components 1.0 as Kis+/**+ \qmltype ResourceDelegateBase+ base for KoResource delegates.+ */ItemDelegate {+ /*+ \qmlProperty model+ value automatically gained from the model and represents the model data.+ */required property var model;+ /*+ \qmlProperty resourceView+ the resource view this is set on.+ */property Kis.ResourceView resourceView;signal resourceLeftClicked();signal resourceDoubleClicked();highlighted: resourceView.highlightedIndex === model.index;++ /*+ \qmlProperty selected+ Whether the current item is selected in the model wrapper.+ */property bool selected: resourceView.modelWrapper.currentIndex === model.index;palette: resourceView.palette;