26 typedef QPair<QWidget*, QWidget*> (ItemCreateHandler)(QObject *);
31 void registerWidget(
const QString &viewType, std::function<WidgetCreateHandler> handler);
32 void registerWidget(
const QString &viewType, std::function<ItemCreateHandler> handler);
34 QWidget *createWidget(QPointer<DTK_CORE_NAMESPACE::DSettingsOption> option);
35 QWidget *createWidget(
const QByteArray &translateContext, QPointer<DTK_CORE_NAMESPACE::DSettingsOption> option);
36 QPair<QWidget*, QWidget*> createItem(QPointer<DTK_CORE_NAMESPACE::DSettingsOption> option)
const;
37 QPair<QWidget*, QWidget*> createItem(
const QByteArray &translateContext, QPointer<DTK_CORE_NAMESPACE::DSettingsOption> option)
const;
38#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
39 D_DECL_DEPRECATED
static QWidget *createTwoColumWidget(DTK_CORE_NAMESPACE::DSettingsOption *option, QWidget *rightWidget);
40 D_DECL_DEPRECATED
static QWidget *createTwoColumWidget(
const QByteArray &translateContext, DTK_CORE_NAMESPACE::DSettingsOption *option, QWidget *rightWidget);
42 static QPair<QWidget*, QWidget*> createStandardItem(
const QByteArray &translateContext, DTK_CORE_NAMESPACE::DSettingsOption *option, QWidget *rightWidget);
45 QScopedPointer<DSettingsWidgetFactoryPrivate> dd_ptr;