Qt 4.8
|
#include <qdatetimeedit_p.h>
Public Functions | |
virtual void | _q_editorCursorPositionChanged (int oldpos, int newpos) |
void | _q_resetButton () |
int | absoluteIndex (QDateTimeEdit::Section s, int index) const |
int | absoluteIndex (const SectionNode &s) const |
bool | calendarPopupEnabled () const |
virtual void | clearCache () const |
void | clearSection (int index) |
Clears the text of section s. More... | |
int | closestSection (int index, bool forward) const |
Returns the closest section of index index. More... | |
int | cursorPosition () const |
virtual QString | displayText () const |
void | emitSignals (EmitPolicy ep, const QVariant &old) |
QString | getAmPmText (AmPm ap, Case cs) const |
virtual QDateTime | getMaximum () const |
virtual QDateTime | getMinimum () const |
virtual QVariant | getZeroVariant () const |
Convenience function to get a variant of the right type. More... | |
void | init (const QVariant &var) |
void | initCalendarPopup (QCalendarWidget *cw=0) |
virtual void | interpret (EmitPolicy ep) |
Interprets text and emits signals. More... | |
bool | isSeparatorKey (const QKeyEvent *k) const |
virtual QLocale | locale () const |
virtual QStyle::SubControl | newHoverControl (const QPoint &pos) |
Returns the hover control at pos. More... | |
int | nextPrevSection (int index, bool forward) const |
Returns a copy of the section that is before or after current, depending on forward. More... | |
void | positionCalendarPopup () |
QDateTimeEditPrivate () | |
void | readLocaleSettings () |
int | sectionAt (int pos) const |
Returns the section at index index or NoSection if there are no sections there. More... | |
virtual void | setRange (const QVariant &min, const QVariant &max) |
Convenience function to set min/max values. More... | |
void | setSelected (int index, bool forward=false) |
Selects the section s. More... | |
QDateTime | stepBy (int index, int steps, bool test=false) const |
Internal function called by QDateTimeEdit::stepBy(). More... | |
void | syncCalendarWidget () |
QString | textFromValue (const QVariant &f) const |
void | updateArrow (QStyle::StateFlag state) |
void | updateCache (const QVariant &val, const QString &str) const |
void | updateEdit () |
Updates the line edit to reflect the current value of the spin box. More... | |
virtual void | updateEditFieldGeometry () |
void | updateTimeSpec () |
QDateTime | validateAndInterpret (QString &input, int &, QValidator::State &state, bool fixup=false) const |
QVariant | valueFromText (const QString &f) const |
This function's name is slightly confusing; it is not to be confused with QAbstractSpinBox::valueFromText(). More... | |
QString | valueToText (const QVariant &var) const |
Public Functions inherited from QAbstractSpinBoxPrivate | |
void | _q_editorTextChanged (const QString &) |
Slot connected to the line edit's textChanged(const QString &) signal. More... | |
virtual QVariant | bound (const QVariant &val, const QVariant &old=QVariant(), int steps=0) const |
Bounds val to be within minimum and maximum. More... | |
void | init () |
Initialises the QAbstractSpinBoxPrivate object. More... | |
QAbstractSpinBoxPrivate () | |
void | reset () |
Resets the state of the spinbox. More... | |
void | setValue (const QVariant &val, EmitPolicy ep, bool updateEdit=true) |
Sets the value of the spin box to val. More... | |
bool | specialValue () const |
Returns true if a specialValueText has been set and the current value is minimum. More... | |
QString | stripped (const QString &text, int *pos=0) const |
Strips any prefix/suffix from text. More... | |
bool | updateHoverControl (const QPoint &pos) |
Updates the old and new hover control. More... | |
void | updateState (bool up, bool fromKeyboard=false) |
Updates the state of the spinbox. More... | |
~QAbstractSpinBoxPrivate () | |
Public Functions inherited from QWidgetPrivate | |
void | _q_showIfNotHidden () |
virtual void | aboutToDestroy () |
void | activateChildLayoutsRecursively () |
QSize | adjustedSize () const |
void | adjustQuitOnCloseAttribute () |
QInputContext * | assignedInputContext () const |
QPainter * | beginSharedPainter () |
QWidget * | childAt_helper (const QPoint &, bool) const |
QWidget * | childAtRecursiveHelper (const QPoint &p, bool, bool includeFrame=false) const |
QRect | clipRect () const |
QRegion | clipRegion () const |
void | clipToEffectiveMask (QRegion ®ion) const |
bool | close_helper (CloseMode mode) |
void | create_sys (WId window, bool initializeWindow, bool destroyOldWindow) |
QWindowSurface * | createDefaultWindowSurface () |
QWindowSurface * | createDefaultWindowSurface_sys () |
void | createExtra () |
Creates the widget extra data. More... | |
void | createRecursively () |
void | createSysExtra () |
void | createTLExtra () |
void | createTLSysExtra () |
void | createWinId (WId id=0) |
void | deactivateWidgetCleanup () |
void | deleteExtra () |
Deletes the widget extra data. More... | |
void | deleteSysExtra () |
void | deleteTLSysExtra () |
void | drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter=0, QWidgetBackingStore *backingStore=0) |
QWidget * | effectiveFocusWidget () |
QRect | effectiveRectFor (const QRect &rect) const |
bool | endSharedPainter () |
void | enforceNativeChildren () |
QWExtra * | extraData () const |
QRect | frameStrut () const |
void | getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const |
const QRegion & | getOpaqueChildren () const |
void | handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus) |
virtual bool | hasHeightForWidth () const |
void | hide_helper () |
void | hide_sys () |
Platform-specific part of QWidget::hide(). More... | |
void | hideChildren (bool spontaneous) |
void | inheritStyle () |
void | init (QWidget *desktopWidget, Qt::WindowFlags f) |
QInputContext * | inputContext () const |
void | invalidateBuffer (const QRegion &) |
Invalidates the rgn (in widget's coordinates) of the backing store, i.e. More... | |
void | invalidateBuffer (const QRect &) |
This function is equivalent to calling invalidateBuffer(QRegion(rect), ...), but is more efficient as it eliminates QRegion operations/allocations and can use the rect more precisely for additional cut-offs. More... | |
void | invalidateBuffer_resizeHelper (const QPoint &oldPos, const QSize &oldSize) |
Invalidates the buffer when the widget is resized. More... | |
void | invalidateGraphicsEffectsRecursively () |
bool | isAboutToShow () const |
bool | isBackgroundInherited () const |
bool | isOverlapped (const QRect &) const |
void | lower_sys () |
QPoint | mapFromGlobal (const QPoint &pos) const |
QPoint | mapToGlobal (const QPoint &pos) const |
QWidgetBackingStore * | maybeBackingStore () const |
QTLWExtra * | maybeTopData () const |
void | moveRect (const QRect &, int dx, int dy) |
bool | nativeChildrenForced () const |
QFont | naturalWidgetFont (uint inheritedMask) const |
QPalette | naturalWidgetPalette (uint inheritedMask) const |
Returns the palette that the widget w inherits from its ancestors and QApplication::palette. More... | |
void | paintBackground (QPainter *, const QRegion &, int flags=DrawAsRoot) const |
bool | paintOnScreen () const |
void | paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter, QWidgetBackingStore *backingStore) |
bool | pointInsideRectAndMask (const QPoint &) const |
QRegion | prepareToRender (const QRegion ®ion, QWidget::RenderFlags renderFlags) |
void | propagatePaletteChange () |
Propagate this widget's palette to all children, except style sheet widgets, and windows that don't enable window propagation (palettes don't normally propagate to windows). More... | |
QWidgetPrivate (int version=QObjectPrivateVersion) | |
void | raise_sys () |
QPaintDevice * | redirected (QPoint *offset) const |
void | registerDropSite (bool) |
void | render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags, bool readyToRender) |
void | render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags) |
void | repaint_sys (const QRegion &rgn) |
void | reparentFocusWidgets (QWidget *oldtlw) |
void | resolveFont () |
Determine which font is implicitly imposed on this widget by its ancestors and QApplication::font, resolve this against its own font (attributes from the implicit font are copied over). More... | |
void | resolveLayoutDirection () |
void | resolveLocale () |
void | resolvePalette () |
Determine which palette is inherited from this widget's ancestors and QApplication::palette, resolve this against this widget's palette (attributes from the inherited palette are copied over this widget's palette). More... | |
void | restoreRedirected () |
void | scroll_sys (int dx, int dy) |
void | scroll_sys (int dx, int dy, const QRect &r) |
void | scrollChildren (int dx, int dy) |
void | scrollRect (const QRect &, int dx, int dy) |
void | sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false) |
void | sendStartupMessage (const char *message) const |
Platform-specific part of QWidget::show(). More... | |
void | setConstraints_sys () |
void | setCursor_sys (const QCursor &cursor) |
void | setDirtyOpaqueRegion () |
void | setEnabled_helper (bool) |
void | setFocus_sys () |
void | setFont_helper (const QFont &font) |
void | setGeometry_sys (int, int, int, int, bool) |
void | setLayoutDirection_helper (Qt::LayoutDirection) |
void | setLayoutItemMargins (int left, int top, int right, int bottom) |
void | setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=0) |
void | setLocale_helper (const QLocale &l, bool forceUpdate=false) |
void | setMask_sys (const QRegion &) |
bool | setMaximumSize_helper (int &maxw, int &maxh) |
bool | setMinimumSize_helper (int &minw, int &minh) |
void | setModal_sys () |
void | setNetWmWindowTypes () |
void | setOpaque (bool opaque) |
void | setPalette_helper (const QPalette &) |
void | setParent_sys (QWidget *parent, Qt::WindowFlags) |
void | setRedirected (QPaintDevice *replacement, const QPoint &offset) |
void | setSharedPainter (QPainter *painter) |
void | setStyle_helper (QStyle *newStyle, bool propagate, bool metalHack=false) |
void | setUpdatesEnabled_helper (bool) |
void | setWindowFilePath_helper (const QString &filePath) |
void | setWindowIcon_helper () |
void | setWindowIcon_sys (bool forceReset=false) |
void | setWindowIconText_helper (const QString &cap) |
void | setWindowIconText_sys (const QString &cap) |
void | setWindowOpacity_sys (qreal opacity) |
void | setWindowRole () |
void | setWindowTitle_helper (const QString &cap) |
void | setWindowTitle_sys (const QString &cap) |
void | setWinId (WId) |
QPainter * | sharedPainter () const |
void | show_helper () |
void | show_recursive () |
Makes the widget visible in the isVisible() meaning of the word. More... | |
void | show_sys () |
Platform-specific part of QWidget::show(). More... | |
void | showChildren (bool spontaneous) |
void | stackUnder_sys (QWidget *) |
void | subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const |
void | subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=0, bool alsoNonOpaque=false) const |
void | syncBackingStore () |
void | syncBackingStore (const QRegion ®ion) |
QTLWExtra * | topData () const |
void | unsetCursor_sys () |
void | updateFont (const QFont &) |
Assign font to this widget, and propagate it to all children, except style sheet widgets (handled differently) and windows that don't enable window propagation. More... | |
void | updateFrameStrut () |
Computes the frame rectangle when needed. More... | |
void | updateGeometry_helper (bool forceUpdate) |
void | updateIsOpaque () |
void | updateIsTranslucent () |
void | updateSystemBackground () |
void | updateX11AcceptFocus () |
void | x11UpdateIsOpaque () |
~QWidgetPrivate () | |
Public Functions inherited from QObjectPrivate | |
void | _q_reregisterTimers (void *pointer) |
void | addConnection (int signal, Connection *c) |
void | cleanConnectionLists () |
void | connectNotify (const char *signal) |
void | deleteChildren () |
void | disconnectNotify (const char *signal) |
bool | isSender (const QObject *receiver, const char *signal) const |
bool | isSignalConnected (uint signalIdx) const |
Returns true if the signal with index signal_index from object sender is connected. More... | |
void | moveToThread_helper () |
QObjectPrivate (int version=QObjectPrivateVersion) | |
QObjectList | receiverList (const char *signal) const |
QObjectList | senderList () const |
void | setParent_helper (QObject *) |
void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData) |
int | signalIndex (const char *signalName) const |
Returns the signal index used in the internal connectionLists vector. More... | |
virtual | ~QObjectPrivate () |
Public Functions inherited from QObjectData | |
virtual | ~QObjectData ()=0 |
Public Functions inherited from QDateTimeParser | |
int | absoluteMax (int index, const QDateTime &value=QDateTime()) const |
\ More... | |
int | absoluteMin (int index) const |
FieldInfo | fieldInfo (int index) const |
int | findAmPm (QString &str1, int index, int *used=0) const |
int | findDay (const QString &str1, int intDaystart, int sectionIndex, QString *dayName=0, int *used=0) const |
int | findMonth (const QString &str1, int monthstart, int sectionIndex, QString *monthName=0, int *used=0) const |
bool | fromString (const QString &text, QDate *date, QTime *time) const |
int | getDigit (const QDateTime &dt, int index) const |
Gets the digit from a datetime. More... | |
int | maxChange (int s) const |
Max number of units that can be changed by this section. More... | |
StateNode | parse (QString &input, int &cursorPosition, const QDateTime ¤tValue, bool fixup) const |
bool | parseFormat (const QString &format) |
int | parseSection (const QDateTime ¤tValue, int sectionIndex, QString &txt, int &cursorPosition, int index, QDateTimeParser::State &state, int *used=0) const |
bool | potentialValue (const QString &str, int min, int max, int index, const QDateTime ¤tValue, int insert) const |
QDateTimeParser (QVariant::Type t, Context ctx) | |
QString | sectionFormat (int index) const |
QString | sectionFormat (Section s, int count) const |
int | sectionMaxSize (int index) const |
int | sectionMaxSize (Section s, int count) const |
QString | sectionName (int s) const |
For debugging. More... | |
const SectionNode & | sectionNode (int index) const |
Returns the sectionNode for the Section s. More... | |
int | sectionPos (int index) const |
Returns the starting position for section s. More... | |
int | sectionPos (const SectionNode &sn) const |
int | sectionSize (int index) const |
Returns the size of section s. More... | |
QString | sectionText (int sectionIndex) const |
QString | sectionText (const QString &text, int sectionIndex, int index) const |
Returns the text of section s. More... | |
Section | sectionType (int index) const |
bool | setDigit (QDateTime &t, int index, int newval) const |
Sets a digit in a datetime. More... | |
bool | skipToNextSection (int section, const QDateTime ¤t, const QString §ionText) const |
QString | stateName (int s) const |
For debugging. More... | |
virtual | ~QDateTimeParser () |
Static Public Functions | |
static QDateTimeEdit::Sections | convertSections (QDateTimeParser::Sections s) |
static QDateTimeEdit::Section | convertToPublic (QDateTimeParser::Section s) |
Static Public Functions inherited from QAbstractSpinBoxPrivate | |
static QVariant | variantBound (const QVariant &min, const QVariant &value, const QVariant &max) |
static int | variantCompare (const QVariant &arg1, const QVariant &arg2) |
Static Public Functions inherited from QWidgetPrivate | |
static void | adjustFlags (Qt::WindowFlags &flags, QWidget *w=0) |
static QGraphicsProxyWidget * | nearestGraphicsProxyWidget (const QWidget *origin) |
Finds the nearest widget embedded in a graphics proxy widget along the chain formed by this widget and its ancestors. More... | |
static int | pointToRect (const QPoint &p, const QRect &r) |
static QRect | screenGeometry (const QWidget *widget) |
Static Public Functions inherited from QObjectPrivate | |
static void | clearGuards (QObject *) |
static QObjectPrivate * | get (QObject *o) |
static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Additional Inherited Members | |
Public Types inherited from QWidgetPrivate | |
enum | CloseMode { CloseNoEvent, CloseWithEvent, CloseWithSpontaneousEvent } |
enum | Direction { DirectionNorth = 0x01, DirectionEast = 0x10, DirectionSouth = 0x02, DirectionWest = 0x20 } |
enum | DrawWidgetFlags { DrawAsRoot = 0x01, DrawPaintOnScreen = 0x02, DrawRecursive = 0x04, DrawInvisible = 0x08, DontSubtractOpaqueChildren = 0x10, DontSetCompositionMode = 0x20, DontDrawOpaqueChildren = 0x40, DontDrawNativeChildren = 0x80 } |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
Public Types inherited from QDateTimeParser | |
enum | { Neither = -1, AM = 0, PM = 1, PossibleAM = 2, PossiblePM = 3, PossibleBoth = 4 } |
enum | AmPm { AmText, PmText } |
enum | Case { UpperCase, LowerCase } |
enum | Context { FromString, DateTimeEdit } |
enum | FieldInfoFlag { Numeric = 0x01, FixedWidth = 0x02, AllowPartial = 0x04, Fraction = 0x08 } |
enum | Section { NoSection = 0x00000, AmPmSection = 0x00001, MSecSection = 0x00002, SecondSection = 0x00004, MinuteSection = 0x00008, Hour12Section = 0x00010, Hour24Section = 0x00020, TimeSectionMask = (AmPmSection|MSecSection|SecondSection|MinuteSection|Hour12Section|Hour24Section), Internal = 0x10000, DaySection = 0x00100, MonthSection = 0x00200, YearSection = 0x00400, YearSection2Digits = 0x00800, DayOfWeekSection = 0x01000, DateSectionMask = (DaySection|MonthSection|YearSection|YearSection2Digits|DayOfWeekSection), FirstSection = 0x02000|Internal, LastSection = 0x04000|Internal, CalendarPopupSection = 0x08000|Internal, NoSectionIndex = -1, FirstSectionIndex = -2, LastSectionIndex = -3, CalendarPopupIndex = -4 } |
enum | State { Invalid, Intermediate, Acceptable } |
Static Public Variables inherited from QWidgetPrivate | |
static QWidgetSet * | allWidgets = 0 |
static int | instanceCounter = 0 |
static QWidget * | keyboardGrabber = 0 |
static QWidgetMapper * | mapper = 0 |
static int | maxInstances = 0 |
static QWidget * | mouseGrabber = 0 |
Definition at line 73 of file qdatetimeedit_p.h.
QDateTimeEditPrivate::QDateTimeEditPrivate | ( | ) |
Definition at line 1708 of file qdatetimeedit.cpp.
|
virtual |
Reimplemented from QAbstractSpinBoxPrivate.
Definition at line 2234 of file qdatetimeedit.cpp.
void QDateTimeEditPrivate::_q_resetButton | ( | ) |
Definition at line 2493 of file qdatetimeedit.cpp.
Referenced by cursorPosition(), and initCalendarPopup().
int QDateTimeEditPrivate::absoluteIndex | ( | QDateTimeEdit::Section | s, |
int | index | ||
) | const |
Definition at line 2397 of file qdatetimeedit.cpp.
Referenced by displayText().
int QDateTimeEditPrivate::absoluteIndex | ( | const SectionNode & | s | ) | const |
Definition at line 2407 of file qdatetimeedit.cpp.
bool QDateTimeEditPrivate::calendarPopupEnabled | ( | ) | const |
Definition at line 2631 of file qdatetimeedit.cpp.
Referenced by cursorPosition(), newHoverControl(), and updateEditFieldGeometry().
|
virtual |
Reimplemented from QAbstractSpinBoxPrivate.
Definition at line 2428 of file qdatetimeedit.cpp.
Referenced by validateAndInterpret().
void QDateTimeEditPrivate::clearSection | ( | int | index | ) |
Clears the text of section s.
Definition at line 1925 of file qdatetimeedit.cpp.
int QDateTimeEditPrivate::closestSection | ( | int | pos, |
bool | forward | ||
) | const |
Returns the closest section of index index.
Searches forward for a section if forward is true. Otherwise searches backwards.
Definition at line 1859 of file qdatetimeedit.cpp.
Referenced by _q_editorCursorPositionChanged(), and displayText().
|
static |
Definition at line 2334 of file qdatetimeedit.cpp.
Referenced by cursorPosition().
|
static |
Definition at line 2313 of file qdatetimeedit.cpp.
Referenced by absoluteIndex(), and cursorPosition().
|
inlinevirtual |
Reimplemented from QDateTimeParser.
Definition at line 111 of file qdatetimeedit_p.h.
|
inlinevirtual |
Reimplemented from QDateTimeParser.
Definition at line 92 of file qdatetimeedit_p.h.
Referenced by _q_editorCursorPositionChanged(), closestSection(), emitSignals(), interpret(), sectionAt(), setSelected(), stepBy(), and updateEdit().
|
virtual |
Reimplemented from QAbstractSpinBoxPrivate.
Definition at line 2205 of file qdatetimeedit.cpp.
Reimplemented from QDateTimeParser.
Definition at line 2388 of file qdatetimeedit.cpp.
Referenced by valueToText().
|
inlinevirtual |
Reimplemented from QDateTimeParser.
Definition at line 107 of file qdatetimeedit_p.h.
|
inlinevirtual |
Reimplemented from QDateTimeParser.
Definition at line 106 of file qdatetimeedit_p.h.
|
virtual |
Convenience function to get a variant of the right type.
Reimplemented from QAbstractSpinBoxPrivate.
Definition at line 2554 of file qdatetimeedit.cpp.
Referenced by cursorPosition(), and validateAndInterpret().
void QDateTimeEditPrivate::init | ( | const QVariant & | var | ) |
Definition at line 2458 of file qdatetimeedit.cpp.
void QDateTimeEditPrivate::initCalendarPopup | ( | QCalendarWidget * | cw = 0 | ) |
Definition at line 2581 of file qdatetimeedit.cpp.
Referenced by cursorPosition().
|
virtual |
Interprets text and emits signals.
Called when the spinbox needs to interpret the text on the lineedit.
Reimplemented from QAbstractSpinBoxPrivate.
Definition at line 2412 of file qdatetimeedit.cpp.
Referenced by _q_editorCursorPositionChanged().
bool QDateTimeEditPrivate::isSeparatorKey | ( | const QKeyEvent * | k | ) | const |
Definition at line 2567 of file qdatetimeedit.cpp.
Referenced by cursorPosition().
|
inlinevirtual |
Reimplemented from QDateTimeParser.
Definition at line 108 of file qdatetimeedit_p.h.
|
virtual |
Returns the hover control at pos.
This will update the hoverRect and hoverControl.
Reimplemented from QAbstractSpinBoxPrivate.
Definition at line 2522 of file qdatetimeedit.cpp.
Referenced by cursorPosition().
int QDateTimeEditPrivate::nextPrevSection | ( | int | current, |
bool | forward | ||
) | const |
Returns a copy of the section that is before or after current, depending on forward.
Definition at line 1892 of file qdatetimeedit.cpp.
Referenced by displayText().
void QDateTimeEditPrivate::positionCalendarPopup | ( | ) |
Definition at line 2598 of file qdatetimeedit.cpp.
Referenced by cursorPosition().
void QDateTimeEditPrivate::readLocaleSettings | ( | ) |
Try to get the format from the local settings
Definition at line 2305 of file qdatetimeedit.cpp.
Referenced by QDateTimeEditPrivate().
int QDateTimeEditPrivate::sectionAt | ( | int | pos | ) | const |
Returns the section at index index or NoSection if there are no sections there.
Definition at line 1828 of file qdatetimeedit.cpp.
Referenced by _q_editorCursorPositionChanged(), and displayText().
Convenience function to set min/max values.
Reimplemented from QAbstractSpinBoxPrivate.
Definition at line 2560 of file qdatetimeedit.cpp.
Referenced by cursorPosition().
void QDateTimeEditPrivate::setSelected | ( | int | sectionIndex, |
bool | forward = false |
||
) |
Selects the section s.
If forward is false selects backwards.
Definition at line 1796 of file qdatetimeedit.cpp.
Referenced by _q_editorCursorPositionChanged(), and displayText().
QDateTime QDateTimeEditPrivate::stepBy | ( | int | sectionIndex, |
int | steps, | ||
bool | test = false |
||
) | const |
Internal function called by QDateTimeEdit::stepBy().
Also takes a Section for which section to step on and a bool test for whether or not to modify the internal cachedDay variable. This is necessary because the function is called from the const function QDateTimeEdit::stepEnabled() as well as QDateTimeEdit::stepBy().
Definition at line 2068 of file qdatetimeedit.cpp.
Referenced by displayText().
void QDateTimeEditPrivate::syncCalendarWidget | ( | ) |
Definition at line 2636 of file qdatetimeedit.cpp.
Referenced by cursorPosition(), emitSignals(), initCalendarPopup(), and setRange().
Reimplemented from QAbstractSpinBoxPrivate.
Definition at line 2032 of file qdatetimeedit.cpp.
Referenced by updateEdit(), validateAndInterpret(), and valueToText().
void QDateTimeEditPrivate::updateArrow | ( | QStyle::StateFlag | state | ) |
Definition at line 2498 of file qdatetimeedit.cpp.
Referenced by _q_resetButton(), and cursorPosition().
updates the cached values
Definition at line 1952 of file qdatetimeedit.cpp.
Referenced by _q_editorCursorPositionChanged(), closestSection(), displayText(), emitSignals(), sectionAt(), setSelected(), and validateAndInterpret().
|
virtual |
Updates the line edit to reflect the current value of the spin box.
Reimplemented from QAbstractSpinBoxPrivate.
Definition at line 1755 of file qdatetimeedit.cpp.
Referenced by displayText().
|
virtual |
Reimplemented from QAbstractSpinBoxPrivate.
Definition at line 2537 of file qdatetimeedit.cpp.
Referenced by cursorPosition().
void QDateTimeEditPrivate::updateTimeSpec | ( | ) |
Definition at line 1739 of file qdatetimeedit.cpp.
Referenced by displayText(), init(), and interpret().
QDateTime QDateTimeEditPrivate::validateAndInterpret | ( | QString & | input, |
int & | position, | ||
QValidator::State & | state, | ||
bool | fixup = false |
||
) | const |
parses and validates input
Definition at line 1970 of file qdatetimeedit.cpp.
Referenced by updateCache().
This function's name is slightly confusing; it is not to be confused with QAbstractSpinBox::valueFromText().
Reimplemented from QAbstractSpinBoxPrivate.
Definition at line 2048 of file qdatetimeedit.cpp.
Definition at line 109 of file qdatetimeedit_p.h.
QStyle::StateFlag QDateTimeEditPrivate::arrowState |
Definition at line 137 of file qdatetimeedit_p.h.
Referenced by QDateTimeEditPrivate(), and updateArrow().
|
mutable |
Definition at line 132 of file qdatetimeedit_p.h.
Referenced by QDateTimeEditPrivate(), and updateCache().
bool QDateTimeEditPrivate::calendarPopup |
Definition at line 136 of file qdatetimeedit_p.h.
Referenced by calendarPopupEnabled(), and QDateTimeEditPrivate().
|
mutable |
Definition at line 135 of file qdatetimeedit_p.h.
Referenced by validateAndInterpret().
QString QDateTimeEditPrivate::defaultDateFormat |
Definition at line 134 of file qdatetimeedit_p.h.
Referenced by init(), and readLocaleSettings().
QString QDateTimeEditPrivate::defaultDateTimeFormat |
Definition at line 134 of file qdatetimeedit_p.h.
Referenced by init(), and readLocaleSettings().
QString QDateTimeEditPrivate::defaultTimeFormat |
Definition at line 134 of file qdatetimeedit_p.h.
Referenced by init(), and readLocaleSettings().
bool QDateTimeEditPrivate::formatExplicitlySet |
Definition at line 136 of file qdatetimeedit_p.h.
Referenced by QDateTimeEditPrivate().
bool QDateTimeEditPrivate::hasHadFocus |
Definition at line 136 of file qdatetimeedit_p.h.
Referenced by QDateTimeEditPrivate().
QCalendarPopup* QDateTimeEditPrivate::monthCalendar |
Definition at line 138 of file qdatetimeedit_p.h.
Referenced by initCalendarPopup(), positionCalendarPopup(), QDateTimeEditPrivate(), and syncCalendarWidget().
QDateTimeEdit::Sections QDateTimeEditPrivate::sections |
Definition at line 131 of file qdatetimeedit_p.h.
Referenced by calendarPopupEnabled(), emitSignals(), QDateTimeEditPrivate(), stepBy(), and updateTimeSpec().
QString QDateTimeEditPrivate::unreversedFormat |
Definition at line 134 of file qdatetimeedit_p.h.