KDK_KMINICALENDARWIDGET(3)

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

๐Ÿ‘‘ NAME ๐Ÿ‘‘

kdk::KMiniCalendarWidget โ€” that's the whole name, bestie, and honestly? She ate ๐Ÿ’…

This page lives in the Library Functions Manual, section 3 โ€” so if you were looking for the C library stuff, you're in the right neighborhood, just a different house ๐Ÿ โœจ


โœจ SYNOPSIS โœจ

Inherits QWidget. So yeah, she's a widget, she's got a whole parent-child thing going on, very family-oriented ๐Ÿซถ


๐ŸŽ€ Public Types ๐ŸŽ€

enum CalendarStyle { CalendarStyle_Red = 0 }
enum WeekNameFormat { WeekNameFormat_Short = 0, WeekNameFormat_Normal = 1, WeekNameFormat_Long = 2, WeekNameFormat_En = 3 }
enum SelectType { SelectType_Rect = 0, SelectType_Circle = 1, SelectType_Triangle = 2, SelectType_Image = 3 }

okay so three enums, and I need you to look at them properly because the numbers matter fr fr:

  • CalendarStyle โ€” exactly one vibe in here: CalendarStyle_Red = 0. That's it. That's the whole menu. Red era only ๐Ÿ”ด
  • WeekNameFormat โ€” four options, numbered: WeekNameFormat_Short = 0, WeekNameFormat_Normal = 1, WeekNameFormat_Long = 2, WeekNameFormat_En = 3
  • SelectType โ€” four options again: SelectType_Rect = 0, SelectType_Circle = 1, SelectType_Triangle = 2, SelectType_Image = 3

๐ŸŒธ Public Slots ๐ŸŒธ

Twenty-six of them. Not twenty-five. Not twenty-seven. Twenty-six and I counted twice ๐Ÿ’€

  • void showPreviousMonth () โ€” hop back a month, go girl
  • void showNextMonth () โ€” forward a month, main character energy
  • void showToday () โ€” take me home to today ๐Ÿก
  • void setCalendarStyle (const CalendarStyle &calendarStyle) โ€” set the overall style
  • void setWeekNameFormat (const WeekNameFormat &weekNameFormat) โ€” set the weekday name format
  • void setDate (const QDate &date) โ€” set the date
  • void setWeekTextColor (const QColor &weekTextColor) โ€” set the week text color
  • void setWeekBgColor (const QColor &weekBgColor) โ€” set the weekend-name background color
  • void setShowLunar (bool showLunar) โ€” set the lunar display on/off ๐ŸŒ™
  • void setEnableBorder (bool bVisible) โ€” enable (or not) the border. Note the param is literally named bVisible, keep it exact bestie
  • void setSelectType (const SelectType &selectType) โ€” set the selection style
  • void setBorderColor (const QColor &borderColor) โ€” border color, go
  • void setWeekColor (const QColor &weekColor) โ€” weekend color
  • void setLunarColor (const QColor &lunarColor) โ€” lunar festival color
  • void setCurrentTextColor (const QColor &currentTextColor) โ€” current month text color
  • void setOtherTextColor (const QColor &otherTextColor) โ€” other month text color
  • void setSelectTextColor (const QColor &selectTextColor) โ€” selected date text color
  • void setHoverTextColor (const QColor &hoverTextColor) โ€” hovered date text color
  • void setCurrentLunarColor (const QColor &currentLunarColor) โ€” current month lunar text color
  • void setOtherLunarColor (const QColor &otherLunarColor) โ€” other month lunar text color
  • void setSelectLunarColor (const QColor &selectLunarColor) โ€” selected date lunar text color
  • void setHoverLunarColor (const QColor &hoverLunarColor) โ€” hovered date lunar text color
  • void setCurrentBgColor (const QColor &currentBgColor) โ€” current month background color
  • void setOtherBgColor (const QColor &otherBgColor) โ€” other month background color
  • void setSelectBgColor (const QColor &selectBgColor) โ€” selected date background color
  • void setHoverBgColor (const QColor &hoverBgColor) โ€” hovered date background color

