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++
/*
* SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.0
import QtQuick.Controls 2.15
import org.krita.components 1.0 as Kis
Kis.ResourcePopup {
id: resourceCmb;
resourceType: "fontfamilies";
addResourceRowVisible: false;
resourceDelegate: Kis.FontFamilyDelegate {
id: fontDelegate;
locales: resourceCmb.locales;
onResourceLeftClicked: {
resourceCmb.activated();
}
}
view.preferredHeight: 300; // roughly 3.5 times the font delegate size;
}