kdk::KMiniCalendarItem(3)

NAME
kdk::KMiniCalendarItem

SYNOPSIS

Inherits QWidget.

  Public Types

enum DayType { DayType_MonthPre = 0, DayType_MonthNext = 1, DayType_MonthCurrent = 2, DayType_WeekEnd = 3 }
enum SelectType { SelectType_Rect = 0, SelectType_Circle = 1, SelectType_Triangle = 2, SelectType_Image = 3 }

  Public Slots

void setSelect (bool select)
void setShowLunar (bool showLunar)
void setSelectType (const SelectType &selectType)
void setDate (const QDate &date)
void setLunar (const QString &lunar)
void setDayType (const DayType &dayType)
void setDate (const QDate &date, const QString &lunar, const DayType &dayType)
void setEnableBorder (bool bVisible)
void setBorderColor (const QColor &borderColor)
void setWeekColor (const QColor &weekColor)
void setSuperColor (const QColor &superColor)
void setLunarColor (const QColor &lunarColor)
void setCurrentTextColor (const QColor &currentTextColor)
void setOtherTextColor (const QColor &otherTextColor)
void setSelectTextColor (const QColor &selectTextColor)
void setHoverTextColor (const QColor &hoverTextColor)
void setCurrentLunarColor (const QColor &currentLunarColor)
void setOtherLunarColor (const QColor &otherLunarColor)
void setSelectLunarColor (const QColor &selectLunarColor)
void setHoverLunarColor (const QColor &hoverLunarColor)
void setCurrentBgColor (const QColor &currentBgColor)
void setOtherBgColor (const QColor &otherBgColor)
void setSelectBgColor (const QColor &selectBgColor)
void setHoverBgColor (const QColor &hoverBgColor)

  Signals

void clicked (const QDate &date, const KMiniCalendarItem::DayType &dayType)

  Public Member Functions

KMiniCalendarItem (QWidget *parent=0)
bool getSelect () const
获取是否选中
bool getShowLunar () const
获取是否显示农历
bool getEnableBorder () const
获取启用边界
SelectType getSelectType () const
获取选择类型
QDate getDate () const
获取当前日期
QString getLunar () const
获取农历信息
DayType getDayType () const
获取日期类型
QColor getBorderColor () const
获取边框颜色
QColor getWeekColor () const
获取周颜色
QColor getSuperColor () const
获取角标颜色
QColor getLunarColor () const
获取农历节日颜色
QColor getCurrentTextColor () const
获取当前月文字颜色
QColor getOtherTextColor () const
获取其他月文字颜色
QColor getSelectTextColor () const
获取选中日期文字颜色
QColor getHoverTextColor () const
获取悬停日期文字颜色
QColor getCurrentLunarColor () const
获取当前月农历文字颜色
QColor getOtherLunarColor () const
获取其他月农历文字颜色
QColor getSelectLunarColor () const
获取选中日期农历文字颜色
QColor getHoverLunarColor () const
获取悬停日期农历文字颜色
QColor getCurrentBgColor () const
获取当前月背景颜色
QColor getOtherBgColor () const
获取其他月背景颜色
QColor getSelectBgColor () const
获取选中日期背景颜色
QColor getHoverBgColor () const
获取悬停日期背景颜色
QSize sizeHint () const
QSize minimumSizeHint () const

  Protected Member Functions

void enterEvent (QEvent *)
void leaveEvent (QEvent *)
void mousePressEvent (QMouseEvent *)
void mouseReleaseEvent (QMouseEvent *)
void paintEvent (QPaintEvent *)
void drawBg (QPainter *painter)
void drawBgCurrent (QPainter *painter, const QColor &color)
void drawDay (QPainter *painter)
void drawLunar (QPainter *painter)

  Properties

bool select
bool showLunar
bool enableBorder
SelectType selectType
QDate date
QString lunar
DayType dayType
QColor borderColor
QColor weekColor
QColor superColor
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

Member Function Documentation

  QColor kdk::KMiniCalendarItem::getBorderColor () const

获取边框颜色

Returns

  QColor kdk::KMiniCalendarItem::getCurrentBgColor () const

获取当前月背景颜色

Returns

  QColor kdk::KMiniCalendarItem::getCurrentLunarColor () const

获取当前月农历文字颜色

Returns

  QColor kdk::KMiniCalendarItem::getCurrentTextColor () const

获取当前月文字颜色

Returns

  QDate kdk::KMiniCalendarItem::getDate () const

获取当前日期

Returns

  DayType kdk::KMiniCalendarItem::getDayType () const

获取日期类型

Returns

  bool kdk::KMiniCalendarItem::getEnableBorder () const

获取启用边界

Returns

  QColor kdk::KMiniCalendarItem::getHoverBgColor () const

获取悬停日期背景颜色

Returns

  QColor kdk::KMiniCalendarItem::getHoverLunarColor () const

获取悬停日期农历文字颜色

Returns

  QColor kdk::KMiniCalendarItem::getHoverTextColor () const

获取悬停日期文字颜色

Returns

  QString kdk::KMiniCalendarItem::getLunar () const

获取农历信息

Returns

  QColor kdk::KMiniCalendarItem::getLunarColor () const

获取农历节日颜色

Returns

  QColor kdk::KMiniCalendarItem::getOtherBgColor () const

获取其他月背景颜色

Returns

  QColor kdk::KMiniCalendarItem::getOtherLunarColor () const

获取其他月农历文字颜色

Returns

  QColor kdk::KMiniCalendarItem::getOtherTextColor () const

获取其他月文字颜色

Returns

  bool kdk::KMiniCalendarItem::getSelect () const

获取是否选中

Returns

  QColor kdk::KMiniCalendarItem::getSelectBgColor () const

获取选中日期背景颜色

Returns

  QColor kdk::KMiniCalendarItem::getSelectLunarColor () const

获取选中日期农历文字颜色

Returns

  QColor kdk::KMiniCalendarItem::getSelectTextColor () const

获取选中日期文字颜色

Returns

  SelectType kdk::KMiniCalendarItem::getSelectType () const

获取选择类型

Returns

  bool kdk::KMiniCalendarItem::getShowLunar () const

获取是否显示农历

Returns

  QColor kdk::KMiniCalendarItem::getSuperColor () const

获取角标颜色

Returns

  QColor kdk::KMiniCalendarItem::getWeekColor () const

获取周颜色

Returns

Author

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code.