FrameModule(3)

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

🎀 FrameModule(3) 🎀

okay bestie, welcome to FrameModule(3) — yes it lives in the Library Functions Manual 💖 this is a whole widget page and we're gonna get through it together, no skimming, no skipping, fr fr.


✨ NAME ✨

FrameModule — FrameModule

  • 轮播图片控件 — it's the carousel image widget 🎠✨ (yes, that's literally what the line says, twice-ish, we love a mysterious icon)

🌸 SYNOPSIS 🌸

💅 Classes

  • class kdk::KWidget — inherits from QWidget, and bestie it does a LOT: it responds to theme background switching, icon theme switching, its title color reacts to whether the window is active, and its content area is split into a side zone and a base zone. (original: 继承自QWidget,支持响应主题背景切换,图标主题切换,标题颜色响应窗口激活状态,内容区域分为side区和base区)

🔥 Functions

  • kdk::KWidget::KWidget (QWidget *parent=nullptr)
  • void kdk::KWidget::setIcon (const QIcon &icon) — 设置窗体图标, aka sets the window icon 🖼️
  • void kdk::KWidget::setIcon (const QString &iconName) — 设置窗体图标, the string-flavored one, same mission
  • void kdk::KWidget::setWidgetName (const QString &widgetName) — 设置窗体名称, sets the window name 🏷️
  • QWidget * kdk::KWidget::sideBar () — 获取左边栏widget,通过setlayout添加自定义内容 — grab the left sidebar widget and drop your own stuff in via setlayout
  • QWidget * kdk::KWidget::baseBar () — 获取主内容区widget,通过setlayout添加自定义内容 — grab the main content-area widget and add custom content via setlayout
  • KWindowButtonBar * kdk::KWidget::windowButtonBar () — 获取窗口三联组合控件,以控制是否显示最大化、最小化按钮和下拉菜单按钮;也可增加自定义按钮 — grab the window's three-button combo control so you can decide whether maximize, minimize and dropdown-menu buttons show up, and you can add custom buttons too 👑
  • KIconBar * kdk::KWidget::iconBar () — 获取窗口标题、图标组合控件,以控制相关样式 — grab the window title + icon combo control to wrangle the related styles 🎀
  • void kdk::KWidget::setLayoutType (LayoutType type) — 设置布局结构类型, sets the layout structure type
  • void kdk::KWidget::setWindowFlags (Qt::WindowFlags type) — 设置窗口标志, sets the window flags
  • void kdk::KWidget::setWindowFlag (Qt::WindowType flag, bool on=true) — 设置窗口标志, sets a window flag
  • void kdk::KWidget::setSidebarFollowMode (bool flag) — 设置sidebar是否遵循系统更改宽度, controls whether the sidebar follows system width changes
  • bool kdk::KWidget::sidebarFollowMode () — 返回sidebar是否遵循系统更改宽度, returns whether the sidebar follows system width changes
  • bool kdk::KWidget::eventFilter (QObject *target, QEvent *event) override
  • virtual void kdk::KWidget::changeIconStyle ()
  • virtual void kdk::KWidget::changeTheme ()

🦋 DETAILED DESCRIPTION 🦋

轮播图片控件 — the carousel image widget, as established. 💫

and then, no cap, the page just hits us with this:

{

Since
    2.5.2.0

    2.0.2.1 {

    2.5.2.0 {
not me staring at those stray braces 🙈 bestie I'm just the messenger, I copy what the manpage says, character for character. It's giving ancient scroll energy.

💜 FUNCTION DOCUMENTATION 💜

🫶 QWidget * kdk::KWidget::baseBar ()

获取主内容区widget,通过setlayout添加自定义内容 — gets you the main content-area widget, and you add custom content to it via setlayout.

Returns

返回主内容区widget — hands you back the main content-area widget.

🫶 KIconBar * kdk::KWidget::iconBar ()

获取窗口标题、图标组合控件,以控制相关样式 — gets you the window title + icon combo control so you can control the related styles.

Returns

返回窗口标题、图标组合控件 — hands you back the window title + icon combo control.

🫶 void kdk::KWidget::setIcon (const QIcon & icon)

设置窗体图标 — sets the window icon.

Parameters

  • icon

🫶 void kdk::KWidget::setIcon (const QString & iconName)

设置窗体图标 — sets the window icon.

Parameters

  • iconName — 直接指定系统目录中的图标名称,如 'kylin-music' — you just name an icon straight out of the system directory, like 'kylin-music' 🎵

🫶 void kdk::KWidget::setSidebarFollowMode (bool flag)

设置sidebar是否遵循系统更改宽度 — sets whether the sidebar follows system width changes.

Parameters

  • flag

Since

1.2.0

🫶 void kdk::KWidget::setWidgetName (const QString & widgetName)

设置窗体名称 — sets the window name.

Parameters

  • widgetName

🫶 void kdk::KWidget::setWindowFlag (Qt::WindowType flag, bool on = true)

设置窗口标志 — sets the window flag.

Parameters

  • flag
  • on

Since

1.2.0

🫶 void kdk::KWidget::setWindowFlags (Qt::WindowFlags type)

设置窗口标志 — sets the window flags.

Parameters

  • type

Since

1.2.0

🫶 QWidget * kdk::KWidget::sideBar ()

获取左边栏widget,通过setlayout添加自定义内容 — gets you the left sidebar widget, and you add custom content to it via setlayout.

Returns

返回左边栏widget — hands you back the left sidebar widget.

🫶 bool kdk::KWidget::sidebarFollowMode ()

返回sidebar是否遵循系统更改宽度 — returns whether the sidebar follows system width changes.

Returns

(nothing listed here, bestie — the manpage leaves this one blank 🙈)

Since

1.2.0

🫶 KWindowButtonBar * kdk::KWidget::windowButtonBar ()

获取窗口三联组合控件,以控制是否显示最大化、最小化按钮和下拉菜单按钮;也可增加自定义按钮 — gets you the window's three-button combo control so you can control whether the maximize, minimize and dropdown-menu buttons are shown; you can also add custom buttons. 🔥

Returns

返回窗口三联组合控件 — hands you back the window's three-button combo control.


🌈 AUTHOR 🌈

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. 💖 (Doxygen said it, not me.)


and that's the whole page, bestie, you ATE that read 👑💅 no cap.

LIBKYSDK-APPLICATIONS · Version version:3.0 · this was the FrameModule(3) page — mwah, closing the manual, drink some water, ily 🫶🌸✨

📦 where this page comes from