DtkWidget
DTK Widget module
|
Public 类型 | |
enum | DataRole { NavLevelRole = Dtk::UserRole + 100 , NavKeyRole } |
enum | NavLevel { Split = 1001 , Level1 , Level2 , Level3 } |
Public 类型 继承自 Dtk::Widget::DStyledItemDelegate | |
enum | BackgroundType { NoBackground = 0 , ClipCornerBackground = 1 , RoundedBackground = 2 , BackgroundType_Mask = 0xff , NoNormalState = 0x100 } |
Public 成员函数 | |
NavigationDelegate (QAbstractItemView *parent) | |
Public 成员函数 继承自 Dtk::Widget::DStyledItemDelegate | |
DStyledItemDelegate (QAbstractItemView *parent=nullptr) | |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
BackgroundType | backgroundType () const |
QMargins | margins () const |
QSize | itemSize () const |
int | spacing () const |
Protected 成员函数 | |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
void | initStyleOption (QStyleOptionViewItem *option, const QModelIndex &index) const override |
Protected 成员函数 继承自 Dtk::Widget::DStyledItemDelegate | |
void | initStyleOption (QStyleOptionViewItem *option, const QModelIndex &index) const override |
bool | eventFilter (QObject *object, QEvent *event) override |
额外继承的成员函数 | |
Public 槽 继承自 Dtk::Widget::DStyledItemDelegate | |
void | setBackgroundType (BackgroundType backgroundType) |
void | setMargins (const QMargins margins) |
void | setItemSize (QSize itemSize) |
void | setItemSpacing (int spacing) |
属性 继承自 Dtk::Widget::DStyledItemDelegate | |
BackgroundType | backgroundType |
QMargins | margins |
QSize | itemSize |