- qtgui
- qtdbus
- qtwidgets
- qtcore
- dtkcore
- qsettingbackend_zh
- dobject_zh
- abstractappender_zh
- abstractstringappender_zh
- dfilewatcher_zh
- outputdebugappender_zh
- dsettingsbackend_zh
- drecentmanager_zh
- ddesktopentry_zh
- consoleappender_zh
- gsettingsbackend_zh
- dsettingsgroup_zh
- dlogmanager_zh
- fileappender_zh
- dsettings_zh
- dfilesystemwatcher_zh
- dfilewatchermanager_zh
- dbasefilewatcher_zh
- dtkgui
- dtkwidget
- dviewitemaction_zh
- dstandarditem_zh
- dfiledialog_zh
- dclipeffectwidget_zh
- danchors_zh
- dgraphicsclipeffect_zh
- dstyle_zh
- dcoloredprogressbar_zh
- dbuttonboxbutton_zh
- dlabel_zh
- dtiplabel_zh
- darrowlinedrawer_zh
- daboutdialog_zh
- dsettingswidgetfactory_zh
- dsearchcombobox_zh
- dcrumbedit_zh
- dcommandlinkbutton_zh
- dsettingsdialog_zh
- dwindowoptionbutton_zh
- dspinner_zh
- dsimplelistview_zh
- dwaterprogress_zh
- dmainwindow_zh
- dhidpihelper_zh
- dslider_zh
- dpasswordedit_zh
- danchorinfo_zh
- dmpriscontrol_zh
- darrowbutton_zh
- dbackgroundgroup_zh
- dcircleprogress_zh
- dwarningbutton_zh
- dwindowclosebutton_zh
- dvideowidget_zh
- dfilechooseredit_zh
- dblureffectwidget_zh
- darrowrectangle_zh
- dsearchedit_zh
- dfloatingmessage_zh
- dswitchlineexpand_zh
- dtabbar_zh
- dlineedit_zh
- danchorsbase_zh
- dstylediconengine_zh
- dwindowmaxbutton_zh
- dpageindicator_zh
- dsuggestbutton_zh
- dapplicationsettings_zh
- dtooltip_zh
- dwindowminbutton_zh
- ddrawer_zh
- dtitlebar_zh
- dsimplelistitem_zh
- dpicturesequenceview_zh
dsettingswidgetfactory_zh
Class::DSettingsWidgetFactory
暂无该属性
Detailed Description
DSettingsWidgetFactory 是一个用于构造Deepin风格的设置对话框的控件。\n 对于每种控件,均由一个id和对应的构造函数来组成, DSettingsWidgetFactory 内置了许多基础的控件,包括:\n checkbox/lineedit/combobox/spinbutton/buttongroup/radiogroup/slider等。 ~chinese
DSettingsWidgetFactory::metaObject
const QMetaObject * metaObject() const
DSettingsWidgetFactory::qt_metacast
void * qt_metacast(const char *)
DSettingsWidgetFactory::qt_metacall
int qt_metacall(QMetaObject::Call , int , void **)
DSettingsWidgetFactory::tr
QString tr(const char *s, const char *c, int n)
DSettingsWidgetFactory::trUtf8
QString trUtf8(const char *s, const char *c, int n)
DSettingsWidgetFactory::qt_static_metacall
void qt_static_metacall(QObject *, QMetaObject::Call , int , void **)
Class::QPrivateSignal
DSettingsWidgetFactory::QPrivateSignal
Detailed Description
typedef DSettingsWidgetFactory::WidgetCreateHandler
自定义的控件构建函数,一般接受一个 Dtk::Core::DSettingsOption 作为参数。\n
typedef DSettingsWidgetFactory::ItemCreateHandler
DSettingsWidgetFactory::DSettingsWidgetFactory
DSettingsWidgetFactory(QObject *parent)
DSettingsWidgetFactory::~DSettingsWidgetFactory
~DSettingsWidgetFactory()
DSettingsWidgetFactory::registerWidget
void registerWidget(const QString &viewType, int handler)
向Factory注册一种类型viewType。注册该类型后,可以通过在DSettings的DOption中,设置type为对应的viewType,这样Factory在构建viewType对应的控件时,会调用handler所指定的方法来构建。 viewType 控件类型,建议为全局唯一的字符串,且不要和内部类型重复,参考 Dtk::Widget::DSettingsWidgetFactory handler 自定义的控件构建函数, 参考 Dtk::Widget::DSettingsWidgetFactory::WidgetCreateHandler
DSettingsWidgetFactory::createWidget
QWidget * createWidget(int option)
DSettingsWidgetFactory::createWidget
QWidget * createWidget(const QByteArray &translateContext, int option)
DSettingsWidgetFactory::createItem
int createItem(int ) const
DSettingsWidgetFactory::createItem
int createItem(const QByteArray &, int ) const
DSettingsWidgetFactory::createStandardItem
int createStandardItem(const QByteArray &, int *, QWidget *)
DSettingsWidgetFactory::d_func
DSettingsWidgetFactoryPrivate * d_func()
DSettingsWidgetFactory::d_func
const DSettingsWidgetFactoryPrivate * d_func() const