.TH "kdk::KCrumb" 3 "Version version:3.0" "LIBKYSDK-APPLICATIONS" \" -*- nroff -*- .ad l .nh .SH NAME kdk::KCrumb \- 面包屑控件 .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBKCustomTabBar\fP\&. .SS "Public Slots" .in +1c .ti -1c .RI "void \fBleftScroll\fP ()" .br .ti -1c .RI "void \fBrightScroll\fP ()" .br .in -1c Public Slots inherited from \fBKCustomTabBar\fP .in +1c .ti -1c .RI "void \fBsetCurrentIndex\fP (int index)" .br .ti -1c .RI "void \fBleftScrollTabs\fP ()" .br .ti -1c .RI "void \fBrightScrollTabs\fP ()" .br .ti -1c .RI "void \fBcloseTab\fP ()" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBKCrumb\fP (QWidget *parent=nullptr)" .br .ti -1c .RI "int \fBaddTab\fP (const QString &text)" .br .RI "添加tab " .ti -1c .RI "int \fBaddTab\fP (const QIcon &\fBicon\fP, const QString &text)" .br .RI "添加tab " .ti -1c .RI "int \fBinsertTab\fP (int index, const QString &text)" .br .RI "在index位置插入tab " .ti -1c .RI "int \fBinsertTab\fP (int index, const QIcon &\fBicon\fP, const QString &text)" .br .RI "在index位置插入tab " .ti -1c .RI "void \fBremoveTab\fP (int index)" .br .RI "删除index位置的tab " .ti -1c .RI "void \fBmoveTab\fP (int from, int to)" .br .RI "将from位置tab移至to位置 " .ti -1c .RI "void \fBsetIcon\fP (const QIcon &\fBicon\fP)" .br .RI "设置图标 " .ti -1c .RI "QIcon \fBicon\fP () const" .br .RI "获取图标 " .ti -1c .RI "bool \fBisFlat\fP () const" .br .RI "返回按钮边框是否凸起 " .ti -1c .RI "void \fBsetFlat\fP (bool flat)" .br .RI "设置按钮边框是否凸起 " .in -1c Public Member Functions inherited from \fBKCustomTabBar\fP .in +1c .ti -1c .RI "\fBKCustomTabBar\fP (QWidget *parent=nullptr)" .br .ti -1c .RI "Shape \fBshape\fP () const" .br .ti -1c .RI "void \fBsetShape\fP (Shape shape)" .br .ti -1c .RI "int \fBaddTab\fP (const QString &text)" .br .ti -1c .RI "int \fBaddTab\fP (const QIcon &icon, const QString &text)" .br .ti -1c .RI "int \fBinsertTab\fP (int index, const QString &text)" .br .ti -1c .RI "int \fBinsertTab\fP (int index, const QIcon &icon, const QString &text)" .br .ti -1c .RI "void \fBremoveTab\fP (int index)" .br .ti -1c .RI "void \fBmoveTab\fP (int from, int to)" .br .ti -1c .RI "bool \fBisTabEnabled\fP (int index) const" .br .ti -1c .RI "void \fBsetTabEnabled\fP (int index, bool)" .br .ti -1c .RI "QString \fBtabText\fP (int index) const" .br .ti -1c .RI "void \fBsetTabText\fP (int index, const QString &text)" .br .ti -1c .RI "void \fBsetTabContent\fP (int index, const QString &text)" .br .ti -1c .RI "QColor \fBtabTextColor\fP (int index) const" .br .ti -1c .RI "void \fBsetTabTextColor\fP (int index, const QColor &color)" .br .ti -1c .RI "QIcon \fBtabIcon\fP (int index) const" .br .ti -1c .RI "void \fBsetTabIcon\fP (int index, const QIcon &icon)" .br .ti -1c .RI "Qt::TextElideMode \fBelideMode\fP () const" .br .ti -1c .RI "void \fBsetElideMode\fP (Qt::TextElideMode)" .br .ti -1c .RI "void \fBsetTabToolTip\fP (int index, const QString &tip)" .br .ti -1c .RI "QString \fBtabToolTip\fP (int index) const" .br .ti -1c .RI "void \fBsetTabWhatsThis\fP (int index, const QString &text)" .br .ti -1c .RI "QString \fBtabWhatsThis\fP (int index) const" .br .ti -1c .RI "void \fBsetTabData\fP (int index, const QVariant &data)" .br .ti -1c .RI "QVariant \fBtabData\fP (int index) const" .br .ti -1c .RI "QRect \fBtabRect\fP (int index) const" .br .ti -1c .RI "int \fBtabAt\fP (const QPoint &pos) const" .br .ti -1c .RI "int \fBcurrentIndex\fP () const" .br .ti -1c .RI "int \fBcount\fP () const" .br .ti -1c .RI "QSize \fBsizeHint\fP () const override" .br .ti -1c .RI "QSize \fBminimumSizeHint\fP () const override" .br .ti -1c .RI "void \fBsetDrawBase\fP (bool drawTheBase)" .br .ti -1c .RI "bool \fBdrawBase\fP () const" .br .ti -1c .RI "QSize \fBiconSize\fP () const" .br .ti -1c .RI "void \fBsetIconSize\fP (const QSize &size)" .br .ti -1c .RI "bool \fBusesScrollButtons\fP () const" .br .ti -1c .RI "void \fBsetUsesScrollButtons\fP (bool useButtons)" .br .ti -1c .RI "bool \fBtabsClosable\fP () const" .br .ti -1c .RI "void \fBsetTabsClosable\fP (bool closable)" .br .ti -1c .RI "void \fBsetTabButton\fP (int index, ButtonPosition position, QWidget *widget)" .br .ti -1c .RI "QWidget * \fBtabButton\fP (int index, ButtonPosition position) const" .br .ti -1c .RI "SelectionBehavior \fBselectionBehaviorOnRemove\fP () const" .br .ti -1c .RI "void \fBsetSelectionBehaviorOnRemove\fP (SelectionBehavior behavior)" .br .ti -1c .RI "bool \fBexpanding\fP () const" .br .ti -1c .RI "void \fBsetExpanding\fP (bool enabled)" .br .ti -1c .RI "bool \fBisMovable\fP () const" .br .ti -1c .RI "void \fBsetMovable\fP (bool movable)" .br .ti -1c .RI "bool \fBdocumentMode\fP () const" .br .ti -1c .RI "void \fBsetDocumentMode\fP (bool set)" .br .ti -1c .RI "bool \fBautoHide\fP () const" .br .ti -1c .RI "void \fBsetAutoHide\fP (bool hide)" .br .ti -1c .RI "bool \fBchangeCurrentOnDrag\fP () const" .br .ti -1c .RI "void \fBsetChangeCurrentOnDrag\fP (bool change)" .br .ti -1c .RI "QString \fBaccessibleTabName\fP (int index) const" .br .ti -1c .RI "void \fBsetAccessibleTabName\fP (int index, const QString &name)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "QSize \fBtabSizeHint\fP (int index) const" .br .ti -1c .RI "void \fBpaintEvent\fP (QPaintEvent *event)" .br .in -1c Protected Member Functions inherited from \fBKCustomTabBar\fP .in +1c .ti -1c .RI "virtual QSize \fBminimumTabSizeHint\fP (int index) const" .br .ti -1c .RI "virtual void \fBtabInserted\fP (int index)" .br .ti -1c .RI "virtual void \fBtabRemoved\fP (int index)" .br .ti -1c .RI "virtual void \fBtabLayoutChange\fP ()" .br .ti -1c .RI "bool \fBevent\fP (QEvent *) override" .br .ti -1c .RI "void \fBresizeEvent\fP (QResizeEvent *) override" .br .ti -1c .RI "void \fBshowEvent\fP (QShowEvent *) override" .br .ti -1c .RI "void \fBhideEvent\fP (QHideEvent *) override" .br .ti -1c .RI "void \fBpaintEvent\fP (QPaintEvent *) override" .br .ti -1c .RI "void \fBmousePressEvent\fP (QMouseEvent *) override" .br .ti -1c .RI "void \fBmouseMoveEvent\fP (QMouseEvent *) override" .br .ti -1c .RI "void \fBmouseReleaseEvent\fP (QMouseEvent *) override" .br .ti -1c .RI "void \fBwheelEvent\fP (QWheelEvent *event) override" .br .ti -1c .RI "void \fBkeyPressEvent\fP (QKeyEvent *) override" .br .ti -1c .RI "void \fBchangeEvent\fP (QEvent *) override" .br .ti -1c .RI "void \fBtimerEvent\fP (QTimerEvent *event) override" .br .ti -1c .RI "void \fBinitStyleOption\fP (QStyleOptionTab *option, int tabIndex) const" .br .in -1c .SS "Additional Inherited Members" Public Types inherited from \fBKCustomTabBar\fP .in +1c .ti -1c .RI "enum \fBShape\fP { \fBRoundedNorth\fP, \fBRoundedSouth\fP, \fBRoundedWest\fP, \fBRoundedEast\fP, \fBTriangularNorth\fP, \fBTriangularSouth\fP, \fBTriangularWest\fP, \fBTriangularEast\fP }" .br .ti -1c .RI "enum \fBButtonPosition\fP { \fBLeftSide\fP, \fBRightSide\fP }" .br .ti -1c .RI "enum \fBSelectionBehavior\fP { \fBSelectLeftTab\fP, \fBSelectRightTab\fP, \fBSelectPreviousTab\fP }" .br .in -1c Signals inherited from \fBKCustomTabBar\fP .in +1c .ti -1c .RI "void \fBcurrentChanged\fP (int index)" .br .ti -1c .RI "void \fBtabCloseRequested\fP (int index)" .br .ti -1c .RI "void \fBtabMoved\fP (int from, int to)" .br .ti -1c .RI "void \fBtabBarClicked\fP (int index)" .br .ti -1c .RI "void \fBtabBarDoubleClicked\fP (int index)" .br .ti -1c .RI "void \fBleftBStatus\fP (bool flag)" .br .ti -1c .RI "void \fBrightBStatus\fP (bool flag)" .br .in -1c Properties inherited from \fBKCustomTabBar\fP .in +1c .ti -1c .RI "Shape \fBshape\fP" .br .ti -1c .RI "int \fBcurrentIndex\fP" .br .ti -1c .RI "int \fBcount\fP" .br .ti -1c .RI "bool \fBdrawBase\fP" .br .ti -1c .RI "QSize \fBiconSize\fP" .br .ti -1c .RI "Qt::TextElideMode \fBelideMode\fP" .br .ti -1c .RI "bool \fBusesScrollButtons\fP" .br .ti -1c .RI "bool \fBtabsClosable\fP" .br .ti -1c .RI "SelectionBehavior \fBselectionBehaviorOnRemove\fP" .br .ti -1c .RI "bool \fBexpanding\fP" .br .ti -1c .RI "bool \fBmovable\fP" .br .ti -1c .RI "bool \fBdocumentMode\fP" .br .ti -1c .RI "bool \fBautoHide\fP" .br .ti -1c .RI "bool \fBchangeCurrentOnDrag\fP" .br .in -1c .SH "Detailed Description" .PP 面包屑控件 .SH "Member Function Documentation" .PP .SS "int kdk::KCrumb::addTab (const QIcon & icon, const QString & text)" .PP 添加tab .PP \fBParameters\fP .RS 4 \fIicon\fP .br \fItext\fP .RE .PP \fBReturns\fP .RS 4 .RE .PP .SS "int kdk::KCrumb::addTab (const QString & text)" .PP 添加tab .PP \fBParameters\fP .RS 4 \fItext\fP .RE .PP \fBReturns\fP .RS 4 .RE .PP .SS "QIcon kdk::KCrumb::icon () const" .PP 获取图标 .PP \fBReturns\fP .RS 4 .RE .PP .SS "int kdk::KCrumb::insertTab (int index, const QIcon & icon, const QString & text)" .PP 在index位置插入tab .PP \fBParameters\fP .RS 4 \fIindex\fP .br \fIicon\fP .br \fItext\fP .RE .PP \fBReturns\fP .RS 4 .RE .PP .SS "int kdk::KCrumb::insertTab (int index, const QString & text)" .PP 在index位置插入tab .PP \fBParameters\fP .RS 4 \fIindex\fP .br \fItext\fP .RE .PP \fBReturns\fP .RS 4 .RE .PP .SS "bool kdk::KCrumb::isFlat () const" .PP 返回按钮边框是否凸起 .PP \fBReturns\fP .RS 4 .RE .PP .SS "void kdk::KCrumb::moveTab (int from, int to)" .PP 将from位置tab移至to位置 .PP \fBParameters\fP .RS 4 \fIfrom\fP .br \fIto\fP .RE .PP .SS "void kdk::KCrumb::removeTab (int index)" .PP 删除index位置的tab .PP \fBParameters\fP .RS 4 \fIindex\fP .RE .PP .SS "void kdk::KCrumb::setFlat (bool flat)" .PP 设置按钮边框是否凸起 .PP \fBParameters\fP .RS 4 \fIflat\fP .RE .PP .SS "void kdk::KCrumb::setIcon (const QIcon & icon)" .PP 设置图标 .PP \fBParameters\fP .RS 4 \fIicon\fP .RE .PP .SS "QSize kdk::KCrumb::tabSizeHint (int index) const\fC [protected]\fP, \fC [virtual]\fP" .PP Reimplemented from \fBKCustomTabBar\fP\&. .SH "Author" .PP Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code\&.