MauiKit Controls

mauilinux.cpp
1/*
2 * Copyright 2018 Camilo Higuita <milo.h@aol.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License as
6 * published by the Free Software Foundation; either version 2, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20#include "mauilinux.h"
21
22#include <QDebug>
23
24MAUIKDE *MAUIKDE::qmlAttachedProperties(QObject *object)
25{
26 Q_UNUSED(object)
27 return MAUIKDE::instance();
28}
29
30MAUIKDE::MAUIKDE(QObject *parent)
31 : AbstractPlatform(parent)
32{
33}
34
35
36void MAUIKDE::setColorScheme(const QString &schemeName)
37{
38 Q_UNUSED(schemeName)
39}
40
41bool MAUIKDE::hasKeyboard()
42{
43 return true;
44}
45
46bool MAUIKDE::hasMouse()
47{
48 return true;
49}
50
51void MAUIKDE::shareFiles(const QList<QUrl> &urls)
52{
53 Q_EMIT this->shareFilesRequest(QUrl::toStringList(urls));
54}
55
56void MAUIKDE::shareText(const QString &)
57{
58}
59
60
61bool MAUIKDE::darkModeEnabled()
62{
63 return false;
64}
The AbstractPlatform class Defines abstract methods and properties that are common to be implemeted b...
The MAUIKDE class.
Definition mauilinux.h:34
static void setColorScheme(const QString &schemeName)
setColorScheme
Definition mauilinux.cpp:36
Q_EMITQ_EMIT
QStringList toStringList(const QList< QUrl > &urls, FormattingOptions options)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.