kdk::KNavigationBar(3)

NAME
kdk::KNavigationBar - 导航栏控件

SYNOPSIS

#include <knavigationbar.h>

Inherits QScrollArea.

  Public Types

enum NavigationBarDataType { ValueRole = Qt::UserRole + 1, StringRole = Qt::UserRole + 2, boolRole = Qt::UserRole + 3 }

  Signals

void addTagClicked (QString str)

  Public Member Functions

KNavigationBar (QWidget *parent)
void addItem (QStandardItem *item)
增加常规Item
void addSubItem (QStandardItem *subItem)
增加次级Item
void addGroupItems (QList< QStandardItem * > items, const QString &tag)
成组增加Item,在导航栏中会显示tag
void insertGroupItems (QString tag, int row, QStandardItem *item)
在指定tag组中指定位置row插入item
void removeGroupItem (QString tag, QStandardItem *item)
在指定组中删除item
void addTag (const QString &tag)
添加tag
QStandardItemModel * model ()
获取model
QListView * listview ()
获取view
void setTabValue (QStandardItem *item, QString value)
设置tabvalue
void setTabValueVisible (bool visible)
设置tabvalue是否可见
void setAddIcon (QString tag, QIcon icon)
tag 添加add图标
void setAddTagVisible (QString tag, bool visible)
设置tag add图标是否可见
void setExtendTagVisible (QString tag, bool visible)
设置折叠图标是否可见

Detailed Description

导航栏控件

Since
    1.0.0

Examples
testnavigationbar/widget.h.

Author

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code.