42 #ifndef QDATETIMEEDIT_P_H 43 #define QDATETIMEEDIT_P_H 56 #include "QtGui/qcombobox.h" 57 #include "QtGui/qcalendarwidget.h" 58 #include "QtGui/qspinbox.h" 59 #include "QtGui/qtoolbutton.h" 60 #include "QtGui/qmenu.h" 61 #include "QtGui/qlabel.h" 62 #include "QtGui/qdatetimeedit.h" 63 #include "QtGui/private/qabstractspinbox_p.h" 64 #include "QtCore/private/qdatetime_p.h" 68 #ifndef QT_NO_DATETIMEEDIT 90 bool fixup =
false)
const;
125 static QDateTimeEdit::Sections
convertSections(QDateTimeParser::Sections s);
140 #ifdef QT_KEYPAD_NAVIGATION 152 void setDate(
const QDate &date);
153 void setDateRange(
const QDate &min,
const QDate &max);
158 void activated(
const QDate &date);
159 void newDateSelected(
const QDate &newDate);
160 void hidingCalendar(
const QDate &oldDate);
164 void dateSelected(
const QDate &date);
165 void dateSelectionChanged();
183 #endif // QT_NO_DATETIMEEDIT 185 #endif // QDATETIMEEDIT_P_H The QVariant class acts like a union for the most common Qt data types.
QString getAmPmText(AmPm ap, Case cs) const
The QKeyEvent class describes a key event.
virtual void updateEditFieldGeometry()
SubControl
This enum describes the available sub controls.
#define QT_END_NAMESPACE
This macro expands to.
virtual QLocale locale() const
QDateTime validateAndInterpret(QString &input, int &, QValidator::State &state, bool fixup=false) const
QStyle::StateFlag arrowState
QDateTime stepBy(int index, int steps, bool test=false) const
Internal function called by QDateTimeEdit::stepBy().
void setSelected(int index, bool forward=false)
Selects the section s.
void init()
Initialises the QAbstractSpinBoxPrivate object.
void clearSection(int index)
Clears the text of section s.
QDateTime toDateTime() const
Returns the variant as a QDateTime if the variant has type() DateTime , Date , or String ; otherwise ...
QDateTimeEdit::Sections sections
void updateArrow(QStyle::StateFlag state)
The QDate class provides date functions.
virtual QString displayText() const
QString textFromValue(const QVariant &f) const
bool isSeparatorKey(const QKeyEvent *k) const
The QString class provides a Unicode character string.
void syncCalendarWidget()
static QDateTimeEdit::Sections convertSections(QDateTimeParser::Sections s)
int nextPrevSection(int index, bool forward) const
Returns a copy of the section that is before or after current, depending on forward.
The QDateTimeEdit class provides a widget for editing dates and times.
void emitSignals(EmitPolicy ep, const QVariant &old)
static QDateTimeEdit::Section convertToPublic(QDateTimeParser::Section s)
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual QVariant getZeroVariant() const
Convenience function to get a variant of the right type.
void initCalendarPopup(QCalendarWidget *cw=0)
QString text
the line edit's text
QString defaultDateTimeFormat
virtual void setRange(const QVariant &min, const QVariant &max)
Convenience function to set min/max values.
The QHideEvent class provides an event which is sent after a widget is hidden.
bool calendarPopupEnabled() const
int absoluteIndex(QDateTimeEdit::Section s, int index) const
virtual void interpret(EmitPolicy ep)
Interprets text and emits signals.
virtual void _q_editorCursorPositionChanged(int oldpos, int newpos)
The QMouseEvent class contains parameters that describe a mouse event.
void positionCalendarPopup()
virtual QStyle::SubControl newHoverControl(const QPoint &pos)
Returns the hover control at pos.
void updateEdit()
Updates the line edit to reflect the current value of the spin box.
#define Q_DECLARE_PUBLIC(Class)
The QDateTime class provides date and time functions.
void readLocaleSettings()
QString defaultDateFormat
The QPoint class defines a point in the plane using integer precision.
QString defaultTimeFormat
virtual QDateTime getMaximum() const
State
This enum type defines the states in which a validated string can exist.
virtual void clearCache() const
QCalendarPopup * monthCalendar
int sectionAt(int pos) const
Returns the section at index index or NoSection if there are no sections there.
The QEvent class is the base class of all event classes.
StateFlag
This enum describes flags that are used when drawing primitive elements.
QVariant valueFromText(const QString &f) const
This function's name is slightly confusing; it is not to be confused with QAbstractSpinBox::valueFrom...
int cursorPosition
the current cursor position for this line edit
void updateCache(const QVariant &val, const QString &str) const
virtual QDateTime getMinimum() const
QString valueToText(const QVariant &var) const
int closestSection(int index, bool forward) const
Returns the closest section of index index.
int cursorPosition() const