DtkWidget 5.6.0.2
DTK Widget module
|
为使用DSettings的Dtk程序提供一个通用的设置对话框,这个对话框可以通过json配置文件来自动生成. 更多...
Public 槽 | |
void | updateSettings (DTK_CORE_NAMESPACE::DSettings *settings) |
void | updateSettings (const QByteArray &translateContext, DTK_CORE_NAMESPACE::DSettings *settings) |
void | setGroupVisible (const QString &groupKey, bool visible) |
![]() | |
void | moveToCenter () |
DAbstractDialog::moveToCenter moves the dialog to the center of the screen or its parent widget. 更多... | |
void | moveToTopRight () |
DAbstractDialog::moveToTopRight moves the dialog to the top right of the screen or its parent widget. 更多... | |
void | moveToCenterByRect (const QRect &rect) |
DAbstractDialog::moveToCenterByRect moves the dialog to the center of the rect. rect is the target rect. 更多... | |
void | moveToTopRightByRect (const QRect &rect) |
DAbstractDialog::moveToTopRightByRect moves the dialog to the top right corner of the rect. rect is the target rect. 更多... | |
void | setDisplayPosition (DisplayPosition displayPosition) |
DAbstractDialog::setDisplayPosition sets the position of the dialog. displayPosition is the target position. 更多... | |
Public 成员函数 | |
DSettingsDialog (QWidget *parent=nullptr) | |
DSettingsWidgetFactory * | widgetFactory () const |
获取当前对话框使用的控件构造工厂。 更多... | |
bool | groupIsVisible (const QString &groupKey) const |
void | setResetVisible (bool visible) |
DSettingsDialog::setResetVisible 设置恢复默认设置按钮是否显示 visible true显示 false隐藏 更多... | |
void | scrollToGroup (const QString &groupKey) |
DSettingsDialog::scrollToGroup 使对话框跳转到指定的 group 项目 groupKey DSettings中 groupKeys 以及其子项 childGroups 更多... | |
void | setIcon (const QIcon &icon) |
DSettingsDialog::setIcon 设置标题栏的图标 QIcon icon 设置的 Icon | |
![]() | |
DAbstractDialog (QWidget *parent=nullptr) | |
DAbstractDialog::DAbstractDialog constructs a DAbstractDialog instance. parent is the parent widget to be used. 更多... | |
DAbstractDialog (bool blurIfPossible, QWidget *parent=nullptr) | |
DisplayPosition | displayPosition () const |
DAbstractDialog::displayPosition 更多... | |
void | move (const QPoint &pos) |
void | move (int x, int y) |
void | setGeometry (const QRect &rect) |
void | setGeometry (int x, int y, int width, int height) |
额外继承的成员函数 | |
![]() | |
enum | DisplayPosition { Center , TopRight } |
enum | DisplayPostion { DisplayCenter = Center , DisplayTopRight = TopRight } |
![]() | |
void | sizeChanged (QSize size) |
sizeChanged is emitted when the size of this dialog changed. size is the target size. | |
![]() | |
void | mouseMoveEvent (QMouseEvent *event) Q_DECL_OVERRIDE |
void | mousePressEvent (QMouseEvent *event) Q_DECL_OVERRIDE |
void | mouseReleaseEvent (QMouseEvent *event) Q_DECL_OVERRIDE |
void | resizeEvent (QResizeEvent *event) Q_DECL_OVERRIDE |
void | showEvent (QShowEvent *event) override |
DAbstractDialog (DAbstractDialogPrivate &dd, QWidget *parent=nullptr) | |
![]() | |
DisplayPosition | displayPosition |
为使用DSettings的Dtk程序提供一个通用的设置对话框,这个对话框可以通过json配置文件来自动生成.
\inmodule dtkwidget
DSettingsDialog provide an common setting ui for deepin style application. It's depend Dtk::Widget::DSettingsWidgetFactory to auot build ui compent from json file.
void Dtk::Widget::DSettingsDialog::scrollToGroup | ( | const QString & | groupKey | ) |
DSettingsDialog::scrollToGroup 使对话框跳转到指定的 group 项目 groupKey DSettings中 groupKeys 以及其子项 childGroups
void Dtk::Widget::DSettingsDialog::setResetVisible | ( | bool | visible | ) |
DSettingsDialog::setResetVisible 设置恢复默认设置按钮是否显示 visible true显示 false隐藏
DSettingsWidgetFactory * Dtk::Widget::DSettingsDialog::widgetFactory | ( | ) | const |
获取当前对话框使用的控件构造工厂。
Return the widget build factory of this dialog.
每一个设置对话框都有自己的构造工厂实例,这些实例并不会共享数据。 Every instance of DSettingDialog has it own widgetfactory.