5#ifndef QITEMEDITORFACTORY_P_H
6#define QITEMEDITORFACTORY_P_H
20#include <QtWidgets/private/qtwidgetsglobal_p.h>
22#if QT_CONFIG(lineedit)
25QT_REQUIRE_CONFIG(itemviews);
29class QExpandingLineEdit :
public QLineEdit
34 QExpandingLineEdit(QWidget *parent);
36 void setWidgetOwnsGeometry(
bool value)
38 widgetOwnsGeometry = value;
42 void changeEvent(QEvent *e) override;
45 void resizeToContents();
48 void updateMinimumWidth();
51 bool widgetOwnsGeometry;
59#if QT_CONFIG(datetimeedit)
60#include <qdatetimeedit.h>
63class QItemEditorDateTimeEdit :
public QDateTimeEdit
67 Q_PROPERTY(QDateTime dateTime READ dateTime WRITE setDateTimeItemEditor NOTIFY dateTimeChanged USER
true)
68 using QDateTimeEdit::QDateTimeEdit;
70 void setDateTimeItemEditor(
const QDateTime &datetime);
QWidget * createEditor(int userType, QWidget *parent) const override
Creates an editor widget with the given parent for the specified userType of data,...
QDefaultItemEditorFactory()
QByteArray valuePropertyName(int) const override
Returns the property name used to access data for the given userType of data.
static QItemEditorFactory * q_default_factory
~QDefaultFactoryCleaner()