DtkWidget
DTK Widget module
|
Public 成员函数 | |
DefaultZoneWidget (const QString &id="", QWidget *parent=nullptr) | |
Public 成员函数 继承自 Dtk::Widget::DragDropWidget | |
DragDropWidget (const QString &id="", QWidget *parent=nullptr) | |
void | setButtonIcon (const QIcon &icon, const QSize &size=QSize(36, 36)) |
QString | id () const |
void | setScreenShotedView (QWidget *view) |
void | screenShot () |
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) |
设置是否显示小红点 | |
额外继承的成员函数 | |
Public 槽 继承自 Dtk::Widget::DIconButton | |
void | setFlat (bool flat) |
设置是否保留边框 | |
Protected 成员函数 继承自 Dtk::Widget::DragDropWidget | |
virtual void | onIgnoreAction () |
void | mousePressEvent (QMouseEvent *event) Q_DECL_OVERRIDE |
void | mouseMoveEvent (QMouseEvent *event) Q_DECL_OVERRIDE |
void | mouseReleaseEvent (QMouseEvent *event) Q_DECL_OVERRIDE |
Protected 成员函数 继承自 Dtk::Widget::DIconButton | |
DIconButton (DIconButtonPrivate &dd, QWidget *parent=nullptr) | |
virtual DStyleOptionButton | baseStyleOption () const |
virtual void | initStyleOption (DStyleOptionButton *option) const |
void | keyPressEvent (QKeyEvent *event) override |
Protected 属性 继承自 Dtk::Widget::DragDropWidget | |
QString | m_mimeDataFormat |
DTitlebarEditPanel * | m_titleBarEditPanel = nullptr |
int | m_index = -1 |
QPixmap | m_pixmap |
QString | m_id |
属性 继承自 Dtk::Widget::DIconButton | |
bool | flat |