KIdentityManagement

identitytreedelegate.h
1/*
2 SPDX-FileCopyrightText: 2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QStyledItemDelegate>
10class QLineEdit;
11namespace KIdentityManagementWidgets
12{
13class IdentityTreeDelegate : public QStyledItemDelegate
14{
16public:
17 explicit IdentityTreeDelegate(QObject *parent = nullptr);
18 ~IdentityTreeDelegate() override;
19
20 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
21 void setEditorData(QWidget *editor, const QModelIndex &index) const override;
22 void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
23 void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &) const override;
24
25private:
26 QLineEdit *mLineEdit = nullptr;
27};
28}
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.