Krita Source Code Documentation
Loading...
Searching...
No Matches
KoConfigAuthorPage.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 SPDX-FileCopyrightText: 2002 Laurent Montel <lmontel@mandrakesoft.com>
3 SPDX-FileCopyrightText: 2006-2007 Jan Hambrecht <jaham@gmx.net>
4 SPDX-FileCopyrightText: 2012 C. Boemann <cbo@boemann.dk>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#ifndef KOCONFIGAUTHORPAGE_H
10#define KOCONFIGAUTHORPAGE_H
11
12#include <QWidget>
13#include <QStyledItemDelegate>
14
15#include "kritawidgets_export.h"
16
17class KRITAWIDGETS_EXPORT KoConfigAuthorPage : public QWidget
18{
19 Q_OBJECT
20
21public:
23 ~KoConfigAuthorPage() override;
24
25 void apply();
26
27private Q_SLOTS:
28 void profileChanged(int i);
29 void addUser();
30 void deleteUser();
31 void addContactEntry();
32 void removeContactEntry();
33
34private:
35 class Private;
36 Private * const d;
37};
38
44class KoContactInfoDelegate : public QStyledItemDelegate
45{
46public:
47 KoContactInfoDelegate(QWidget *parent, QStringList contactModes);
48 ~KoContactInfoDelegate() override;
49
50public:
51 QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
53};
54
55
56#endif // KOCONFIGAUTHORPAGE_H
The KoContactInfoDelegate class.
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
KoContactInfoDelegate(QWidget *parent, QStringList contactModes)