kdk::KSettingGroup(3)
π 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 of1void addWidget (QFrame *item, bool autoUpdateShape=true, bool visible=true)β adds a widget tomainLayoutand refreshes the rounded cornersvoid insertWidget (int index, QFrame *item, bool autoUpdateShape=true, bool visible=true)β adds a widget tomainLayoutand refreshes the rounded cornersvoid removeWidget (QWidget *w, bool autoUpdateShape=true)β removes a widget frommainLayoutand refreshes the rounded cornersvoid updateShape ()β refreshes the rounded cornersQVBoxLayout * layout ()β hands you backmainLayoutvoid setLastRadiusStyle (BorderRadiusStyle style)β sets the corner style of the very last framevoid setOneRadiusStyle (BorderRadiusStyle style)β sets the corner style for when there's only one frameint showItemsCount ()β tells you how many child widgets are currently showingvoid 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 storyvoid setRadiusType (BorderRadiusStyle style)β sets the corner stylebool getTabletMode ()β tells you if tablet mode is onbool 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 insteadvoid setContainer (bool b=false)β sets whether this frame is a container frame; if it is, it also doessetFrameShape(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 theframeShapstyleβ 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 addautoUpdateShapeβ whether to automatically refresh the corner style ofitemvisibleβ when a widget hasn't actually been shown,isVisibleis alwaysfalse, 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 numberitemβ the widget you wanna addautoUpdateShapeβ whether to automatically refresh the corner style ofitemvisibleβ when a widget hasn't actually been shown,isVisibleis alwaysfalse, 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 removeautoUpdateShapeβ whether to automatically refresh the corner style ofitem
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
- arch rolling: libkysdk-applications 3.0.1.2-1 Β· BSD-3-Clause AND GPL-3.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND MIT AND MulanPSL-2.0
- ubuntu resolute: libkysdk-applications-dev 3.0.1.1-1 Β· LGPL-3.0-or-later
- ubuntu stonking: libkysdk-applications-dev 3.0.1.2-1build2 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms