42 #ifndef QCALENDARWIDGET_H 43 #define QCALENDARWIDGET_H 45 #include <QtGui/qwidget.h> 46 #include <QtCore/qdatetime.h> 54 #ifndef QT_NO_CALENDARWIDGET 76 bool navigationBarVisible;
78 int dateEditAcceptDelay;
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;
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);
164 void setDateRange(
const QDate &min,
const QDate &max);
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
The QPainter class performs low-level painting on widgets and other paint devices.
The QKeyEvent class describes a key event.
The QTextCharFormat class provides formatting information for characters in a QTextDocument.
#define QT_END_NAMESPACE
This macro expands to.
The QDate class provides date functions.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QResizeEvent class contains event parameters for resize events.
virtual bool eventFilter(QObject *, QEvent *)
Filters events if this object has been installed as an event filter for the watched object...
The QMouseEvent class contains parameters that describe a mouse event.
The QRect class defines a rectangle in the plane using integer precision.
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
The QEvent class is the base class of all event classes.
The QAction class provides an abstract user interface action that can be inserted into widgets...