CCIMXDesktop
 
Loading...
Searching...
No Matches
ModernCalendarWidget Class Reference

The ModernCalendarWidget class. More...

#include <ModernCalendarWidget.h>

Inheritance diagram for ModernCalendarWidget:

Public Member Functions

 ModernCalendarWidget (QWidget *parent=nullptr)
 ModernCalendarWidget.
 
void setDarkMode (bool darkMode)
 setDarkMode set the calendar as the darkMode
 
bool isDarkMode () const
 isDarkMode
 
void setColorForDate (const QDate &date, const QColor &color)
 setColorForDate marking for the date
 
void popColorForData (const QDate &date)
 popColorForData pop out the markings
 
 ModernCalendarWidget (QWidget *parent=nullptr)
 ModernCalendarWidget.
 
void setDarkMode (bool darkMode)
 setDarkMode set the calendar as the darkMode
 
bool isDarkMode () const
 isDarkMode
 
void setColorForDate (const QDate &date, const QColor &color)
 setColorForDate marking for the date
 
void popColorForData (const QDate &date)
 popColorForData pop out the markings
 

Protected Member Functions

void paintCell (QPainter *painter, const QRect &rect, const QDate date) const override
 paintCell
 
void paintCell (QPainter *painter, const QRect &rect, const QDate date) const override
 paintCell
 

Detailed Description

Constructor & Destructor Documentation

◆ ModernCalendarWidget() [1/2]

ModernCalendarWidget::ModernCalendarWidget ( QWidget *  parent = nullptr)
explicit

ModernCalendarWidget.

Parameters
parent

◆ ModernCalendarWidget() [2/2]

ModernCalendarWidget::ModernCalendarWidget ( QWidget *  parent = nullptr)
explicit

ModernCalendarWidget.

Parameters
parent

Member Function Documentation

◆ isDarkMode() [1/2]

bool ModernCalendarWidget::isDarkMode ( ) const
inline

isDarkMode

Returns
isDarkMode

◆ isDarkMode() [2/2]

bool ModernCalendarWidget::isDarkMode ( ) const
inline

isDarkMode

Returns
isDarkMode

◆ paintCell() [1/2]

void ModernCalendarWidget::paintCell ( QPainter *  painter,
const QRect &  rect,
const QDate  date 
) const
overrideprotected

paintCell

Parameters
painter
rect
date

◆ paintCell() [2/2]

void ModernCalendarWidget::paintCell ( QPainter *  painter,
const QRect &  rect,
const QDate  date 
) const
overrideprotected

paintCell

Parameters
painter
rect
date

◆ popColorForData() [1/2]

void ModernCalendarWidget::popColorForData ( const QDate &  date)

popColorForData pop out the markings

Parameters
date

◆ popColorForData() [2/2]

void ModernCalendarWidget::popColorForData ( const QDate &  date)

popColorForData pop out the markings

Parameters
date

◆ setColorForDate() [1/2]

void ModernCalendarWidget::setColorForDate ( const QDate &  date,
const QColor &  color 
)

setColorForDate marking for the date

Parameters
date
color

◆ setColorForDate() [2/2]

void ModernCalendarWidget::setColorForDate ( const QDate &  date,
const QColor &  color 
)

setColorForDate marking for the date

Parameters
date
color

◆ setDarkMode() [1/2]

void ModernCalendarWidget::setDarkMode ( bool  darkMode)

setDarkMode set the calendar as the darkMode

Parameters
darkModeisDarkMode

◆ setDarkMode() [2/2]

void ModernCalendarWidget::setDarkMode ( bool  darkMode)

setDarkMode set the calendar as the darkMode

Parameters
darkModeisDarkMode

The documentation for this class was generated from the following files: