1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QABSTRACTITEMDELEGATE_P_H
5#define QABSTRACTITEMDELEGATE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19#include "qabstractitemdelegate.h"
20#include <private/qobject_p.h>
21
22#include <qvariant.h>
23#include <qmetatype.h>
24
25QT_REQUIRE_CONFIG(itemviews);
26
27QT_BEGIN_NAMESPACE
28
29class Q_AUTOTEST_EXPORT QAbstractItemDelegatePrivate : public QObjectPrivate
30{
31 Q_DECLARE_PUBLIC(QAbstractItemDelegate)
32public:
33 explicit QAbstractItemDelegatePrivate();
34
35 bool editorEventFilter(QObject *object, QEvent *event);
36 bool tryFixup(QWidget *editor);
37 QString textForRole(Qt::ItemDataRole role, const QVariant &value, const QLocale &locale, int precision = 6) const;
38 void _q_commitDataAndCloseEditor(QWidget *editor);
39};
40
41QT_END_NAMESPACE
42
43#endif // QABSTRACTITEMDELEGATE_P_H
44

source code of qtbase/src/widgets/itemviews/qabstractitemdelegate_p.h