Incidenceeditor

attendeelineeditdelegate.h
1/*
2 * SPDX-FileCopyrightText: 2014 Sandro Knauß <knauss@kolabsys.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
5 */
6
7#pragma once
8
9#include <QModelIndex>
10#include <QString>
11#include <QStyledItemDelegate>
12
13#include <KCompletion>
14
15namespace IncidenceEditorNG
16{
17/** show a AttendeeLineEdit as editor */
19{
21public:
22 explicit AttendeeLineEditDelegate(QObject *parent = nullptr);
23
24 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
25 void setEditorData(QWidget *editor, const QModelIndex &index) const override;
26 void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
27 void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
28
29 virtual void setCompletionMode(KCompletion::CompletionMode mode);
30
31public Q_SLOTS:
32 bool helpEvent(QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index) override;
33
34private:
35 void rightPressed();
36 void leftPressed();
37 const QString mToolTip;
38 const QString mWhatsThis;
40};
41}
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
virtual bool event(QEvent *e)
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Nov 6 2024 12:06:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.