DtkWidget
DTK Widget module
|
The DWindowCloseButton class is used as the unified window close button. 更多...
Public 成员函数 | |
DWindowCloseButton (QWidget *parent=0) | |
DWindowCloseButton::DWindowCloseButton 是 DWindowCloseButton 的构造 函数,返回 DWindowCloseButton 对象,普通程序一般无需使用。 parent 为创建对象的父控件。 | |
QSize | sizeHint () const override |
Public 成员函数 继承自 Dtk::Widget::DIconButton | |
DIconButton (QWidget *parent=nullptr) | |
实现一个方便定义图标的button | |
DIconButton (QStyle::StandardPixmap iconType, QWidget *parent=nullptr) | |
DIconButton (DStyle::StandardPixmap iconType, QWidget *parent=nullptr) | |
DIconButton (const DDciIcon &dciIcon, QWidget *parent=nullptr) | |
void | setIcon (const QIcon &icon) |
设置button的图标 | |
void | setIcon (QStyle::StandardPixmap iconType) |
设置button图标的类型,传入QT预定义枚举值 | |
void | setIcon (DStyle::StandardPixmap iconType) |
设置button图标的类型,传入DTK预定义枚举值 | |
void | setIcon (const DDciIcon &icon) |
DDciIcon | dciIcon () const |
QSize | sizeHint () const override |
QSize | minimumSizeHint () const override |
QSize | iconSize () const |
icon的尺寸 | |
bool | isFlat () const |
button图标有无边框 | |
void | setEnabledCircle (bool status) |
bool | enabledCircle () const |
void | setNewNotification (const bool set_new) |
设置是否显示小红点 | |
Protected 成员函数 | |
void | initStyleOption (DStyleOptionButton *option) const override |
Protected 成员函数 继承自 Dtk::Widget::DIconButton | |
DIconButton (DIconButtonPrivate &dd, QWidget *parent=nullptr) | |
virtual DStyleOptionButton | baseStyleOption () const |
void | keyPressEvent (QKeyEvent *event) override |
额外继承的成员函数 | |
Public 槽 继承自 Dtk::Widget::DIconButton | |
void | setFlat (bool flat) |
设置是否保留边框 | |
属性 继承自 Dtk::Widget::DIconButton | |
bool | flat |
The DWindowCloseButton class is used as the unified window close button.
\inmodule dtkwidget
DWindowCloseButton 类是 DTK 窗口统一的关闭按钮控件.
It's actually a special DImageButton which has the appearance of close button.
|
overrideprotectedvirtual |