4#ifndef WIDGETBOXCATEGORYLISTVIEW_H
5#define WIDGETBOXCATEGORYLISTVIEW_H
7#include <QtDesigner/abstractwidgetbox.h>
9#include <QtWidgets/qlistview.h>
10#include <QtCore/qlist.h>
14class QDesignerFormEditorInterface;
15class QDesignerDnDItemInterface;
17class QSortFilterProxyModel;
35 void dropWidgets(
const QList<QDesignerDnDItemInterface*> &item_list);
40 int count(AccessMode am)
const;
47 void addWidget(
const QDesignerWidgetBoxInterface::Widget &widget,
const QIcon &icon,
bool editable);
57 void widgetBoxPressed(
const QString &name,
const QString &xml,
const QPoint &globalPos);
70 int mapRowToSource(
int filterRow)
const;
71 QSortFilterProxyModel *m_proxyModel;
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Returns the widget used to edit the item specified by index for editing.
WidgetBoxCategoryEntryDelegate(QWidget *parent=nullptr)
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
QDesignerWidgetBoxInterface::Widget widget
WidgetBoxCategoryEntry()=default
WidgetBoxCategoryEntry(const QDesignerWidgetBoxInterface::Widget &widget, const QString &filter, const QIcon &icon, bool editable)