kdk::KRadioButtonFrame(3)

๐Ÿ“ฆ version 3.0.1.2, in arch rolling, ubuntu resolute, ubuntu stonking

โœจ kdk::KRadioButtonFrame(3) โœจ

Library Functions Manual ๐Ÿ’…

okay bestie, sit DOWN, because today we're learning about kdk::KRadioButtonFrame โ€” a whole entire frame that comes with a QButtonGroup built right in. she's giving "radio buttons but make it organized" ๐Ÿ‘‘


๐ŸŽ€ NAME ๐ŸŽ€

kdk::KRadioButtonFrame โ€” no cap, that's the whole name ๐Ÿ’–


๐ŸŒธ SYNOPSIS ๐ŸŒธ

Inherits kdk::KBaseFrame. family tree stays winning ๐ŸŒณ

๐Ÿ’œ Public Member Functions ๐Ÿ’œ

KRadioButtonFrame (const QString title, QWidget *parent=nullptr,
    BorderRadiusStyle style=BorderRadiusStyle::None)

ๅˆ›ๅปบไธ€ไธชๅธฆ QButtonGroup ็š„ Frame โ€” literally "makes a Frame with a QButtonGroup in it", she's a container girlie โœจ

void addButton (QRadioButton *button, int id=-1, bool addStretch=false)

ๆทปๅŠ ไธ€ไธช id = id ็š„ QRadioButton ๅˆฐ m_buttonGroup๏ผŒๅนถๆ”พๅˆฐ radioLayout ไธญ โ€” drops a QRadioButton with id = id into m_buttonGroup and tucks it into radioLayout ๐Ÿซถ

QHBoxLayout * radioHLayout ()

layout of radiobutton โ€” the layout where the radiobuttons live ๐Ÿ 

QButtonGroup * buttonGroup ()

่Žทๅ– m_buttonGroup โ€” grab m_buttonGroup ๐Ÿ’–

KLabel * titleLabel ()

่Žทๅ– label โ€” grab the label ๐Ÿท๏ธ

QHBoxLayout * mainHLayout ()

่Žทๅ– layout โ€” grab the layout โœจ


๐ŸŒˆ 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-radius style ๐Ÿ’…
  • bool getTabletMode () โ€” ่Žทๅ–ๅนณๆฟๆจกๅผ, tells you if tablet mode is on ๐Ÿ“ฑ
  • bool isContainer () โ€” ่Žทๅ–ๆ˜ฏๅฆๆ˜ฏไธ€ไธชๅฎนๅ™จ frame๏ผŒๆญคๆ—ถ settinggroup ้œ€่ฆ่ฎพ็ฝฎ็š„ๆ˜ฏๅ…ถๅญ frame ็š„ๅœ†่ง’ โ€” is this a container frame? when it is, the settinggroup needs to set the corner radius on its <em>child</em> frames, iykyk ๐Ÿงบ
  • void setContainer (bool b=false) โ€” ่ฎพ็ฝฎ่ฏฅ frame ๆ˜ฏๅฆๆ˜ฏไธ€ไธชๅฎนๅ™จ frame,ๅฆ‚ๆžœๆ˜ฏๅŒๆ—ถ setFrameShape(NoFrame)๏ผ› โ€” sets whether this frame is a container frame, and if it is, it also does setFrameShape(NoFrame) ๐ŸŽ

๐Ÿฆ‹ Additional Inherited Members ๐Ÿฆ‹

โญ Public Types inherited from kdk::KBaseFrame

enum BorderRadiusStyle { Top, None, Bottom, Around }

four flavors of round, pick your fighter ๐Ÿฌ

๐Ÿ”” Signals inherited from kdk::KBaseFrame

void tabletModeChanged (bool b)

she beeps when tablet mode flips, we love a signal ๐Ÿ’Œ

๐Ÿ™ˆ Protected Member Functions inherited from kdk::KBaseFrame

void paintEvent (QPaintEvent *e)

the paint goblin, doing her thing ๐ŸŽจ


๐Ÿ’– Constructor & Destructor Documentation ๐Ÿ’–

kdk::KRadioButtonFrame::KRadioButtonFrame (const QString title, QWidget * parent = nullptr, BorderRadiusStyle style = BorderRadiusStyle::None) [explicit]

ๅˆ›ๅปบไธ€ไธชๅธฆ QButtonGroup ็š„ Frame โ€” yes, she makes a Frame that comes with a QButtonGroup, main character energy fr fr โœจ

Parameters

  • title โ€” text of m_settingName ๐Ÿท๏ธ
  • style โ€” ่ฎพ็ฝฎๅœ†่ง’๏ผˆNone:ๆ— ๅœ†่ง’,Top:ไธŠๅœ†่ง’,Bottom:ไธ‹ๅœ†่ง’,Around:ๅ››ๅœ†่ง’๏ผ‰โ€” sets the corner radius: None = no rounding, Top = top corners, Bottom = bottom corners, Around = all four corners ๐ŸŽ€
  • parent โ€” (no description given, she's mysterious like that ๐Ÿ™ˆ)
lowkey iconic that style defaults to BorderRadiusStyle::None here, not Around like the base class. no cap, that's just how it is ๐Ÿ’€

๐ŸŒŸ Member Function Documentation ๐ŸŒŸ

void kdk::KRadioButtonFrame::addButton (QRadioButton * button, int id = -1, bool addStretch = false)

ๆทปๅŠ ไธ€ไธช id = id ็š„ QRadioButton ๅˆฐ m_buttonGroup๏ผŒๅนถๆ”พๅˆฐ radioLayout ไธญ โ€” adds a QRadioButton with id = id into m_buttonGroup and places it into radioLayout ๐Ÿซถ

Parameters

  • button โ€” ้œ€่ฆๆทปๅŠ ็š„ QRadioButton โ€” the QRadioButton you wanna add ๐ŸŽฏ
  • id โ€” ็”จไบŽ buttonClicked ไฟกๅทไผ ้€’็š„ๅ‚ๆ•ฐ โ€” the value passed along by the buttonClicked signal ๐Ÿ“ก
  • addStretch โ€” ๆ˜ฏๅฆ addStretch โ€” whether to addStretch ๐Ÿชข

QButtonGroup * kdk::KRadioButtonFrame::buttonGroup ()

่Žทๅ– m_buttonGroup โ€” grabs m_buttonGroup ๐Ÿ’–

Returns

QButtonGroup ๐Ÿ‘‘

QHBoxLayout * kdk::KRadioButtonFrame::mainHLayout ()

่Žทๅ– layout โ€” grabs the layout โœจ

Returns

QHBoxLayout ๐ŸŒˆ

QHBoxLayout * kdk::KRadioButtonFrame::radioHLayout ()

layout of radiobutton โ€” the layout of the radiobutton ๐Ÿ“

Returns

QHBoxLayout ๐ŸŽ€

KLabel * kdk::KRadioButtonFrame::titleLabel ()

่Žทๅ– label โ€” grabs the label ๐Ÿท๏ธ

Returns

QLabel โญ


๐Ÿ’Œ Author ๐Ÿ’Œ

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. โ€” so like, a robot wrote it, not a girlie, but she ate anyway ๐Ÿค–โœจ


and that's the whole page bestie!! ๐Ÿ’… go forth and build radio button frames, you've got this, periodt ๐Ÿ‘‘

LIBKYSDK-APPLICATIONS ยท Version version:3.0 ยท kdk::KRadioButtonFrame(3) ๐Ÿฆ‹๐Ÿ’–๐ŸŒธ

๐Ÿ“ฆ where this page comes from