KDEUI
#include <kdatetimeedit.h>
Public Types | |
enum | Option { ShowCalendar = 0x00001, ShowDate = 0x00002, ShowTime = 0x00004, ShowTimeSpec = 0x00008, EditDate = 0x00020, EditTime = 0x00040, SelectCalendar = 0x00100, SelectDate = 0x00200, SelectTime = 0x00400, SelectTimeSpec = 0x00800, DatePicker = 0x01000, DateKeywords = 0x02000, ForceTime = 0x04000, WarnOnInvalid = 0x08000 } |
Signals | |
void | calendarChanged (KLocale::CalendarSystem calendarSystem) |
void | calendarEntered (KLocale::CalendarSystem calendarSystem) |
void | dateChanged (const QDate &date) |
void | dateEdited (const QDate &date) |
void | dateEntered (const QDate &date) |
void | dateTimeChanged (const KDateTime &dateTime) |
void | dateTimeEdited (const KDateTime &dateTime) |
void | dateTimeEntered (const KDateTime &dateTime) |
void | timeChanged (const QTime &time) |
void | timeEdited (const QTime &time) |
void | timeEntered (const QTime &time) |
void | timeSpecChanged (const KDateTime::Spec &spec) |
void | timeSpecEntered (const KDateTime::Spec &spec) |
Public Member Functions | |
KDateTimeEdit (QWidget *parent=0) | |
virtual | ~KDateTimeEdit () |
const KCalendarSystem * | calendar () const |
KLocale::CalendarSystem | calendarSystem () const |
QList< KLocale::CalendarSystem > | calendarSystemsList () const |
QDate | date () const |
KLocale::DateFormat | dateDisplayFormat () const |
QMap< QDate, QString > | dateMap () const |
KDateTime | dateTime () const |
bool | isNull () const |
bool | isNullDate () const |
bool | isNullTime () const |
bool | isValid () const |
bool | isValidDate () const |
bool | isValidTime () const |
KDateTime | maximumDateTime () const |
KDateTime | minimumDateTime () const |
Options | options () const |
QTime | time () const |
KLocale::TimeFormatOptions | timeDisplayFormat () const |
QList< QTime > | timeList () const |
int | timeListInterval () const |
KDateTime::Spec | timeSpec () const |
KTimeZones::ZoneMap | timeZones () const |
Public Member Functions inherited from QWidget | |
QWidget (QWidget *parent, QFlags< Qt::WindowType > f) | |
QWidget (QWidget *parent, const char *name, QFlags< Qt::WindowType > f) | |
~QWidget () | |
bool | acceptDrops () const |
QString | accessibleDescription () const |
QString | accessibleName () const |
QList< QAction * > | actions () const |
void | activateWindow () |
void | addAction (QAction *action) |
void | addActions (QList< QAction * > actions) |
void | adjustSize () |
bool | autoFillBackground () const |
Qt::BackgroundMode | backgroundMode () const |
QPoint | backgroundOffset () const |
BackgroundOrigin | backgroundOrigin () const |
QPalette::ColorRole | backgroundRole () const |
QSize | baseSize () const |
QString | caption () const |
QWidget * | childAt (int x, int y, bool includeThis) const |
QWidget * | childAt (const QPoint &p, bool includeThis) const |
QWidget * | childAt (int x, int y) const |
QWidget * | childAt (const QPoint &p) const |
QRect | childrenRect () const |
QRegion | childrenRegion () const |
void | clearFocus () |
void | clearMask () |
bool | close (bool alsoDelete) |
bool | close () |
QColorGroup | colorGroup () const |
void | constPolish () const |
QMargins | contentsMargins () const |
QRect | contentsRect () const |
Qt::ContextMenuPolicy | contextMenuPolicy () const |
QCursor | cursor () const |
void | customContextMenuRequested (const QPoint &pos) |
void | drawText (const QPoint &p, const QString &s) |
void | drawText (int x, int y, const QString &s) |
WId | effectiveWinId () const |
void | ensurePolished () const |
void | erase () |
void | erase (const QRect &rect) |
void | erase (const QRegion &rgn) |
void | erase (int x, int y, int w, int h) |
Qt::FocusPolicy | focusPolicy () const |
QWidget * | focusProxy () const |
QWidget * | focusWidget () const |
const QFont & | font () const |
QFontInfo | fontInfo () const |
QFontMetrics | fontMetrics () const |
QPalette::ColorRole | foregroundRole () const |
QRect | frameGeometry () const |
QSize | frameSize () const |
const QRect & | geometry () const |
void | getContentsMargins (int *left, int *top, int *right, int *bottom) const |
virtual HDC | getDC () const |
void | grabGesture (Qt::GestureType gesture, QFlags< Qt::GestureFlag > flags) |
void | grabKeyboard () |
void | grabMouse () |
void | grabMouse (const QCursor &cursor) |
int | grabShortcut (const QKeySequence &key, Qt::ShortcutContext context) |
QGraphicsEffect * | graphicsEffect () const |
QGraphicsProxyWidget * | graphicsProxyWidget () const |
bool | hasEditFocus () const |
bool | hasFocus () const |
bool | hasMouse () const |
bool | hasMouseTracking () const |
int | height () const |
virtual int | heightForWidth (int w) const |
void | hide () |
const QPixmap * | icon () const |
void | iconify () |
QString | iconText () const |
QInputContext * | inputContext () |
Qt::InputMethodHints | inputMethodHints () const |
virtual QVariant | inputMethodQuery (Qt::InputMethodQuery query) const |
void | insertAction (QAction *before, QAction *action) |
void | insertActions (QAction *before, QList< QAction * > actions) |
bool | isActiveWindow () const |
bool | isAncestorOf (const QWidget *child) const |
bool | isDesktop () const |
bool | isDialog () const |
bool | isEnabled () const |
bool | isEnabledTo (QWidget *ancestor) const |
bool | isEnabledToTLW () const |
bool | isFullScreen () const |
bool | isHidden () const |
bool | isInputMethodEnabled () const |
bool | isMaximized () const |
bool | isMinimized () const |
bool | isModal () const |
bool | isPopup () const |
bool | isShown () const |
bool | isTopLevel () const |
bool | isUpdatesEnabled () const |
bool | isVisible () const |
bool | isVisibleTo (QWidget *ancestor) const |
bool | isVisibleToTLW () const |
bool | isWindow () const |
bool | isWindowModified () const |
QLayout * | layout () const |
Qt::LayoutDirection | layoutDirection () const |
QLocale | locale () const |
void | lower () |
Qt::HANDLE | macCGHandle () const |
Qt::HANDLE | macQDHandle () const |
QPoint | mapFrom (QWidget *parent, const QPoint &pos) const |
QPoint | mapFromGlobal (const QPoint &pos) const |
QPoint | mapFromParent (const QPoint &pos) const |
QPoint | mapTo (QWidget *parent, const QPoint &pos) const |
QPoint | mapToGlobal (const QPoint &pos) const |
QPoint | mapToParent (const QPoint &pos) const |
QRegion | mask () const |
int | maximumHeight () const |
QSize | maximumSize () const |
int | maximumWidth () const |
int | minimumHeight () const |
QSize | minimumSize () const |
virtual QSize | minimumSizeHint () const |
int | minimumWidth () const |
void | move (int x, int y) |
void | move (const QPoint &) |
QWidget * | nativeParentWidget () const |
QWidget * | nextInFocusChain () const |
QRect | normalGeometry () const |
void | overrideWindowFlags (QFlags< Qt::WindowType > flags) |
bool | ownCursor () const |
bool | ownFont () const |
bool | ownPalette () const |
virtual QPaintEngine * | paintEngine () const |
const QPalette & | palette () const |
QWidget * | parentWidget (bool sameWindow) const |
QWidget * | parentWidget () const |
QPlatformWindow * | platformWindow () const |
QPlatformWindowFormat | platformWindowFormat () const |
void | polish () |
QPoint | pos () const |
QWidget * | previousInFocusChain () const |
void | raise () |
void | recreate (QWidget *parent, QFlags< Qt::WindowType > f, const QPoint &p, bool showIt) |
QRect | rect () const |
virtual void | releaseDC (HDC hdc) const |
void | releaseKeyboard () |
void | releaseMouse () |
void | releaseShortcut (int id) |
void | removeAction (QAction *action) |
void | render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QFlags< QWidget::RenderFlag > renderFlags) |
void | render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QFlags< QWidget::RenderFlag > renderFlags) |
void | repaint (int x, int y, int w, int h, bool b) |
void | repaint (const QRegion &rgn, bool b) |
void | repaint () |
void | repaint (int x, int y, int w, int h) |
void | repaint (const QRegion &rgn) |
void | repaint (bool b) |
void | repaint (const QRect &rect) |
void | repaint (const QRect &r, bool b) |
void | reparent (QWidget *parent, QFlags< Qt::WindowType > f, const QPoint &p, bool showIt) |
void | reparent (QWidget *parent, const QPoint &p, bool showIt) |
void | resize (int w, int h) |
void | resize (const QSize &) |
bool | restoreGeometry (const QByteArray &geometry) |
QByteArray | saveGeometry () const |
void | scroll (int dx, int dy) |
void | scroll (int dx, int dy, const QRect &r) |
void | setAcceptDrops (bool on) |
void | setAccessibleDescription (const QString &description) |
void | setAccessibleName (const QString &name) |
void | setActiveWindow () |
void | setAttribute (Qt::WidgetAttribute attribute, bool on) |
void | setAutoFillBackground (bool enabled) |
void | setBackgroundColor (const QColor &color) |
void | setBackgroundMode (Qt::BackgroundMode widgetBackground, Qt::BackgroundMode paletteBackground) |
void | setBackgroundOrigin (BackgroundOrigin background) |
void | setBackgroundPixmap (const QPixmap &pixmap) |
void | setBackgroundRole (QPalette::ColorRole role) |
void | setBaseSize (const QSize &) |
void | setBaseSize (int basew, int baseh) |
void | setCaption (const QString &c) |
void | setContentsMargins (int left, int top, int right, int bottom) |
void | setContentsMargins (const QMargins &margins) |
void | setContextMenuPolicy (Qt::ContextMenuPolicy policy) |
void | setCursor (const QCursor &) |
void | setDisabled (bool disable) |
void | setEditFocus (bool enable) |
void | setEnabled (bool) |
void | setEraseColor (const QColor &color) |
void | setErasePixmap (const QPixmap &pixmap) |
void | setFixedHeight (int h) |
void | setFixedSize (const QSize &s) |
void | setFixedSize (int w, int h) |
void | setFixedWidth (int w) |
void | setFocus (Qt::FocusReason reason) |
void | setFocus () |
void | setFocusPolicy (Qt::FocusPolicy policy) |
void | setFocusProxy (QWidget *w) |
void | setFont (const QFont &) |
void | setFont (const QFont &f, bool b) |
void | setForegroundRole (QPalette::ColorRole role) |
void | setGeometry (int x, int y, int w, int h) |
void | setGeometry (const QRect &) |
void | setGraphicsEffect (QGraphicsEffect *effect) |
void | setHidden (bool hidden) |
void | setIcon (const QPixmap &i) |
void | setIconText (const QString &it) |
void | setInputContext (QInputContext *context) |
void | setInputMethodEnabled (bool enabled) |
void | setInputMethodHints (QFlags< Qt::InputMethodHint > hints) |
void | setKeyCompression (bool b) |
void | setLayout (QLayout *layout) |
void | setLayoutDirection (Qt::LayoutDirection direction) |
void | setLocale (const QLocale &locale) |
void | setMask (const QBitmap &bitmap) |
void | setMask (const QRegion ®ion) |
void | setMaximumHeight (int maxh) |
void | setMaximumSize (const QSize &) |
void | setMaximumSize (int maxw, int maxh) |
void | setMaximumWidth (int maxw) |
void | setMinimumHeight (int minh) |
void | setMinimumSize (int minw, int minh) |
void | setMinimumSize (const QSize &) |
void | setMinimumWidth (int minw) |
void | setMouseTracking (bool enable) |
void | setPalette (const QPalette &) |
void | setPalette (const QPalette &p, bool b) |
void | setPaletteBackgroundColor (const QColor &color) |
void | setPaletteBackgroundPixmap (const QPixmap &pixmap) |
void | setPaletteForegroundColor (const QColor &color) |
void | setParent (QWidget *parent) |
void | setParent (QWidget *parent, QFlags< Qt::WindowType > f) |
void | setPlatformWindow (QPlatformWindow *window) |
void | setPlatformWindowFormat (const QPlatformWindowFormat &format) |
void | setShortcutAutoRepeat (int id, bool enable) |
void | setShortcutEnabled (int id, bool enable) |
void | setShown (bool shown) |
void | setSizeIncrement (const QSize &) |
void | setSizeIncrement (int w, int h) |
void | setSizePolicy (QSizePolicy::Policy hor, QSizePolicy::Policy ver, bool hfw) |
void | setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical) |
void | setSizePolicy (QSizePolicy) |
void | setStatusTip (const QString &) |
void | setStyle (QStyle *style) |
QStyle * | setStyle (const QString &style) |
void | setStyleSheet (const QString &styleSheet) |
void | setToolTip (const QString &) |
void | setUpdatesEnabled (bool enable) |
void | setupUi (QWidget *widget) |
virtual void | setVisible (bool visible) |
void | setWhatsThis (const QString &) |
void | setWindowFilePath (const QString &filePath) |
void | setWindowFlags (QFlags< Qt::WindowType > type) |
void | setWindowIcon (const QIcon &icon) |
void | setWindowIconText (const QString &) |
void | setWindowModality (Qt::WindowModality windowModality) |
void | setWindowModified (bool) |
void | setWindowOpacity (qreal level) |
void | setWindowRole (const QString &role) |
void | setWindowState (QFlags< Qt::WindowState > windowState) |
void | setWindowSurface (QWindowSurface *surface) |
void | setWindowTitle (const QString &) |
void | show () |
void | showFullScreen () |
void | showMaximized () |
void | showMinimized () |
void | showNormal () |
QSize | size () const |
virtual QSize | sizeHint () const |
QSize | sizeIncrement () const |
QSizePolicy | sizePolicy () const |
void | stackUnder (QWidget *w) |
QString | statusTip () const |
QStyle * | style () const |
QString | styleSheet () const |
bool | testAttribute (Qt::WidgetAttribute attribute) const |
QString | toolTip () const |
QWidget * | topLevelWidget () const |
bool | underMouse () const |
void | ungrabGesture (Qt::GestureType gesture) |
void | unsetCursor () |
void | unsetFont () |
void | unsetLayoutDirection () |
void | unsetLocale () |
void | unsetPalette () |
void | update (const QRect &rect) |
void | update (const QRegion &rgn) |
void | update (int x, int y, int w, int h) |
void | update () |
void | updateGeometry () |
bool | updatesEnabled () const |
QRect | visibleRect () const |
QRegion | visibleRegion () const |
QString | whatsThis () const |
int | width () const |
QWidget * | window () const |
QString | windowFilePath () const |
Qt::WindowFlags | windowFlags () const |
QIcon | windowIcon () const |
QString | windowIconText () const |
Qt::WindowModality | windowModality () const |
qreal | windowOpacity () const |
QString | windowRole () const |
Qt::WindowStates | windowState () const |
QWindowSurface * | windowSurface () const |
QString | windowTitle () const |
Qt::WindowType | windowType () const |
WId | winId () const |
int | x () const |
const QX11Info & | x11Info () const |
Qt::HANDLE | x11PictureHandle () const |
int | y () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Public Member Functions inherited from QPaintDevice | |
virtual | ~QPaintDevice () |
int | colorCount () const |
int | depth () const |
int | height () const |
int | heightMM () const |
int | logicalDpiX () const |
int | logicalDpiY () const |
int | numColors () const |
virtual QPaintEngine * | paintEngine () const =0 |
bool | paintingActive () const |
int | physicalDpiX () const |
int | physicalDpiY () const |
int | width () const |
int | widthMM () const |
int | x11Cells () const |
Qt::HANDLE | x11Colormap () const |
bool | x11DefaultColormap () const |
bool | x11DefaultVisual () const |
int | x11Depth () const |
Display * | x11Display () const |
int | x11Screen () const |
void * | x11Visual () const |
Additional Inherited Members | |
Static Public Member Functions inherited from QWidget | |
QWidget * | find (WId id) |
QWidget * | keyboardGrabber () |
QWidget * | mouseGrabber () |
void | setTabOrder (QWidget *first, QWidget *second) |
QWidgetMapper * | wmapper () |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Static Public Member Functions inherited from QPaintDevice | |
int | x11AppCells (int screen) |
Qt::HANDLE | x11AppColormap (int screen) |
bool | x11AppDefaultColormap (int screen) |
bool | x11AppDefaultVisual (int screen) |
int | x11AppDepth (int screen) |
Display * | x11AppDisplay () |
int | x11AppDpiX (int screen) |
int | x11AppDpiY (int screen) |
Qt::HANDLE | x11AppRootWindow (int screen) |
int | x11AppScreen () |
void * | x11AppVisual (int screen) |
void | x11SetAppDpiX (int dpi, int screen) |
void | x11SetAppDpiY (int dpi, int screen) |
Public Attributes inherited from QWidget | |
typedef | RenderFlags |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Detailed Description
Definition at line 33 of file kdatetimeedit.h.
Member Enumeration Documentation
Options provided by the widget.
- See also
- options
- setOptions
Definition at line 50 of file kdatetimeedit.h.
Constructor & Destructor Documentation
|
explicit |
Create a new KDateTimeEdit widget.
Definition at line 264 of file kdatetimeedit.cpp.
|
virtual |
Destroy the widget.
Definition at line 290 of file kdatetimeedit.cpp.
Member Function Documentation
|
protected |
Assign the calendar system for the widget.
Virtual to allow sub-classes to apply extra validation rules, but reimplementations must call the parent method at the end.
- Parameters
-
calendarSystem the new calendar system
Definition at line 408 of file kdatetimeedit.cpp.
|
protectedvirtual |
Assign the date for the widget.
Virtual to allow sub-classes to apply extra validation rules, but reimplementations must call the parent method at the end.
- Parameters
-
date the new date
Definition at line 391 of file kdatetimeedit.cpp.
|
protectedvirtual |
Assign the date, time and time spec for the widget.
Virtual to allow sub-classes to apply extra validation rules, but reimplementations must call the parent method at the end.
- Parameters
-
datetime the new date and time
Definition at line 375 of file kdatetimeedit.cpp.
|
protectedvirtual |
Assign the time for the widget.
Virtual to allow sub-classes to apply extra validation rules, but reimplementations must call the parent method at the end.
- Parameters
-
time the new time
Definition at line 429 of file kdatetimeedit.cpp.
|
protected |
Assign the time spec for the widget.
Virtual to allow sub-classes to apply extra validation rules, but reimplementations must call the parent method at the end.
- Parameters
-
spec the new time spec
Definition at line 446 of file kdatetimeedit.cpp.
const KCalendarSystem* KDateTimeEdit::calendar | ( | ) | const |
Returns a pointer to the Calendar System object used by this widget.
Usually this will be the Global Calendar System using the Global Locale, but this may have been changed to a custom Calendar System possibly using a custom Locale.
Normally you will not need to access this object.
- See also
- KCalendarSystem
- setCalendar
- Returns
- the current calendar system instance
|
signal |
Signal if the Calendar System has been changed either manually by the user or programatically.
- Parameters
-
calendarSystem the new calendar system
|
signal |
Signal if the Calendar System has been manually entered by the user.
- Parameters
-
calendarSystem the new calendar system
KLocale::CalendarSystem KDateTimeEdit::calendarSystem | ( | ) | const |
Returns the Calendar System type used by the widget.
- Returns
- the Calendar System currently used
Definition at line 300 of file kdatetimeedit.cpp.
QList< KLocale::CalendarSystem > KDateTimeEdit::calendarSystemsList | ( | ) | const |
Returns the list of Calendar Systems displayed.
- Parameters
-
calendars the list of calendar systems to display
Definition at line 514 of file kdatetimeedit.cpp.
QDate KDateTimeEdit::date | ( | ) | const |
Return the currently selected date.
- Returns
- the currently selected date
|
signal |
Signal if the date has been changed either manually by the user or programatically.
The returned date may be invalid.
- Parameters
-
date the new date
KLocale::DateFormat KDateTimeEdit::dateDisplayFormat | ( | ) | const |
Return the currently set date display format.
By default this is the Short Date
- Returns
- the currently set date format
Definition at line 524 of file kdatetimeedit.cpp.
|
signal |
Signal if the date is being manually edited by the user.
The returned date may be invalid.
- Parameters
-
date the new date
|
signal |
Signal if the date has been manually entered by the user.
The returned date may be invalid.
- Parameters
-
date the new date
Return the map of dates listed in the drop-down and their displayed string forms.
- See also
- setDateMap()
- Returns
- the select date map
Definition at line 534 of file kdatetimeedit.cpp.
KDateTime KDateTimeEdit::dateTime | ( | ) | const |
Return the currently selected date, time and time spec.
- Returns
- the currently selected date, time and time spec
Definition at line 295 of file kdatetimeedit.cpp.
|
signal |
Signal if the date or time has been changed either manually by the user or programatically.
The returned date and time may be invalid.
- Parameters
-
dateTime the new date, time and time spec
|
signal |
Signal if the date or time is being manually edited by the user.
The returned date and time may be invalid.
- Parameters
-
dateTime the new date, time and time spec
|
signal |
Signal if the date or time has been manually entered by the user.
The returned date and time may be invalid.
- Parameters
-
dateTime the new date, time and time spec
Reimplemented from QObject.
Definition at line 584 of file kdatetimeedit.cpp.
|
protectedvirtual |
Reimplemented from QWidget.
Definition at line 589 of file kdatetimeedit.cpp.
|
protectedvirtual |
Reimplemented from QWidget.
Definition at line 594 of file kdatetimeedit.cpp.
bool KDateTimeEdit::isNull | ( | ) | const |
Return if the current user input is null.
- See also
- isValid()
- Returns
- if the current user input is null
Definition at line 327 of file kdatetimeedit.cpp.
bool KDateTimeEdit::isNullDate | ( | ) | const |
Return if the current user input date is null.
- See also
- isValidDate()
- Returns
- if the current user input date is null
Definition at line 337 of file kdatetimeedit.cpp.
bool KDateTimeEdit::isNullTime | ( | ) | const |
Return if the current user input time is null.
- See also
- isValidTime()
- Returns
- if the current user input time is null
Definition at line 347 of file kdatetimeedit.cpp.
bool KDateTimeEdit::isValid | ( | ) | const |
Return if the current user input is valid.
If the user input is null then it is not valid
- See also
- isNull()
- Returns
- if the current user input is valid
Definition at line 320 of file kdatetimeedit.cpp.
bool KDateTimeEdit::isValidDate | ( | ) | const |
Return if the current user input date is valid.
If the user input date is null then it is not valid
- See also
- isNullDate()
- Returns
- if the current user input date is valid
Definition at line 332 of file kdatetimeedit.cpp.
bool KDateTimeEdit::isValidTime | ( | ) | const |
Return if the current user input time is valid.
If the user input time is null then it is not valid
- See also
- isNullTime()
- Returns
- if the current user input time is valid
Definition at line 342 of file kdatetimeedit.cpp.
KDateTime KDateTimeEdit::maximumDateTime | ( | ) | const |
Return the current maximum date and time.
- Returns
- the current maximum date and time
Definition at line 472 of file kdatetimeedit.cpp.
KDateTime KDateTimeEdit::minimumDateTime | ( | ) | const |
Return the current minimum date and time.
- Returns
- the current minimum date and time
Definition at line 457 of file kdatetimeedit.cpp.
Options KDateTimeEdit::options | ( | ) | const |
Return the currently set widget options.
- Returns
- the currently set widget options
|
slot |
Reset the minimum and maximum date and time to the default.
Definition at line 501 of file kdatetimeedit.cpp.
|
slot |
Reset the minimum date and time to the default.
Definition at line 477 of file kdatetimeedit.cpp.
|
slot |
Reset the minimum date and time to the default.
Definition at line 462 of file kdatetimeedit.cpp.
|
protectedvirtual |
Reimplemented from QWidget.
Definition at line 600 of file kdatetimeedit.cpp.
|
slot |
Changes the calendar system to use.
Can use its own local locale if set.
You retain ownership of the calendar object, it will not be destroyed with the widget.
- Parameters
-
calendar the calendar system object to use, defaults to global
Definition at line 414 of file kdatetimeedit.cpp.
|
slot |
Set the Calendar System used for this widget.
Uses the global locale.
- Parameters
-
calendarSystem the Calendar System to use
Definition at line 397 of file kdatetimeedit.cpp.
|
slot |
Set the list of Calendar Systems to display.
- Parameters
-
calendars the list of calendar systems to display
Definition at line 506 of file kdatetimeedit.cpp.
|
slot |
Set the currently selected date.
- Parameters
-
date the new date
Definition at line 382 of file kdatetimeedit.cpp.
|
slot |
Sets the date format to display.
By default is the Short Date format.
- Parameters
-
format the date format to use
Definition at line 519 of file kdatetimeedit.cpp.
Set the list of dates able to be selected from the drop-down and the string form to display for those dates, e.g.
"2010-01-01" and "Yesterday".
Any invalid or duplicate dates will be used, the list will NOT be sorted, and the minimum and maximum date will not be affected.
The dateMap
is keyed by the date to be listed and the value is the string to be displayed. If you want the date to be displayed in the default date format then the string should be null. If you want a separator to be displayed then set the string to "seperator".
- See also
- dateMap()
- Parameters
-
dateMap the map of dates able to be selected
Definition at line 529 of file kdatetimeedit.cpp.
|
slot |
Set the currently selected date, time and time spec.
- Parameters
-
dateTime the new date, time and time spec
Definition at line 365 of file kdatetimeedit.cpp.
|
slot |
Set the minimum and maximum date and time range.
To enable range checking provide two valid dates. To disable range checking provide two invalid dates, or call clearDateRange;
- Parameters
-
minDateTime the minimum date and time maxDateTime the maximum date and time minWarnMsg the minimum warning message maxWarnMsg the maximum warning message
Definition at line 482 of file kdatetimeedit.cpp.
|
slot |
Set the maximum allowed date.
If the date is invalid, or less than current minimum, then the maximum will not be set.
- See also
- setMinimumDateTime()
- setDateRange()
- Parameters
-
maxDate the maximum date maxWarnMsg the maximum warning message
Definition at line 467 of file kdatetimeedit.cpp.
|
slot |
Set the minimum allowed date.
If the date is invalid, or more than current maximum, then the minimum will not be set.
- See also
- setMaximumDateTime()
- setDateRange()
- Parameters
-
maxDate the minimum date maxWarnMsg the minimum warning message
Definition at line 452 of file kdatetimeedit.cpp.
|
slot |
Set the new widget options.
- Parameters
-
options the new widget options
Definition at line 352 of file kdatetimeedit.cpp.
|
slot |
Set the currently selected time.
- Parameters
-
time the new time
Definition at line 420 of file kdatetimeedit.cpp.
|
slot |
Sets the time format to display.
By default is the Short Time format.
- Parameters
-
format the time format to use
Definition at line 539 of file kdatetimeedit.cpp.
|
slot |
Set the list of times able to be selected from the drop-down.
Setting the time list will override any time interval previously set via setTimeListInterval().
Any invalid or duplicate times will be ignored, and the list will be sorted.
The minimum and maximum time will automatically be set to the earliest and latest value in the list.
- See also
- timeList()
- Parameters
-
timeList the list of times able to be selected minWarnMsg the minimum warning message maxWarnMsg the maximum warning message
Definition at line 559 of file kdatetimeedit.cpp.
|
slot |
Set the interval between times able to be selected from the drop-down.
The combo drop-down will be populated with times every
- Parameters
-
minutes apart, starting from the minimumTime() and ending at maximumTime().
If the ForceInterval option is set then any time manually typed into the combo line edit will be forced to the nearest interval.
This interval must be an exact divisor of the valid time range hours. For example with the default 24 hour range interval
must divide 1440 minutes exactly, meaning 1, 6 and 90 are valid but 7, 31 and 91 are not.
Setting the time list interval will override any time list previously set via setTimeList().
- See also
- timeListInterval()
- Parameters
-
minutes the time list interval to display
Definition at line 549 of file kdatetimeedit.cpp.
|
slot |
Set the current time spec.
- Parameters
-
spec the new spec
Definition at line 435 of file kdatetimeedit.cpp.
|
slot |
Set the time zones able to be selected.
- Parameters
-
zones the time zones to display
Definition at line 571 of file kdatetimeedit.cpp.
QTime KDateTimeEdit::time | ( | ) | const |
Return the currently selected time.
- Returns
- the currently selected time
|
signal |
Signal if the time has been changed either manually by the user or programatically.
The returned time may be invalid.
- Parameters
-
time the new time
KLocale::TimeFormatOptions KDateTimeEdit::timeDisplayFormat | ( | ) | const |
Return the currently set time format.
By default this is the Short Time
- Returns
- the currently set time format
Definition at line 544 of file kdatetimeedit.cpp.
|
signal |
Signal if the time is being manually edited by the user.
The returned time may be invalid.
- Parameters
-
time the new time
|
signal |
Signal if the time has been manually entered by the user.
The returned time may be invalid.
- Parameters
-
time the new time
Return the list of times able to be selected in the drop-down.
- Returns
- the select time list
Definition at line 566 of file kdatetimeedit.cpp.
int KDateTimeEdit::timeListInterval | ( | ) | const |
Return the time list interval able to be selected.
- Returns
- the select time intervals in minutes
KDateTime::Spec KDateTimeEdit::timeSpec | ( | ) | const |
Return the currently selected time spec.
- Returns
- the currently selected time spec
Definition at line 315 of file kdatetimeedit.cpp.
|
signal |
Signal if the time spec has been changed either manually by the user or programatically.
- Parameters
-
timeSpec the new time spec
|
signal |
Signal if the time spec has been changed manually by the user.
- Parameters
-
timeSpec the new time spec
KTimeZones::ZoneMap KDateTimeEdit::timeZones | ( | ) | const |
Return the list of time zones able to be selected.
- Parameters
-
zones the time zones to display
Definition at line 579 of file kdatetimeedit.cpp.
Property Documentation
|
readwrite |
Definition at line 37 of file kdatetimeedit.h.
|
readwrite |
Definition at line 40 of file kdatetimeedit.h.
|
readwrite |
Definition at line 38 of file kdatetimeedit.h.
|
readwrite |
Definition at line 39 of file kdatetimeedit.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.