kdk::KSettingGroup(3)

πŸ“¦ version 3.0.1.2, in arch rolling, ubuntu resolute, ubuntu stonking

πŸŽ€ kdk::KSettingGroup πŸŽ€

okay so bestie, welcome to the Library Functions Manual side of town β€” this is the whole entire tea on kdk::KSettingGroup, a lil Qt frame that keeps its rounded corners immaculate. it's giving main character energy ✨


πŸ’– NAME πŸ’–

kdk::KSettingGroup β€” that's the name, that's the whole vibe πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

Inherits kdk::KBaseFrame.

🌸 Public Member Functions 🌸

  • KSettingGroup (QWidget *parent=nullptr, Shape shape=QFrame::NoFrame, BorderRadiusStyle style=BorderRadiusStyle::None) β€” builds you a vertical layout Frame with a spacing of 1
  • void addWidget (QFrame *item, bool autoUpdateShape=true, bool visible=true) β€” adds a widget to mainLayout and refreshes the rounded corners
  • void insertWidget (int index, QFrame *item, bool autoUpdateShape=true, bool visible=true) β€” adds a widget to mainLayout and refreshes the rounded corners
  • void removeWidget (QWidget *w, bool autoUpdateShape=true) β€” removes a widget from mainLayout and refreshes the rounded corners
  • void updateShape () β€” refreshes the rounded corners
  • QVBoxLayout * layout () β€” hands you back mainLayout
  • void setLastRadiusStyle (BorderRadiusStyle style) β€” sets the corner style of the very last frame
  • void setOneRadiusStyle (BorderRadiusStyle style) β€” sets the corner style for when there's only one frame
  • int showItemsCount () β€” tells you how many child widgets are currently showing
  • void removeAndDeleteAllWidget () β€” removes and deletes every single child widget, no survivors

πŸ’œ Public Member Functions inherited from kdk::KBaseFrame πŸ’œ

  • KBaseFrame (QWidget *parent=nullptr, BorderRadiusStyle style=Around, bool heightAdaptive=false) β€” the constructor, the origin story
  • void setRadiusType (BorderRadiusStyle style) β€” sets the corner style
  • bool getTabletMode () β€” tells you if tablet mode is on
  • bool isContainer () β€” tells you whether this is a container frame β€” and if it is, then a settinggroup needs to set the corners of its child frames instead
  • void setContainer (bool b=false) β€” sets whether this frame is a container frame; if it is, it also does setFrameShape(NoFrame) at the same time

🫢 Protected Member Functions 🫢

  • bool eventFilter (QObject *watched, QEvent *event)

πŸ’… Protected Member Functions inherited from kdk::KBaseFrame πŸ’…

  • void paintEvent (QPaintEvent *e)

✨ Additional Inherited Members ✨

  • Public Types inherited from kdk::KBaseFrame β€” enum BorderRadiusStyle { Top, None, Bottom, Around }
  • Signals inherited from kdk::KBaseFrame β€” void tabletModeChanged (bool b)

🌈 Constructor & Destructor Documentation 🌈

kdk::KSettingGroup::KSettingGroup (QWidget * parent = nullptr, Shape shape = QFrame::NoFrame, BorderRadiusStyle style = BorderRadiusStyle::None)

[explicit]

Creates a vertical layout Frame with a spacing of 1. iconic behaviour, honestly 🧚

Parameters

  • Shape β€” sets the frameShap
  • style β€” sets the rounded corners (None: no rounded corners, Top: top corners rounded, Bottom: bottom corners rounded, Around: all four corners rounded)
  • parent

πŸ’€ Member Function Documentation πŸ’€

void kdk::KSettingGroup::addWidget (QFrame * item, bool autoUpdateShape = true, bool visible = true)

Adds a widget to mainLayout and refreshes the rounded corners. ✨

Parameters

  • item β€” the widget you wanna add
  • autoUpdateShape β€” whether to automatically refresh the corner style of item
  • visible β€” when a widget hasn't actually been shown, isVisible is always false, which breaks the rounded corners, so it gets set again here. This is a Qt BUG, not us, we promise 😭

void kdk::KSettingGroup::insertWidget (int index, QFrame * item, bool autoUpdateShape = true, bool visible = true)

Adds a widget to mainLayout and refreshes the rounded corners. ✨

Parameters

  • index β€” the position number
  • item β€” the widget you wanna add
  • autoUpdateShape β€” whether to automatically refresh the corner style of item
  • visible β€” when a widget hasn't actually been shown, isVisible is always false, which breaks the rounded corners, so it gets set again here. This is a Qt BUG, not us, we promise 😭

QVBoxLayout * kdk::KSettingGroup::layout ()

Hands you back mainLayout.

Returns

QVBoxLayout β€” mainLayout, as promised 🫢

void kdk::KSettingGroup::removeWidget (QWidget * w, bool autoUpdateShape = true)

Removes a widget from mainLayout and refreshes the rounded corners.

Parameters

  • w β€” the widget you wanna remove
  • autoUpdateShape β€” whether to automatically refresh the corner style of item

void kdk::KSettingGroup::setLastRadiusStyle (BorderRadiusStyle style)

Sets the corner style of the very last frame β€” yes, the special one, the final boss πŸ‘‘

Parameters

  • style β€” the corner style

void kdk::KSettingGroup::setOneRadiusStyle (BorderRadiusStyle style)

Sets the corner style for when there's only one frame. solo frame, solo glow-up πŸ’…

Parameters

  • style

int kdk::KSettingGroup::showItemsCount ()

Tells you how many child widgets are showing. headcount, but make it cute πŸŽ€

Returns

int β€” how many child widgets are showing


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. no cap, a robot wrote this and honestly? it ate πŸ€–βœ¨


okay that's the whole page bestie, love u, bye πŸ’–

mwah πŸ’‹ β€” this was LIBKYSDK-APPLICATIONS, Version version:3.0, and the date stamp on this beauty is kdk::KSettingGroup(3). periodt. πŸ¦‹

πŸ“¦ where this page comes from