kdk::KNativeTabbar(3)

๐Ÿ“ฆ version 3.0.1.2, in arch rolling, ubuntu resolute, ubuntu stonking

๐ŸŽ€ 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 the QPoint.

๐Ÿฆ‹ 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 to SegmentLight and a nullptr parent, iconic default behavior fr fr
  • void setTabbarStyle (KNativeTabbarStyle barStyle) โ€” ่ฎพ็ฝฎTabBarๆ ทๅผ โ€” sets the TabBar style
  • KNativeTabbarStyle barStyle () โ€” ่ฟ”ๅ›žTabBarๆ ทๅผ โ€” returns the TabBar style
  • void setBorderRadius (int radius) โ€” ่ฎพ็ฝฎๅœ†่ง’ๅŠๅพ„๏ผŒๅชๅฏนSegmentDark๏ผŒSegmentLightๆ ทๅผ็”Ÿๆ•ˆ โ€” sets the corner radius, and heads up bestie: it only takes effect for the SegmentDark and SegmentLight styles, periodt
  • int borderRadius () โ€” ่Žทๅ–ๅœ†่ง’ๅŠๅพ„ โ€” grabs the corner radius for you
  • void setBackgroundColor (const QColor &color) โ€” ่ฎพ็ฝฎ่ƒŒๆ™ฏ่‰ฒ โ€” sets the background colour

๐ŸŒˆ Public Member Functions inherited from KCustomTabBar

  • KCustomTabBar (QWidget *parent=nullptr)
  • Shape shape () const
  • void 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) const
  • void setTabEnabled (int index, bool)
  • QString tabText (int index) const
  • void setTabText (int index, const QString &text)
  • void setTabContent (int index, const QString &text)
  • QColor tabTextColor (int index) const
  • void setTabTextColor (int index, const QColor &color)
  • QIcon tabIcon (int index) const
  • void setTabIcon (int index, const QIcon &icon)
  • Qt::TextElideMode elideMode () const
  • void setElideMode (Qt::TextElideMode)
  • void setTabToolTip (int index, const QString &tip)
  • QString tabToolTip (int index) const
  • void setTabWhatsThis (int index, const QString &text)
  • QString tabWhatsThis (int index) const
  • void setTabData (int index, const QVariant &data)
  • QVariant tabData (int index) const
  • QRect tabRect (int index) const
  • int tabAt (const QPoint &pos) const
  • int currentIndex () const
  • int count () const
  • QSize sizeHint () const override
  • QSize minimumSizeHint () const override
  • void setDrawBase (bool drawTheBase)
  • bool drawBase () const
  • QSize iconSize () const
  • void setIconSize (const QSize &size)
  • bool usesScrollButtons () const
  • void setUsesScrollButtons (bool useButtons)
  • bool tabsClosable () const
  • void setTabsClosable (bool closable)
  • void setTabButton (int index, ButtonPosition position, QWidget *widget)
  • QWidget * tabButton (int index, ButtonPosition position) const
  • SelectionBehavior selectionBehaviorOnRemove () const
  • void setSelectionBehaviorOnRemove (SelectionBehavior behavior)
  • bool expanding () const
  • void setExpanding (bool enabled)
  • bool isMovable () const
  • void setMovable (bool movable)
  • bool documentMode () const
  • void setDocumentMode (bool set)
  • bool autoHide () const
  • void setAutoHide (bool hide)
  • bool changeCurrentOnDrag () const
  • void setChangeCurrentOnDrag (bool change)
  • QString accessibleTabName (int index) const
  • void setAccessibleTabName (int index, const QString &name)

๐Ÿงš Protected Member Functions ๐Ÿงš

  • QSize sizeHint () const
  • QSize minimumTabSizeHint (int index) const
  • QSize tabSizeHint (int index) const
  • void 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 *) override
  • void resizeEvent (QResizeEvent *) override
  • void showEvent (QShowEvent *) override
  • void hideEvent (QHideEvent *) override
  • void paintEvent (QPaintEvent *) override
  • void mousePressEvent (QMouseEvent *) override
  • void mouseMoveEvent (QMouseEvent *) override
  • void mouseReleaseEvent (QMouseEvent *) override
  • void wheelEvent (QWheelEvent *event) override
  • void keyPressEvent (QKeyEvent *) override
  • void changeEvent (QEvent *) override
  • void timerEvent (QTimerEvent *event) override
  • void 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 shape
  • int currentIndex
  • int count
  • bool drawBase
  • QSize iconSize
  • Qt::TextElideMode elideMode
  • bool usesScrollButtons
  • bool tabsClosable
  • SelectionBehavior selectionBehaviorOnRemove
  • bool expanding
  • bool movable
  • bool documentMode
  • bool autoHide
  • bool 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