it's giving "customize literally every single pixel" and honestly? we love a thorough queen ๐Ÿ‘‘


๐Ÿฆ‹ Signals ๐Ÿฆ‹

  • void clicked (const QDate &date) โ€” a signal carrying a QDate
  • void selectionChanged () โ€” a signal, no args

๐Ÿ’œ Public Member Functions ๐Ÿ’œ

  • KMiniCalendarWidget (QWidget *parent=0) โ€” the constructor, and yes, parent=0 is the default, that's not a typo, that's what she wrote
  • CalendarStyle getCalendarStyle () const โ€” ่Žทๅ–ๆ•ดไฝ“ๆ ทๅผ (grab the overall style)
  • WeekNameFormat getWeekNameFormat () const โ€” ่Žทๅ–ๆ˜ŸๆœŸๅ็งฐๆ ผๅผ (grab the weekday name format)
  • QDate getDate () const โ€” ่Žทๅ–ๅฝ“ๅ‰ๆ—ฅๆœŸ (grab the current date)
  • QColor getWeekTextColor () const โ€” ่Žทๅ–ๆ˜ŸๆœŸๆ–‡ๆœฌ้ขœ่‰ฒ (grab the week text color)
  • QColor getWeekBgColor () const โ€” ่Žทๅ–ๅ‘จๆœซๅ็งฐ่ƒŒๆ™ฏ่‰ฒ (grab the weekend-name background color)
  • bool getShowLunar () const โ€” ่Žทๅ–ๅ†œๅކๆ˜พ็คบ (grab the lunar display setting)
  • bool getEnableBorder () const โ€” ่Žทๅ–ๅฏ็”จ่พนๆก† (grab whether the border is enabled)
  • SelectType getSelectType () const โ€” ่Žทๅ–้€‰ๆ‹ฉ็ฑปๅž‹ (grab the select type)
  • QColor getBorderColor () const โ€” ่Žทๅ–่พนๆก†้ขœ่‰ฒ (grab the border color)
  • QColor getWeekColor () const โ€” ่Žทๅ–ๅ‘จๆœซ้ขœ่‰ฒ (grab the weekend color)
  • QColor getLunarColor () const โ€” ่Žทๅ–ๅ†œๅކ่Š‚ๆ—ฅ้ขœ่‰ฒ (grab the lunar festival color)
  • QColor getCurrentTextColor () const โ€” ่Žทๅ–ๅฝ“ๅ‰ๆœˆๆ–‡ๆœฌ้ขœ่‰ฒ (grab the current month text color)
  • QColor getOtherTextColor () const โ€” ่Žทๅ–ๅ…ถไป–ๆœˆๆ–‡ๆœฌ้ขœ่‰ฒ (grab the other month text color)
  • QColor getSelectTextColor () const โ€” ่Žทๅ–้€‰ไธญๆ—ฅๆœŸๆ–‡ๆœฌ้ขœ่‰ฒ (grab the selected date text color)
  • QColor getHoverTextColor () const โ€” ่Žทๅ–ๆ‚ฌๆตฎๆ—ฅๆœŸๆ–‡ๆœฌ้ขœ่‰ฒ (grab the hovered date text color)
  • QColor getCurrentLunarColor () const โ€” ่Žทๅ–ๅฝ“ๅ‰ๆœˆๅ†œๅކๆ–‡ๅญ—้ขœ่‰ฒ (grab the current month lunar text color)
  • QColor getOtherLunarColor () const โ€” ่Žทๅ–ๅ…ถไป–ๆœˆๅ†œๅކๆ–‡ๆœฌ้ขœ่‰ฒ (grab the other month lunar text color)
  • QColor getSelectLunarColor () const โ€” ่Žทๅ–้€‰ไธญๆ—ฅๆœŸๅ†œๅކ้ขœๆ–‡ๆœฌ่‰ฒ (grab the selected date lunar text color โ€” yes, the original says ้ขœๆ–‡ๆœฌ่‰ฒ, I am NOT touching it, verbatim forever)
  • QColor getHoverLunarColor () const โ€” ่Žทๅ–ๆ‚ฌๆตฎๆ—ฅๆœŸๅ†œๅކๆ–‡ๆœฌ้ขœ่‰ฒ (grab the hovered date lunar text color)
  • QColor getCurrentBgColor () const โ€” ่Žทๅ–ๅฝ“ๅ‰ๆœˆ่ƒŒๆ™ฏ่‰ฒ (grab the current month background color)
  • QColor getOtherBgColor () const โ€” ่Žทๅ–ๅ…ถไป–ๆœˆ่ƒŒๆ™ฏ่‰ฒ (grab the other month background color)
  • QColor getSelectBgColor () const โ€” ่Žทๅ–้€‰ๆ‹ฉๆ—ฅๆœŸ่ƒŒๆ™ฏ่‰ฒ (grab the selected date background color)
  • QColor getHoverBgColor () const โ€” ่Žทๅ–ๆ‚ฌๆตฎๆ—ฅๆœŸ่ƒŒๆ™ฏ่‰ฒ (grab the hovered date background color)
  • QSize sizeHint () const โ€” the size hint ๐ŸŽ€
  • QSize minimumSizeHint () const โ€” the minimum size hint ๐ŸŽ€

