kdelibs/kdeui/spell/kspellconfigwidget.h
Ivailo Monev 75b9cfddd3 generic: const-ify private data pointers where copying is disabled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-23 06:49:59 +02:00

53 lines
1.4 KiB
C++

/* This file is part of the KDE libraries
Copyright (C) 2023 Ivailo Monev <xakepa10@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2, as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KSPELLCONFIGWIDGET_H
#define KSPELLCONFIGWIDGET_H
#include "kdeui_export.h"
#include "kconfig.h"
#include <QWidget>
class KSpellConfigWidgetPrivate;
/*!
Widget to show and change spelling configuration.
@since 4.23
*/
class KDEUI_EXPORT KSpellConfigWidget : public QWidget
{
Q_OBJECT
public:
KSpellConfigWidget(KConfig *config, QWidget *parent = nullptr);
~KSpellConfigWidget();
public Q_SLOTS:
void save();
void slotDefault();
Q_SIGNALS:
void configChanged();
private:
KSpellConfigWidgetPrivate *const d;
Q_DISABLE_COPY(KSpellConfigWidget);
};
#endif // KSPELLCONFIGWIDGET_H