kdk::KDirTabBar(3)

📦 version 3.0.1.2, in arch rolling, ubuntu resolute, ubuntu stonking

✨ kdk::KDirTabBar ✨

okay bestie so this is kdk::KDirTabBar from the kdk crew — the 目录层级控件, aka the directory-level widget 💖 it lives in kdk::KDirTabBar(3) in the Library Functions Manual and honestly? it's giving navigation royalty 👑


🌸 NAME 🌸

kdk::KDirTabBar — 目录层级控件 ✨ (yes queen, it's the directory hierarchy widget)


🎀 SYNOPSIS 🎀

#include <kdirtabbar.h>

Inherits QWidget. no cap, it's a widget, that's the whole vibe 💅

📣 Signals

void tabBarClicked (const QString uri)

💖 Public Member Functions

  • KDirTabBar (QWidget *parent=nullptr) — builds the whole thing, parent is optional (nullptr by default, live your life)
  • void setCurrentPath (const QString Dirpath) — 设置目标路径 (set the target path 🛣️)
  • QString currentPath () const — 获取目标路径 (grab the target path 💫)
  • void setVisibleDepth (const int depth) — 设置tabbar显示个数 (set how many tabs the tabbar shows 👀)
  • int visibleDepth () — 获取tabbar显示个数 (get how many tabs the tabbar shows 🔢)
  • void setIcon (int index, const QIcon &icon) — 设置图标 (set the icon 🖼️)
  • QIcon icon (int index) — 获取图标 (get the icon ✨)
  • void setRootPath (const QString targetPath) — 设置Root (set the Root 🌳)
  • QString RootPath () — 获取Root路径 (get the Root path 🧭)
  • void setTextLength (int length) — 设置按钮显示字体长度 (set how long the button text displays 📏)
  • int textLength () — 返回字体显示长度 (returns the text display length 🔤)
  • QList< QToolButton * > buttons () — 返回button列表 (returns the list of buttons 🎛️)

🦋 Detailed Description 🦋

目录层级控件 — it's the directory-level widget, bestie. that's the whole lore 🫶

⭐ Since

2.5.2.0

okay so this icon has been around since 2.5.2.0, respect the elders 🙇♀️

💅 Member Function Documentation 💅

💜 QList< QToolButton * > kdk::KDirTabBar::buttons ()

返回button列表 — returns the list of buttons 🎛️

Returns

(it just says Returns, okay, the docs are mysterious like that 🙈)

💜 QString kdk::KDirTabBar::currentPath () const

获取目标路径 — grabs the target path 💫

Returns

  • QString

💜 QIcon kdk::KDirTabBar::icon (int index)

获取图标 — gets the icon 🖼️

Returns

  • QIcon

💜 QString kdk::KDirTabBar::RootPath ()

获取Root路径 — gets the Root path 🧭

Returns

  • QString

💜 void kdk::KDirTabBar::setCurrentPath (const QString Dirpath)

设置目标路径 — sets the target path 🛣️

Parameters

  • path

💜 void kdk::KDirTabBar::setIcon (int index, const QIcon & icon)

设置图标 — sets the icon ✨

Parameters

  • icon

💜 void kdk::KDirTabBar::setRootPath (const QString targetPath)

设置Root — sets the Root 🌳

Parameters

(nothing listed here, the docs left us on read 😭)

💜 void kdk::KDirTabBar::setTextLength (int length)

设置按钮显示字体长度 — sets how long the button text displays 📏

Parameters

  • int

💜 void kdk::KDirTabBar::setVisibleDepth (const int depth)

设置tabbar显示个数 — sets how many tabs the tabbar shows 👀

Parameters

  • int

💜 int kdk::KDirTabBar::textLength ()

返回字体显示长度 — returns the text display length 🔤

Returns

  • int

💜 int kdk::KDirTabBar::visibleDepth ()

获取tabbar显示个数 — gets how many tabs the tabbar shows 🔢

Returns

  • int

🌈 Author 🌈

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. (the robot wrote it, not me, don't come for me 💀)


and that's the tea, bestie 🍓 this whole page came to you from LIBKYSDK-APPLICATIONS, Version version:3.0, and yeah that's the version and the date sitting pretty at the bottom, mwah 💋 slay, go navigate some directories, you got this 👑✨

📦 where this page comes from