kdk::KNativeTabbar(3)
๐ kdk::KNativeTabbar ๐
okay bestie, welcome to the kdk::KNativeTabbar page ๐
this is section 3 of the manual (the Library Functions girly), so if you were looking for the shell builtin, wrong tab, babe ๐
โจ NAME โจ
kdk::KNativeTabbar โ that's the whole name, that's it, that's the girl ๐ซถ
๐ธ SYNOPSIS ๐ธ
Inherits KCustomTabBar. So like, it's the KCustomTabBar's daughter and she came out gorgeous โจ
๐ Signals ๐
void rightlicked (QPoint point)โ ้ผ ๆ ๅณ้ฎไฟกๅท โ that's the right mouse button clicked signal, no cap. She tells you when the right-click happens and hands you theQPoint.
๐ฆ Signals inherited from KCustomTabBar
void currentChanged (int index)void tabCloseRequested (int index)void tabMoved (int from, int to)void tabBarClicked (int index)void tabBarDoubleClicked (int index)void leftBStatus (bool flag)void rightBStatus (bool flag)
๐ Public Member Functions ๐
KNativeTabbar (KNativeTabbarStyle barStyle=SegmentLight, QWidget *parent=nullptr)โ the constructor, she defaults toSegmentLightand anullptrparent, iconic default behavior fr frvoid setTabbarStyle (KNativeTabbarStyle barStyle)โ ่ฎพ็ฝฎTabBarๆ ทๅผ โ sets the TabBar styleKNativeTabbarStyle barStyle ()โ ่ฟๅTabBarๆ ทๅผ โ returns the TabBar stylevoid setBorderRadius (int radius)โ ่ฎพ็ฝฎๅ่งๅๅพ๏ผๅชๅฏนSegmentDark๏ผSegmentLightๆ ทๅผ็ๆ โ sets the corner radius, and heads up bestie: it only takes effect for theSegmentDarkandSegmentLightstyles, periodtint borderRadius ()โ ่ทๅๅ่งๅๅพ โ grabs the corner radius for youvoid setBackgroundColor (const QColor &color)โ ่ฎพ็ฝฎ่ๆฏ่ฒ โ sets the background colour
๐ Public Member Functions inherited from KCustomTabBar
KCustomTabBar (QWidget *parent=nullptr)Shape shape () constvoid setShape (Shape shape)int addTab (const QString &text)int addTab (const QIcon &icon, const QString &text)int insertTab (int index, const QString &text)int insertTab (int index, const QIcon &icon, const QString &text)void removeTab (int index)void moveTab (int from, int to)bool isTabEnabled (int index) constvoid setTabEnabled (int index, bool)QString tabText (int index) constvoid setTabText (int index, const QString &text)void setTabContent (int index, const QString &text)QColor tabTextColor (int index) constvoid setTabTextColor (int index, const QColor &color)QIcon tabIcon (int index) constvoid setTabIcon (int index, const QIcon &icon)Qt::TextElideMode elideMode () constvoid setElideMode (Qt::TextElideMode)void setTabToolTip (int index, const QString &tip)QString tabToolTip (int index) constvoid setTabWhatsThis (int index, const QString &text)QString tabWhatsThis (int index) constvoid setTabData (int index, const QVariant &data)QVariant tabData (int index) constQRect tabRect (int index) constint tabAt (const QPoint &pos) constint currentIndex () constint count () constQSize sizeHint () const overrideQSize minimumSizeHint () const overridevoid setDrawBase (bool drawTheBase)bool drawBase () constQSize iconSize () constvoid setIconSize (const QSize &size)bool usesScrollButtons () constvoid setUsesScrollButtons (bool useButtons)bool tabsClosable () constvoid setTabsClosable (bool closable)void setTabButton (int index, ButtonPosition position, QWidget *widget)QWidget * tabButton (int index, ButtonPosition position) constSelectionBehavior selectionBehaviorOnRemove () constvoid setSelectionBehaviorOnRemove (SelectionBehavior behavior)bool expanding () constvoid setExpanding (bool enabled)bool isMovable () constvoid setMovable (bool movable)bool documentMode () constvoid setDocumentMode (bool set)bool autoHide () constvoid setAutoHide (bool hide)bool changeCurrentOnDrag () constvoid setChangeCurrentOnDrag (bool change)QString accessibleTabName (int index) constvoid setAccessibleTabName (int index, const QString &name)
๐ง Protected Member Functions ๐ง
QSize sizeHint () constQSize minimumTabSizeHint (int index) constQSize tabSizeHint (int index) constvoid paintEvent (QPaintEvent *event)
๐ Protected Member Functions inherited from KCustomTabBar
virtual void tabInserted (int index)virtual void tabRemoved (int index)virtual void tabLayoutChange ()bool event (QEvent *) overridevoid resizeEvent (QResizeEvent *) overridevoid showEvent (QShowEvent *) overridevoid hideEvent (QHideEvent *) overridevoid paintEvent (QPaintEvent *) overridevoid mousePressEvent (QMouseEvent *) overridevoid mouseMoveEvent (QMouseEvent *) overridevoid mouseReleaseEvent (QMouseEvent *) overridevoid wheelEvent (QWheelEvent *event) overridevoid keyPressEvent (QKeyEvent *) overridevoid changeEvent (QEvent *) overridevoid timerEvent (QTimerEvent *event) overridevoid initStyleOption (QStyleOptionTab *option, int tabIndex) const
โญ Additional Inherited Members โญ
๐ธ Public Types inherited from KCustomTabBar
enum Shape { RoundedNorth, RoundedSouth, RoundedWest, RoundedEast, TriangularNorth, TriangularSouth, TriangularWest, TriangularEast }โ eight shapes, choose your fighter ๐enum ButtonPosition { LeftSide, RightSide }enum SelectionBehavior { SelectLeftTab, SelectRightTab, SelectPreviousTab }
๐ Public Slots inherited from KCustomTabBar
void setCurrentIndex (int index)void leftScrollTabs ()void rightScrollTabs ()void closeTab ()
๐ซถ Properties inherited from KCustomTabBar
Shape shapeint currentIndexint countbool drawBaseQSize iconSizeQt::TextElideMode elideModebool usesScrollButtonsbool tabsClosableSelectionBehavior selectionBehaviorOnRemovebool expandingbool movablebool documentModebool autoHidebool changeCurrentOnDrag
๐ Member Function Documentation ๐
KNativeTabbarStyle kdk::KNativeTabbar::barStyle ()
่ฟๅTabBarๆ ทๅผ โ returns the TabBar style.
Returns โ (yeah, the original just says Returns and then nothing, so likeโฆ she returns the style, bestie, that's the vibe ๐)
int kdk::KNativeTabbar::borderRadius ()
่ทๅๅ่งๅๅพ โ gets the corner radius.
Returns โ (again, the doc just says Returns, we're all just vibing)
QSize kdk::KNativeTabbar::minimumTabSizeHint (int index) const [protected], [virtual]
Reimplemented from KCustomTabBar.
void kdk::KNativeTabbar::rightlicked (QPoint point) [signal]
้ผ ๆ ๅณ้ฎไฟกๅท โ the right-mouse-button signal.
Parameters
point
void kdk::KNativeTabbar::setBackgroundColor (const QColor & color)
่ฎพ็ฝฎ่ๆฏ่ฒ โ sets the background colour.
Parameters
color
void kdk::KNativeTabbar::setBorderRadius (int radius)
่ฎพ็ฝฎๅ่งๅๅพ๏ผๅชๅฏนSegmentDark๏ผSegmentLightๆ ทๅผ็ๆ โ sets the corner radius; remember, this only works for the SegmentDark and SegmentLight styles. If you're on another style, it's giving nothing, and that's by design ๐
Parameters
radius
void kdk::KNativeTabbar::setTabbarStyle (KNativeTabbarStyle barStyle)
่ฎพ็ฝฎTabBarๆ ทๅผ โ sets the TabBar style.
Parameters
barStyle
QSize kdk::KNativeTabbar::tabSizeHint (int index) const [protected], [virtual]
Reimplemented from KCustomTabBar.
๐ Author ๐
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. (Not a human author, a robot wrote this and honestly? she ate ๐คโจ)
and that's the whole page bestie, no notes ๐ this was LIBKYSDK-APPLICATIONS, Version version:3.0, and the footer date is whatever Doxygen stamped on it โ go off, my love ๐๐
๐ฆ where this page comes from
- arch rolling: libkysdk-applications 3.0.1.2-1 ยท BSD-3-Clause AND GPL-3.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND MIT AND MulanPSL-2.0
- ubuntu resolute: libkysdk-applications-dev 3.0.1.1-1 ยท LGPL-3.0-or-later
- ubuntu stonking: libkysdk-applications-dev 3.0.1.2-1build2 ยท LGPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms