Warning, file /graphics/krita/libs/ui/input/config/kis_input_profile_model.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  * This file is part of the KDE project
0003  * SPDX-FileCopyrightText: 2013 Arjen Hiemstra <ahiemstra@heimr.nl>
0004  *
0005  * SPDX-License-Identifier: GPL-2.0-or-later
0006  */
0007 
0008 #ifndef KISINPUTPROFILEMODEL_H
0009 #define KISINPUTPROFILEMODEL_H
0010 
0011 #include <QStringListModel>
0012 
0013 /**
0014  * \brief A model providing a list of profiles available.
0015  */
0016 class KisInputProfileModel : public QStringListModel
0017 {
0018     Q_OBJECT
0019 public:
0020     KisInputProfileModel(QObject *parent = 0);
0021     ~KisInputProfileModel() override;
0022 
0023     bool setData(const QModelIndex &index, const QVariant &value, int = Qt::EditRole) override;
0024 
0025     QString profileName(const QModelIndex &index);
0026     QModelIndex find(const QString &name);
0027 
0028 private Q_SLOTS:
0029     void profileNamesChanged();
0030 };
0031 
0032 #endif // KISINPUTPROFILEMODEL_H