๐Ÿงš Protected Member Functions ๐Ÿงš

  • void wheelEvent (QWheelEvent *event) override โ€” she overrides the wheel event, okay?? scroll responsibly
  • void paintEvent (QPaintEvent *event) override โ€” and she overrides the paint event too. Artist behavior, no cap ๐ŸŽจ

๐ŸŒˆ Properties ๐ŸŒˆ

Every single one, in order, don't blink:

  • CalendarStyle calendarStyle
  • WeekNameFormat weekNameFormat
  • QDate date
  • QColor weekTextColor
  • QColor weekBgColor
  • bool showLunar
  • bool enableBorder
  • SelectType selectType
  • QColor borderColor
  • QColor weekColor
  • QColor lunarColor
  • QColor currentTextColor
  • QColor otherTextColor
  • QColor selectTextColor
  • QColor hoverTextColor
  • QColor currentLunarColor
  • QColor otherLunarColor
  • QColor selectLunarColor
  • QColor hoverLunarColor
  • QColor currentBgColor
  • QColor otherBgColor
  • QColor selectBgColor
  • QColor hoverBgColor

twenty-three properties. she is not minimal and I respect it ๐Ÿ’…


๐Ÿ“ Member Function Documentation ๐Ÿ“

okay bestie, this part is alphabetical by function name, and every single entry has the same shape: a one-line Chinese description, then Returns. That's it. That's the whole documentation. Not me making it up โ€” I would never ๐Ÿ”ฅ

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getBorderColor () const

่Žทๅ–่พนๆก†้ขœ่‰ฒ โ€” grab the border color.

Returns

๐Ÿ’– CalendarStyle kdk::KMiniCalendarWidget::getCalendarStyle () const

่Žทๅ–ๆ•ดไฝ“ๆ ทๅผ โ€” grab the overall style.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getCurrentBgColor () const

่Žทๅ–ๅฝ“ๅ‰ๆœˆ่ƒŒๆ™ฏ่‰ฒ โ€” grab the current month background color.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getCurrentLunarColor () const

่Žทๅ–ๅฝ“ๅ‰ๆœˆๅ†œๅކๆ–‡ๅญ—้ขœ่‰ฒ โ€” grab the current month lunar text color.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getCurrentTextColor () const

่Žทๅ–ๅฝ“ๅ‰ๆœˆๆ–‡ๆœฌ้ขœ่‰ฒ โ€” grab the current month text color.

Returns

๐Ÿ’– QDate kdk::KMiniCalendarWidget::getDate () const

่Žทๅ–ๅฝ“ๅ‰ๆ—ฅๆœŸ โ€” grab the current date.

Returns

๐Ÿ’– bool kdk::KMiniCalendarWidget::getEnableBorder () const

่Žทๅ–ๅฏ็”จ่พนๆก† โ€” grab the border-enabled setting.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getHoverBgColor () const

