kdk::KComboBoxFrame(3)

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

๐Ÿ’… NAME ๐Ÿ’…

kdk::KComboBoxFrame โ€” bestie, it's the Frame that comes with a QComboBox already installed. Like, the whole package. No assembly required. ๐ŸŽ€

This page lives in the Library Functions Manual, section 3 (that's the "C++ library functions" section, iykyk).


โœจ SYNOPSIS โœจ

It Inherits kdk::KBaseFrame. So everything KBaseFrame can do? Yeah, she can do that too. Family traits. ๐Ÿงฌ

๐ŸŒธ Public Member Functions ๐ŸŒธ

  • KComboBoxFrame (const QString title, QWidget *parent=nullptr, BorderRadiusStyle style=BorderRadiusStyle::None) โ€” ๅˆ›ๅปบไธ€ไธชๅธฆ QComboBox ็š„ Frame โ€” literally "makes a Frame with a QComboBox in it". That's the whole job description. ๐Ÿ‘‘
  • KLabel * titleLabel () โ€” ่Žทๅ–label โ€” grab the label. ๐Ÿท๏ธ
  • QHBoxLayout * mainHLayout () โ€” ่Žทๅ–layout โ€” grab the layout. ๐Ÿ“
  • QComboBox * comboBox () โ€” ่Žทๅ–ไธ‹ๆ‹‰ๆก†ๆŽงไปถ โ€” grab the dropdown widget itself. The main character of this whole operation. ๐Ÿ’–

๐Ÿซถ Public Member Functions inherited from kdk::KBaseFrame ๐Ÿซถ

  • KBaseFrame (QWidget *parent=nullptr, BorderRadiusStyle style=Around, bool heightAdaptive=false) โ€” ๆž„้€ ๅ‡ฝๆ•ฐ โ€” the constructor. ๐Ÿ—๏ธ
  • void setRadiusType (BorderRadiusStyle style) โ€” ่ฎพ็ฝฎๅœ†่ง’้ฃŽๆ ผ โ€” set the corner-rounding style. Soft edges only. โœจ
  • bool getTabletMode () โ€” ่Žทๅ–ๅนณๆฟๆจกๅผ โ€” get whether tablet mode is on. ๐Ÿ“ฑ
  • bool isContainer () โ€” ่Žทๅ–ๆ˜ฏๅฆๆ˜ฏไธ€ไธชๅฎนๅ™จframe๏ผŒๆญคๆ—ถsettinggroup้œ€่ฆ่ฎพ็ฝฎ็š„ๆ˜ฏๅ…ถๅญframe็š„ๅœ†่ง’ โ€” tells you whether this is a container frame, and in that case what settinggroup needs to set is the corner rounding of its child frame, not its own. lowkey important detail, don't skip it. ๐Ÿง
  • 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) at the same time. Two-for-one. ๐ŸŽ

๐ŸŒˆ Additional Inherited Members ๐ŸŒˆ

  • Public Types inherited from kdk::KBaseFrame
    • enum BorderRadiusStyle { Top, None, Bottom, Around } โ€” the four corner moods: top only, none at all, bottom only, all the way around. โœจ
  • Signals inherited from kdk::KBaseFrame
    • void tabletModeChanged (bool b) โ€” fires when tablet mode flips. ๐Ÿฆ‹
  • Protected Member Functions inherited from kdk::KBaseFrame
    • void paintEvent (QPaintEvent *e) โ€” the paint event, protected, so hands off unless you're the subclass. ๐Ÿ™ˆ

๐ŸŽ€ Constructor & Destructor Documentation ๐ŸŽ€

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

ๅˆ›ๅปบไธ€ไธชๅธฆ QComboBox ็š„ Frame โ€” yes bestie, it builds you a Frame with a QComboBox in it. Also it's marked [explicit], so no sneaky implicit conversions, periodt. ๐Ÿ’…

Parameters

  • title โ€” text of m_settingName
  • style โ€” ่ฎพ็ฝฎๅœ†่ง’๏ผˆNone:ๆ— ๅœ†่ง’,Top:ไธŠๅœ†่ง’,Bottom:ไธ‹ๅœ†่ง’,Around:ๅ››ๅœ†่ง’๏ผ‰โ€” sets the corner rounding: None = no rounded corners, Top = top corners, Bottom = bottom corners, Around = all four corners. Pick your vibe. ๐ŸŒธ
  • parent โ€” the parent. That's it, that's the description. ๐Ÿซถ

๐Ÿ’– Member Function Documentation ๐Ÿ’–

QComboBox * kdk::KComboBoxFrame::comboBox ()

่Žทๅ–ไธ‹ๆ‹‰ๆก†ๆŽงไปถ โ€” hands you the dropdown widget. ๐ŸŽ€

Returns

QComboBox

QHBoxLayout * kdk::KComboBoxFrame::mainHLayout ()

่Žทๅ–layout โ€” hands you the layout. ๐Ÿ“

Returns

QHBoxLayout

KLabel * kdk::KComboBoxFrame::titleLabel ()

่Žทๅ–label โ€” hands you the label. ๐Ÿท๏ธ

Returns

QLabel

โญ tiny plot twist bestie: the declared return type up top is KLabel *, but the documented Returns says QLabel. Both are in the original, so both are staying right here. Not my business to pick a side. ๐Ÿ’€

๐Ÿ‘‘ Author ๐Ÿ‘‘

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. So nobody hand-wrote this, the robot did it, and honestly? She ate. ๐Ÿค–โœจ


okay that's the whole page bestie, ily, go build something iconic ๐Ÿ’…

This was brought to you by LIBKYSDK-APPLICATIONS, Version version:3.0, and page kdk::KComboBoxFrame(3) โ€” catch you in the next manpage, mwah ๐Ÿซถ๐Ÿ’–

๐Ÿ“ฆ where this page comes from