From 20e919fa559d1582f696473dd128b1f359deec1a Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 3 Mar 2022 13:33:12 -0600 Subject: [PATCH] Font combobox works --- .dir-locals.el | 2 +- src/qml/presenter/SongEditor.qml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.dir-locals.el b/.dir-locals.el index cca5fb8..0498dc6 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -3,4 +3,4 @@ ((nil . ((projectile-project-run-cmd . "./build/bin/presenter") (compilation-read-command . (nil)) - (projectile-project-compilation-cmd . "cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B buld/ . && make --dir build/")))) + (projectile-project-compilation-cmd . "cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B build/ . && make --dir build/")))) diff --git a/src/qml/presenter/SongEditor.qml b/src/qml/presenter/SongEditor.qml index 3dcea41..07d6fda 100644 --- a/src/qml/presenter/SongEditor.qml +++ b/src/qml/presenter/SongEditor.qml @@ -1,5 +1,6 @@ import QtQuick 2.13 import QtQuick.Controls 2.15 as Controls +import QtQuick.Dialogs 1.3 import QtQuick.Layouts 1.2 import org.kde.kirigami 2.13 as Kirigami import "./" as Presenter @@ -22,7 +23,10 @@ Item { anchors.fill: parent Controls.ComboBox { - model: ["VictorMono", "Calibri", "Arial", "Quicksand"] + model: Qt.fontFamilies() + implicitWidth: 300 + editable: true + onCurrentIndexChanged: showPassiveNotification(currentText) } Controls.SpinBox { editable: true