Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
1.3 KB
Raw Blame
/* This file is part of the KDE project
   SPDX-FileCopyrightText: 2002 Laurent Montel <[email protected]>
   SPDX-FileCopyrightText: 2006-2007 Jan Hambrecht <[email protected]>
   SPDX-FileCopyrightText: 2012 C. Boemann <[email protected]>

   SPDX-License-Identifier: LGPL-2.0-or-later
*/

#ifndef KOCONFIGAUTHORPAGE_H
#define KOCONFIGAUTHORPAGE_H

#include <QWidget>
#include <QStyledItemDelegate>

#include "kritawidgets_export.h"

class KRITAWIDGETS_EXPORT KoConfigAuthorPage : public QWidget
{
    Q_OBJECT

public:
    KoConfigAuthorPage();
    ~KoConfigAuthorPage() override;

    void apply();

private Q_SLOTS:
    void profileChanged(int i);
    void addUser();
    void deleteUser();
    void addContactEntry();
    void removeContactEntry();

private:
    class Private;
    Private * const d;
};

/**
 * @brief The KoContactInfoDelegate class
 *
 * quick delegate subclass to allow a qcombobox for the type.
 */
class KoContactInfoDelegate : public QStyledItemDelegate
{
public:
    KoContactInfoDelegate(QWidget *parent, QStringList contactModes);
    ~KoContactInfoDelegate() override;

public:
    QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
    QStringList m_contactModes;
};


#endif // KOCONFIGAUTHORPAGE_H