่Žทๅ–ๆ‚ฌๆตฎๆ—ฅๆœŸ่ƒŒๆ™ฏ่‰ฒ โ€” grab the hovered date background color.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getHoverLunarColor () const

่Žทๅ–ๆ‚ฌๆตฎๆ—ฅๆœŸๅ†œๅކๆ–‡ๆœฌ้ขœ่‰ฒ โ€” grab the hovered date lunar text color.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getHoverTextColor () const

่Žทๅ–ๆ‚ฌๆตฎๆ—ฅๆœŸๆ–‡ๆœฌ้ขœ่‰ฒ โ€” grab the hovered date text color.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getLunarColor () const

่Žทๅ–ๅ†œๅކ่Š‚ๆ—ฅ้ขœ่‰ฒ โ€” grab the lunar festival color.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getOtherBgColor () const

่Žทๅ–ๅ…ถไป–ๆœˆ่ƒŒๆ™ฏ่‰ฒ โ€” grab the other month background color.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getOtherLunarColor () const

่Žทๅ–ๅ…ถไป–ๆœˆๅ†œๅކๆ–‡ๆœฌ้ขœ่‰ฒ โ€” grab the other month lunar text color.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getOtherTextColor () const

่Žทๅ–ๅ…ถไป–ๆœˆๆ–‡ๆœฌ้ขœ่‰ฒ โ€” grab the other month text color.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getSelectBgColor () const

่Žทๅ–้€‰ๆ‹ฉๆ—ฅๆœŸ่ƒŒๆ™ฏ่‰ฒ โ€” grab the selected date background color.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getSelectLunarColor () const

่Žทๅ–้€‰ไธญๆ—ฅๆœŸๅ†œๅކ้ขœๆ–‡ๆœฌ่‰ฒ โ€” grab the selected date lunar text color. (again: ้ขœๆ–‡ๆœฌ่‰ฒ, exactly as written, I will not be correcting the original, that's not my job ๐Ÿ™ˆ)

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getSelectTextColor () const

่Žทๅ–้€‰ไธญๆ—ฅๆœŸๆ–‡ๆœฌ้ขœ่‰ฒ โ€” grab the selected date text color.

Returns

๐Ÿ’– SelectType kdk::KMiniCalendarWidget::getSelectType () const

่Žทๅ–้€‰ๆ‹ฉ็ฑปๅž‹ โ€” grab the select type.

Returns

๐Ÿ’– bool kdk::KMiniCalendarWidget::getShowLunar () const

่Žทๅ–ๅ†œๅކๆ˜พ็คบ โ€” grab the lunar display setting.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getWeekBgColor () const

่Žทๅ–ๅ‘จๆœซๅ็งฐ่ƒŒๆ™ฏ่‰ฒ โ€” grab the weekend-name background color.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getWeekColor () const

่Žทๅ–ๅ‘จๆœซ้ขœ่‰ฒ โ€” grab the weekend color.

Returns

๐Ÿ’– WeekNameFormat kdk::KMiniCalendarWidget::getWeekNameFormat () const

่Žทๅ–ๆ˜ŸๆœŸๅ็งฐๆ ผๅผ โ€” grab the weekday name format.

Returns

๐Ÿ’– QColor kdk::KMiniCalendarWidget::getWeekTextColor () const

่Žทๅ–ๆ˜ŸๆœŸๆ–‡ๆœฌ้ขœ่‰ฒ โ€” grab the week text color.

Returns


๐ŸŒŸ Author ๐ŸŒŸ

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. Doxygen wrote this, not a human, and honestly Doxygen is out here doing the absolute most ๐Ÿ˜ญ


<div style="text-align:center">


and that's the whole page bestie!! ๐Ÿซถโœจ

This was LIBKYSDK-APPLICATIONS, Version version:3.0, and if you ever need to find kdk::KMiniCalendarWidget(3) again, you know exactly where she lives ๐ŸŽ€

love u, go read a man page, mwah ๐Ÿ’–๐Ÿฆ‹

</div>

๐Ÿ“ฆ where this page comes from