File indexing completed on 2024-04-28 15:27:44
0001 // SPDX-FileCopyrightText: 2021 Carl Schwan <carl@carlschwan.eu> 0002 // SPDX-License-Identifier: LGPL-2.0-or-later 0003 0004 #include "spellcheckinghint.h" 0005 #include <QQuickItem> 0006 0007 SpellCheckingAttached::SpellCheckingAttached(QObject *parent) 0008 : QObject(parent) 0009 { 0010 } 0011 0012 SpellCheckingAttached::~SpellCheckingAttached() 0013 { 0014 } 0015 0016 void SpellCheckingAttached::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 SpellCheckingAttached::enabled() const 0027 { 0028 return m_enabled; 0029 } 0030 0031 SpellCheckingAttached *SpellCheckingAttached::qmlAttachedProperties(QObject *object) 0032 { 0033 return new SpellCheckingAttached(object); 0034 } 0035 0036 #include "moc_spellcheckinghint.cpp"