Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_input_profile_model.h
Go to the documentation of this file.
1/*
2 * This file is part of the KDE project
3 * SPDX-FileCopyrightText: 2013 Arjen Hiemstra <ahiemstra@heimr.nl>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef KISINPUTPROFILEMODEL_H
9#define KISINPUTPROFILEMODEL_H
10
11#include <QStringListModel>
12
16class KisInputProfileModel : public QStringListModel
17{
18 Q_OBJECT
19public:
20 KisInputProfileModel(QObject *parent = 0);
21 ~KisInputProfileModel() override;
22
23 bool setData(const QModelIndex &index, const QVariant &value, int = Qt::EditRole) override;
24
25 QString profileName(const QModelIndex &index);
26 QModelIndex find(const QString &name);
27
28private Q_SLOTS:
30};
31
32#endif // KISINPUTPROFILEMODEL_H
float value(const T *src, size_t ch)
A model providing a list of profiles available.
QString profileName(const QModelIndex &index)
KisInputProfileModel(QObject *parent=0)
QModelIndex find(const QString &name)
bool setData(const QModelIndex &index, const QVariant &value, int=Qt::EditRole) override