- qtgui
- qtdbus
- qtwidgets
- qtcore
- dtkcore
- qsettingbackend_zh
- dobject_zh
- abstractappender_zh
- abstractstringappender_zh
- dfilewatcher_zh
- outputdebugappender_zh
- dsettingsbackend_zh
- drecentmanager_zh
- ddesktopentry_zh
- consoleappender_zh
- gsettingsbackend_zh
- dsettingsgroup_zh
- dlogmanager_zh
- fileappender_zh
- dsettings_zh
- dfilesystemwatcher_zh
- dfilewatchermanager_zh
- dbasefilewatcher_zh
- dtkgui
- dtkwidget
- dviewitemaction_zh
- dstandarditem_zh
- dfiledialog_zh
- dclipeffectwidget_zh
- danchors_zh
- dgraphicsclipeffect_zh
- dstyle_zh
- dcoloredprogressbar_zh
- dbuttonboxbutton_zh
- dlabel_zh
- dtiplabel_zh
- darrowlinedrawer_zh
- daboutdialog_zh
- dsettingswidgetfactory_zh
- dsearchcombobox_zh
- dcrumbedit_zh
- dcommandlinkbutton_zh
- dsettingsdialog_zh
- dwindowoptionbutton_zh
- dspinner_zh
- dsimplelistview_zh
- dwaterprogress_zh
- dmainwindow_zh
- dhidpihelper_zh
- dslider_zh
- dpasswordedit_zh
- danchorinfo_zh
- dmpriscontrol_zh
- darrowbutton_zh
- dbackgroundgroup_zh
- dcircleprogress_zh
- dwarningbutton_zh
- dwindowclosebutton_zh
- dvideowidget_zh
- dfilechooseredit_zh
- dblureffectwidget_zh
- darrowrectangle_zh
- dsearchedit_zh
- dfloatingmessage_zh
- dswitchlineexpand_zh
- dtabbar_zh
- dlineedit_zh
- danchorsbase_zh
- dstylediconengine_zh
- dwindowmaxbutton_zh
- dpageindicator_zh
- dsuggestbutton_zh
- dapplicationsettings_zh
- dtooltip_zh
- dwindowminbutton_zh
- ddrawer_zh
- dtitlebar_zh
- dsimplelistitem_zh
- dpicturesequenceview_zh
dsimplelistview_zh
Class::DSimpleListView
暂无该属性
Detailed Description
DSimpleListView 是 deepin 基于 QWidget 从零绘制的列表控件。
开发者只要懂得怎么使用 QPainter 进行图形绘制,开发者就可以在 DSimpleListItem 中绘制任意行内容,包括文本、图片、任意控件甚至每行都可以画一个小电影,而代码的复杂度不会随着绘制行内容而发生变化,所有的行内容都源于怎么使用 QPainter。
DSimpleListView::~DSimpleListView
~DSimpleListView()
DSimpleListView::setRowHeight
void setRowHeight(int height)
设置行高
DSimpleListView::setColumnTitleInfo
void setColumnTitleInfo(QList titles, QList widths, int height)
设置列标题信息
DSimpleListView::setColumnHideFlags
void setColumnHideFlags(QList toggleHideFlags, int visibleColumnIndex)
设置列隐藏标志 toggleHideFlags 用于控制列的隐藏标志,用于切换显示/隐藏。 visibleColumnIndex 列始终可见的列索引,默认值为 -1,表示列始终不可见。
DSimpleListView::setColumnSortingAlgorithms
void setColumnSortingAlgorithms(QList *algorithms, int sortColumn, bool descendingSort)
设置列排序算法
DSimpleListView::setSearchAlgorithm
void setSearchAlgorithm(SearchAlgorithm algorithm)
设置搜索算法
DSimpleListView::setClipRadius
void setClipRadius(int radius)
设置圆角半径
DSimpleListView::setFrame
void setFrame(bool enableFrame, int color, double opacity)
设置边角细节 enableFrame 是否绘制边角 color 边角颜色 opacity 不透明度
DSimpleListView::addItems
void addItems(int items)
添加 DSimpleListItem 列表到视图中
DSimpleListView::removeItem
void removeItem(int *item)
删除一个列表项
DSimpleListView::clearItems
void clearItems()
删除所有列表项
DSimpleListView::addSelections
void addSelections(int items, bool recordLastSelection)
添加 DSimpleListItem 列表以在视图中选择效果 recordLastSelection 为 true 则清除最后一个选择项
DSimpleListView::clearSelections
void clearSelections(bool clearLastSelection)
移除所有选择项
DSimpleListView::getSelections
int getSelections()
获取所有选择项
DSimpleListView::refreshItems
void refreshItems(int items)
刷新所有项
DSimpleListView::search
void search(QString content)
搜索
DSimpleListView::setSingleSelect
void setSingleSelect(bool singleSelect)
设置单一选择
DSimpleListView::keepSelectWhenClickBlank
void keepSelectWhenClickBlank(bool keep)
单击空白区域时保持选择项
DSimpleListView::selectAllItems
void selectAllItems()
选择所有列表项
DSimpleListView::selectFirstItem
void selectFirstItem()
选择第一项
DSimpleListView::selectLastItem
void selectLastItem()
选择最后一项
DSimpleListView::selectNextItem
void selectNextItem()
移动到下一项
DSimpleListView::selectPrevItem
void selectPrevItem()
移动到上一项
DSimpleListView::shiftSelectPageDown
void shiftSelectPageDown()
从当前项选择到下一页的项
DSimpleListView::shiftSelectPageUp
void shiftSelectPageUp()
从当前项选择到上一页的项
DSimpleListView::shiftSelectToEnd
void shiftSelectToEnd()
从当前项选择到末尾项
DSimpleListView::shiftSelectToHome
void shiftSelectToHome()
从当前项选择到起始项
DSimpleListView::shiftSelectToNext
void shiftSelectToNext()
从当前项选择到下一项
DSimpleListView::shiftSelectToPrev
void shiftSelectToPrev()
从当前项选择到上一项
DSimpleListView::scrollPageDown
void scrollPageDown()
滚动到下一页
DSimpleListView::scrollPageUp
void scrollPageUp()
滚动到上一页
DSimpleListView::ctrlScrollPageDown
void ctrlScrollPageDown()
DSimpleListView::ctrlScrollPageUp
void ctrlScrollPageUp()
DSimpleListView::ctrlScrollToEnd
void ctrlScrollToEnd()
DSimpleListView::ctrlScrollToHome
void ctrlScrollToHome()
DSimpleListView::leaveEvent
void leaveEvent(int *event)
DSimpleListView::changeColumnVisible
void changeColumnVisible(int index, bool visible, QList columnVisibles)
DSimpleListView::changeSortingStatus
void changeSortingStatus(int index, bool sortingOrder)
DSimpleListView::changeHoverItem
void changeHoverItem(int pos, int *item, int columnIndex)
DSimpleListView::mouseHoverChanged
void mouseHoverChanged(int *oldItem, int *newItem, int columnIndex, int pos)
DSimpleListView::mousePressChanged
void mousePressChanged(int *item, int columnIndex, int pos)
DSimpleListView::mouseReleaseChanged
void mouseReleaseChanged(int *item, int columnIndex, int pos)
DSimpleListView::eventFilter
bool eventFilter(QObject *, int *event)
DSimpleListView::keyPressEvent
void keyPressEvent(int *keyEvent)
DSimpleListView::mouseMoveEvent
void mouseMoveEvent(int *mouseEvent)
DSimpleListView::mousePressEvent
void mousePressEvent(int *mouseEvent)
DSimpleListView::mouseReleaseEvent
void mouseReleaseEvent(int *mouseEvent)
DSimpleListView::paintEvent
void paintEvent(int *)
DSimpleListView::wheelEvent
void wheelEvent(int *event)
DSimpleListView::paintScrollbar
void paintScrollbar(int *painter)
DSimpleListView::selectPrevItemWithOffset
void selectPrevItemWithOffset(int scrollOffset)
DSimpleListView::selectNextItemWithOffset
void selectNextItemWithOffset(int scrollOffset)
DSimpleListView::shiftSelectNextItemWithOffset
void shiftSelectNextItemWithOffset(int scrollOffset)
DSimpleListView::shiftSelectPrevItemWithOffset
void shiftSelectPrevItemWithOffset(int scrollOffset)
DSimpleListView::getBottomRenderOffset
int getBottomRenderOffset()
DSimpleListView::getScrollbarY
int getScrollbarY()
DSimpleListView::getScrollAreaHeight
int getScrollAreaHeight()
DSimpleListView::getScrollbarHeight
int getScrollbarHeight()
DSimpleListView::getRenderWidths
QList getRenderWidths()
DSimpleListView::shiftSelectItemsWithBound
void shiftSelectItemsWithBound(int selectionStartIndex, int selectionEndIndex)
DSimpleListView::adjustRenderOffset
int adjustRenderOffset(int offset)
DSimpleListView::startScrollbarHideTimer
void startScrollbarHideTimer()
DSimpleListView::isMouseAtScrollArea
bool isMouseAtScrollArea(int x)
DSimpleListView::isMouseAtTitleArea
bool isMouseAtTitleArea(int y)
DSimpleListView::d_func
DSimpleListViewPrivate * d_func()
DSimpleListView::d_func
const DSimpleListViewPrivate * d_func() const