QtGui/qcalendarwidget.h Source File
Go to the documentation of this file.
42 #ifndef QCALENDARWIDGET_H
43 #define QCALENDARWIDGET_H
54 #ifndef QT_NO_CALENDARWIDGET
58 class QCalendarWidgetPrivate;
71 Q_PROPERTY(
bool gridVisible READ isGridVisible WRITE setGridVisible)
75 Q_PROPERTY(
bool headerVisible READ isHeaderVisible WRITE setHeaderVisible STORED false DESIGNABLE false)
76 Q_PROPERTY(
bool navigationBarVisible READ isNavigationBarVisible WRITE setNavigationBarVisible)
77 Q_PROPERTY(
bool dateEditEnabled READ isDateEditEnabled WRITE setDateEditEnabled)
78 Q_PROPERTY(
int dateEditAcceptDelay READ dateEditAcceptDelay WRITE setDateEditAcceptDelay)
104 QDate selectedDate()
const;
106 int yearShown()
const;
107 int monthShown()
const;
109 QDate minimumDate()
const;
110 void setMinimumDate(
const QDate &date);
112 QDate maximumDate()
const;
113 void setMaximumDate(
const QDate &date);
119 bool isHeaderVisible()
const;
120 void setHeaderVisible(
bool show);
124 bool isGridVisible()
const;
129 HorizontalHeaderFormat horizontalHeaderFormat()
const;
130 void setHorizontalHeaderFormat(HorizontalHeaderFormat
format);
132 VerticalHeaderFormat verticalHeaderFormat()
const;
133 void setVerticalHeaderFormat(VerticalHeaderFormat
format);
145 bool isDateEditEnabled()
const;
146 void setDateEditEnabled(
bool enable);
148 int dateEditAcceptDelay()
const;
149 void setDateEditAcceptDelay(
int delay);
158 virtual void paintCell(
QPainter *painter,
const QRect &rect,
const QDate &date)
const;
159 void updateCell(
const QDate &date);
163 void setSelectedDate(
const QDate &date);
165 void setCurrentPage(
int year,
int month);
166 void setGridVisible(
bool show);
167 void setNavigationBarVisible(
bool visible);
168 void showNextMonth();
169 void showPreviousMonth();
171 void showPreviousYear();
172 void showSelectedDate();
176 void selectionChanged();
177 void clicked(
const QDate &date);
178 void activated(
const QDate &date);
179 void currentPageChanged(
int year,
int month);
197 #endif // QT_NO_CALENDARWIDGET
203 #endif // QCALENDARWIDGET_H
virtual bool eventFilter(QObject *, QEvent *)
#define Q_PRIVATE_SLOT(d, signature)
#define QT_BEGIN_NAMESPACE
GLenum GLsizei GLenum format