\section{KDate\-Widget Class Reference}
\label{classKDateWidget}\index{KDateWidget@{KDateWidget}}
A pushbutton to display or allow user selection of a date.  


{\tt \#include $<$kdatewidget.h$>$}

Inheritance diagram for KDate\-Widget:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=55pt]{classKDateWidget__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KDate\-Widget:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=55pt]{classKDateWidget__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf changed} ({\bf QDate})
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KDate\-Widget} ({\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
{\bf KDate\-Widget} ({\bf QDate} date, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
virtual {\bf $\sim$KDate\-Widget} ()
\item 
{\bf QDate} {\bf date} () const 
\item 
void {\bf set\-Date} ({\bf QDate} date)
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Date\-Changed} ()\label{classKDateWidget_j0}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf init} ()\label{classKDateWidget_b0}

\item 
void {\bf init} (const {\bf QDate} \&)\label{classKDateWidget_b1}

\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKDateWidget_b2}

\end{CompactItemize}
\subsection*{Properties}
\begin{CompactItemize}
\item 
{\bf QDate} {\bf date}\label{classKDateWidget_00}

\end{CompactItemize}


\subsection{Detailed Description}
A pushbutton to display or allow user selection of a date. 

This widget can be used to display or allow user selection of a date.

\begin{Desc}
\item[See also:]{\bf KDate\-Picker}{\rm (p.\,\pageref{classKDatePicker})}\end{Desc}
\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]{\bf kdatewidget.h}{\rm (p.\,\pageref{kdatewidget_8h})} 353338 2004-10-10 11:37:56Z bhards \end{Desc}
\end{Desc}




Definition at line 36 of file kdatewidget.h.

\subsection{Constructor \& Destructor Documentation}
\index{KDateWidget@{KDate\-Widget}!KDateWidget@{KDateWidget}}
\index{KDateWidget@{KDateWidget}!KDateWidget@{KDate\-Widget}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDate\-Widget::KDate\-Widget ({\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKDateWidget_a0}


Constructs a date selection widget. 



Definition at line 54 of file kdatewidget.cpp.

References set\-Date().\index{KDateWidget@{KDate\-Widget}!KDateWidget@{KDateWidget}}
\index{KDateWidget@{KDateWidget}!KDateWidget@{KDate\-Widget}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDate\-Widget::KDate\-Widget ({\bf QDate} {\em date}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKDateWidget_a1}


Constructs a date selection widget with the initial date set to {\tt date}. 



Definition at line 62 of file kdatewidget.cpp.

References set\-Date().\index{KDateWidget@{KDate\-Widget}!~KDateWidget@{$\sim$KDateWidget}}
\index{~KDateWidget@{$\sim$KDateWidget}!KDateWidget@{KDate\-Widget}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDate\-Widget::$\sim${\bf KDate\-Widget} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKDateWidget_a2}


Destructs the date selection widget. 



Definition at line 120 of file kdatewidget.cpp.

\subsection{Member Function Documentation}
\index{KDateWidget@{KDate\-Widget}!date@{date}}
\index{date@{date}!KDateWidget@{KDate\-Widget}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QDate} KDate\-Widget::date () const}\label{classKDateWidget_a3}


Returns the currently selected date. 

\index{KDateWidget@{KDate\-Widget}!setDate@{setDate}}
\index{setDate@{setDate}!KDateWidget@{KDate\-Widget}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDate\-Widget::set\-Date ({\bf QDate} {\em date})}\label{classKDateWidget_a4}


Changes the selected date to {\tt date}. 



Definition at line 126 of file kdatewidget.cpp.

References KLocale::calendar(), changed(), KCalendar\-System::day(), KCalendar\-System::days\-In\-Month(), KGlobal::locale(), KCalendar\-System::month(), and KCalendar\-System::year().

Referenced by KDate\-Widget().\index{KDateWidget@{KDate\-Widget}!changed@{changed}}
\index{changed@{changed}!KDateWidget@{KDate\-Widget}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDate\-Widget::changed ({\bf QDate})\hspace{0.3cm}{\tt  [signal]}}\label{classKDateWidget_l0}


Emitted whenever the date of the widget is changed, either with {\bf set\-Date()}{\rm (p.\,\pageref{classKDateWidget_a4})} or via user selection. 



Referenced by set\-Date().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kdatewidget.h\item 
kdatewidget.cpp\end{CompactItemize}
