File indexing completed on 2024-04-21 03:56:02

0001 // SPDX-FileCopyrightText: 2021 Carl Schwan <carl@carlschwan.eu>
0002 // SPDX-License-Identifier: LGPL-2.0-or-later
0003 
0004 #include "spellcheckattached.h"
0005 #include <QQuickItem>
0006 
0007 SpellCheckAttached::SpellCheckAttached(QObject *parent)
0008     : QObject(parent)
0009 {
0010 }
0011 
0012 SpellCheckAttached::~SpellCheckAttached()
0013 {
0014 }
0015 
0016 void SpellCheckAttached::setEnabled(bool enabled)
0017 {
0018     if (enabled == m_enabled) {
0019         return;
0020     }
0021 
0022     m_enabled = enabled;
0023     Q_EMIT enabledChanged();
0024 }
0025 
0026 bool SpellCheckAttached::enabled() const
0027 {
0028     return m_enabled;
0029 }
0030 
0031 SpellCheckAttached *SpellCheckAttached::qmlAttachedProperties(QObject *object)
0032 {
0033     return new SpellCheckAttached(object);
0034 }
0035 
0036 #include "moc_spellcheckattached.cpp"