<class name="QTimeEdit" doc="/** <p>The <a href="QTimeEdit.html#QTimeEdit(com.trolltech.qt.gui.QWidget)"><tt>QTimeEdit</tt></a> class provides a widget for editing times based on the <a href="QDateTimeEdit.html#QDateTimeEdit(com.trolltech.qt.core.QDate, com.trolltech.qt.gui.QWidget)"><tt>QDateTimeEdit</tt></a> widget.</p> <p>Many of the properties and functions provided by <a href="QTimeEdit.html#QTimeEdit(com.trolltech.qt.gui.QWidget)"><tt>QTimeEdit</tt></a> are implemented in <a href="QDateTimeEdit.html#QDateTimeEdit(com.trolltech.qt.core.QDate, com.trolltech.qt.gui.QWidget)"><tt>QDateTimeEdit</tt></a>. The following properties are most relevant to users of this class:</p> <ul> <li>time</tt> holds the date displayed by the widget.</li> <li>minimumTime defines the minimum (earliest) time that can be set by the user.</li> <li>maximumTime defines the maximum (latest) time that can be set by the user.</li> <li>displayFormat contains a string that is used to format the time displayed in the widget.</li> </ul> <p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><img src="%2E%2E/images/windowsxp-timeedit.png" alt="Screenshot of a Windows XP style time editing widget" /></td><td>A time editing widget shown in the <a href="%2E%2E/gallery-windowsxp.html">Windows XP widget style</tt></a>.</td></tr> <tr valign="top" class="even"><td><img src="%2E%2E/images/macintosh-timeedit.png" alt="Screenshot of a Macintosh style time editing widget" /></td><td>A time editing widget shown in the <a href="%2E%2E/gallery-macintosh.html">Macintosh widget style</tt></a>.</td></tr> <tr valign="top" class="odd"><td><img src="%2E%2E/images/plastique-timeedit.png" alt="Screenshot of a Plastique style time editing widget" /></td><td>A time editing widget shown in the <a href="%2E%2E/gallery-plastique.html">Plastique widget style</tt></a>.</td></tr> </table></p> @see <a href="QDateEdit.html"><tt>QDateEdit</tt></a> @see <a href="QDateTimeEdit.html#QDateTimeEdit(com.trolltech.qt.core.QDate, com.trolltech.qt.gui.QWidget)"><tt>QDateTimeEdit</tt></a> */"> <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/** <p>This signal is emitted when the widget's <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a> is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position <tt>pos</tt> is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is <a href="QAbstractScrollArea.html"><tt>QAbstractScrollArea</tt></a> and its subclasses that map the context menu event to coordinates of the viewport()</tt> .</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QPoint pos)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)"><tt>mapToGlobal</tt></a>, <a href="QMenu.html"><tt>QMenu</tt></a>, <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a></dd> </dl> */"/> <signal name="protected final void dateChanged(com.trolltech.qt.core.QDate date)" doc="/** <p>This signal is emitted whenever the date is changed. The new date is passed in <tt>date</tt>.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QDate date)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> */"/> <signal name="protected final void dateTimeChanged(com.trolltech.qt.core.QDateTime date)" doc="/** <p>This signal is emitted whenever the date or time is changed. The new date and time is passed in <tt>date</tt>.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QDateTime date)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> */"/> <signal name="protected final void editingFinished()" doc="/** <p>This signal is emitted editing is finished. This happens when the spinbox loses focus and when enter is pressed.</p> <dl> <dt><b>Compatible Slot Signature:</b></dt> <dd><tt>void mySlot()</tt></dd> </dl> */"/> <signal name="protected final void timeChanged(com.trolltech.qt.core.QTime date)" doc="/** <p>This signal is emitted whenever the time is changed. The new time is passed in <tt>date</tt>.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QTime date)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> */"/> <method name="public QTimeEdit(com.trolltech.qt.core.QTime time, com.trolltech.qt.gui.QWidget parent)" doc="/** <p>Constructs an empty time editor with a <tt>parent</tt>. The time is set to <tt>time</tt>.</p> */"/> <method name="public QTimeEdit(com.trolltech.qt.core.QTime time)" doc="/** <p>Equivalent to <a href="QTimeEdit.html#QTimeEdit(com.trolltech.qt.gui.QWidget)"><tt>QTimeEdit</tt></a>(<tt>time</tt>, 0). */"/> <method name="public QTimeEdit(com.trolltech.qt.gui.QWidget parent)" doc="/** <p>Constructs an empty time editor with a <tt>parent</tt>.</p> */"/> <method name="public QTimeEdit()" doc="/** <p>Equivalent to <a href="QTimeEdit.html#QTimeEdit(com.trolltech.qt.gui.QWidget)"><tt>QTimeEdit</tt></a>(0). */"/> </class>