4#ifndef ABSTRACTWIDGETDATABASE_H
5#define ABSTRACTWIDGETDATABASE_H
7#include <QtDesigner/sdk_global.h>
9#include <QtCore/qobject.h>
10#include <QtCore/qlist.h>
16class QDesignerFormEditorInterface;
27 virtual QString
name()
const = 0;
28 virtual void setName(
const QString &name) = 0;
30 virtual QString
group()
const = 0;
31 virtual void setGroup(
const QString &group) = 0;
42 virtual QIcon
icon()
const = 0;
43 virtual void setIcon(
const QIcon &icon) = 0;
71 explicit QDesignerWidgetDataBaseInterface(QObject *parent =
nullptr);
72 virtual ~QDesignerWidgetDataBaseInterface();
74 virtual int count()
const;
75 virtual QDesignerWidgetDataBaseItemInterface *item(
int index)
const;
77 virtual int indexOf(QDesignerWidgetDataBaseItemInterface *item)
const;
78 virtual void insert(
int index, QDesignerWidgetDataBaseItemInterface *item);
79 virtual void append(QDesignerWidgetDataBaseItemInterface *item);
81 virtual int indexOfObject(QObject *object,
bool resolveName =
true)
const;
82 virtual int indexOfClassName(
const QString &className,
bool resolveName =
true)
const;
84 virtual QDesignerFormEditorInterface *core()
const;
86 bool isContainer(QObject *object,
bool resolveName =
true)
const;
87 bool isCustom(QObject *object,
bool resolveName =
true)
const;
93 QList<QDesignerWidgetDataBaseItemInterface *> m_items;
Combined button and popup list for selecting options.