[keyboard] changes to the keyboardmodel to work with qml

This commit is contained in:
Camilo Higuita 2020-04-03 10:18:07 +02:00 committed by Adriaan de Groot
parent 0872de7910
commit 1a46e08cc2
4 changed files with 63 additions and 20 deletions

View file

@ -1,6 +1,7 @@
/* === This file is part of Calamares - <https://github.com/calamares> ===
*
* Copyright 2019-2020, Adriaan de Groot <groot@kde.org>
* Copyright 2020, Camilo Higuita <milo.h@aol.com> *
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -18,11 +19,6 @@
#include "Config.h"
#include <QDebug>
#include <QProcess>
#include <QApplication>
#include <QTimer>
#include "keyboardwidget/keyboardpreview.h"
#include "SetKeyboardLayoutJob.h"
@ -31,6 +27,10 @@
#include "utils/Logger.h"
#include "utils/Retranslator.h"
#include <QProcess>
#include <QApplication>
#include <QTimer>
KeyboardModelsModel::KeyboardModelsModel(QObject* parent) : QAbstractListModel(parent)
{
detectModels();