kdk::KBaseFrame(3)

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

🎀 NAME 🎀

kdk::KBaseFrame — the base frame class, straight out of the Library Functions Manual, page kdk::KBaseFrame(3). She's the blueprint bestie, the one every other frame in the family copies their homework from. 💅


✨ SYNOPSIS ✨

Inherits QFrame. Yes queen, it's a QFrame at heart. 🦋

Inherited by kdk::KComboBoxFrame, kdk::KLineEditFrame, kdk::KPushButtonFrame, kdk::KRadioButtonFrame, kdk::KSettingGroup, kdk::KSliderFrame, and kdk::KSwitchButtonFrame. That's a whole squad. A whole lineage. 👑

🔖 Public Types

  • enum BorderRadiusStyle { Top, None, Bottom, Around }

📣 Signals

  • void tabletModeChanged (bool b)

💖 Public Member Functions

  • KBaseFrame (QWidget *parent=nullptr, BorderRadiusStyle style=Around, bool heightAdaptive=false) — 构造函数 — the constructor, the birth of a frame, iconic.
  • void setRadiusType (BorderRadiusStyle style) — 设置圆角风格 — sets the rounded-corner style.
  • bool getTabletMode () — 获取平板模式 — gets the tablet mode.
  • bool isContainer () — 获取是否是一个容器frame,此时settinggroup需要设置的是其子frame的圆角 — checks whether this is a container frame; in that case, what settinggroup needs to set is the rounded corners of its child frame.
  • void setContainer (bool b=false) — 设置该frame是否是一个容器frame,如果是同时setFrameShape(NoFrame); — sets whether this frame is a container frame; if it is, it also does setFrameShape(NoFrame).

🛡️ Protected Member Functions

  • void paintEvent (QPaintEvent *e)

🌈 Member Enumeration Documentation 🌈

enum kdk::KBaseFrame::BorderRadiusStyle

The Enumerator girlies, one by one:

  • Top — 顶部有圆角 — rounded corners up top, like a little tiara. ✨
  • None — 没有圆角 — no rounded corners at all. Sharp. Angular. Periodt.
  • Bottom — 底部有圆角 — rounded corners down at the bottom.
  • Around — 四周都有圆角 — rounded corners on all four sides, full soft-girl energy. 🎀

🫶 Constructor & Destructor Documentation 🫶

kdk::KBaseFrame::KBaseFrame (QWidget * parent = nullptr, BorderRadiusStyle style = Around, bool heightAdaptive = false) [explicit]

构造函数 — she's born. 💖

Parameters

  • parent — 父对象 — the parent object.
  • style — 圆角风格枚举值 — the rounded-corner style enum value.
  • heightAdaptive — 是否自动调整高度,默认PC下60,平板模式64 — whether to auto-adjust the height; the default is 60 on PC, and 64 in tablet mode.

💜 Member Function Documentation 💜

bool kdk::KBaseFrame::getTabletMode ()

获取平板模式 — gets the tablet mode.

Returns

  • bool — 是否是平板模式 — whether it's tablet mode.

bool kdk::KBaseFrame::isContainer ()

获取是否是一个容器frame,此时settinggroup需要设置的是其子frame的圆角 — checks whether this is a container frame; in that case, what settinggroup needs to set is the rounded corners of its child frame.

Returns

  • bool — 是/不是 — yes / no.

void kdk::KBaseFrame::setContainer (bool b = false)

设置该frame是否是一个容器frame,如果是同时setFrameShape(NoFrame); — sets whether this frame is a container frame; if it is, it also does setFrameShape(NoFrame).

Parameters

  • b — 是/不是 — yes / no.

void kdk::KBaseFrame::setRadiusType (BorderRadiusStyle style)

设置圆角风格 — sets the rounded-corner style.

Parameters

  • style — 圆角风格枚举值 — the rounded-corner style enum value.

👑 Author 👑

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. Not a human author, just Doxygen doing its little robot slay. 🤖✨


okay bestie that's the whole page, no cap, every single line accounted for 💯

Sign-off szn: this whole thing comes from LIBKYSDK-APPLICATIONS, Version version:3.0, and that's the footer, so… mwah, kisses, go build something cute with your frames 🫶💖🌸

📦 where this page comes from