1
/****************************************************************************
3
** Copyright (C) 1992-2006 Trolltech ASA. All rights reserved.
5
** This file is part of the QtGui module of the Qt Toolkit.
7
** This file may be used under the terms of the GNU General Public
8
** License version 2.0 as published by the Free Software Foundation
9
** and appearing in the file LICENSE.GPL included in the packaging of
10
** this file. Please review the following information to ensure GNU
11
** General Public Licensing requirements will be met:
12
** http://www.trolltech.com/products/qt/opensource.html
14
** If you are unsure which license is appropriate for your use, please
15
** review the following information:
16
** http://www.trolltech.com/products/qt/licensing.html or contact the
17
** sales department at sales@trolltech.com.
19
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22
****************************************************************************/
24
#ifndef QDATETIMEEDIT_P_H
25
#define QDATETIMEEDIT_P_H
31
// This file is not part of the Qt API. It exists purely as an
32
// implementation detail. This header file may change from version to
33
// version without notice, or even be removed.
38
#include "QtGui/qcombobox.h"
39
#include "QtGui/qcalendarwidget.h"
40
#include "QtGui/qspinbox.h"
41
#include "QtGui/qtoolbutton.h"
42
#include "QtGui/qmenu.h"
43
#include "QtGui/qlabel.h"
46
#ifndef QT_NO_DATETIMEEDIT
48
class QCalendarPopup : public QWidget
52
QCalendarPopup(const QDate &date, QWidget *parent = 0);
53
QDate selectedDate() { return calendar->selectedDate(); }
54
void setDate(const QDate &date);
55
void setDateRange(const QDate &min, const QDate &max);
58
void activated(const QDate &date);
59
void newDateSelected(const QDate &newDate);
60
void hidingCalendar(const QDate &oldDate);
64
void dateSelected(const QDate &date);
65
void dateSelectionChanged();
68
void hideEvent(QHideEvent *);
69
void mousePressEvent(QMouseEvent *e);
70
void mouseReleaseEvent(QMouseEvent *);
71
bool event(QEvent *e);
74
QCalendarWidget *calendar;
80
#endif // QT_NO_DATETIMEEDIT
82
#endif // QDATETIMEEDIT_P_H