• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
KDateTimeEdit Class Reference

#include <kdatetimeedit.h>

Inheritance diagram for KDateTimeEdit:
Inheritance graph
[legend]

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
}
 

Public Slots

void resetDateTimeRange ()
 
void resetMaximumDateTime ()
 
void resetMinimumDateTime ()
 
void setCalendar (KCalendarSystem *calendar=0)
 
void setCalendarSystem (KLocale::CalendarSystem calendarSystem)
 
void setCalendarSystemsList (QList< KLocale::CalendarSystem > calendars)
 
void setDate (const QDate &date)
 
void setDateDisplayFormat (KLocale::DateFormat format)
 
void setDateMap (QMap< QDate, QString > dateMap)
 
void setDateTime (const KDateTime &dateTime)
 
void setDateTimeRange (const KDateTime &minDateTime, const KDateTime &maxDateTime, const QString &minWarnMsg=QString(), const QString &maxWarnMsg=QString())
 
void setMaximumDateTime (const KDateTime &maxDateTime, const QString &maxWarnMsg=QString())
 
void setMinimumDateTime (const KDateTime &minDateTime, const QString &minWarnMsg=QString())
 
void setOptions (Options options)
 
void setTime (const QTime &time)
 
void setTimeDisplayFormat (KLocale::TimeFormatOptions formatOptions)
 
void setTimeList (QList< QTime > timeList, const QString &minWarnMsg=QString(), const QString &maxWarnMsg=QString())
 
void setTimeListInterval (int minutes)
 
void setTimeSpec (const KDateTime::Spec &spec)
 
void setTimeZones (const KTimeZones::ZoneMap &zones)
 

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 &region)
 
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 &regExp) 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
 

Protected Member Functions

void assignCalendarSystem (KLocale::CalendarSystem calendarSystem)
 
virtual void assignDate (const QDate &date)
 
virtual void assignDateTime (const KDateTime &dateTime)
 
virtual void assignTime (const QTime &time)
 
void assignTimeSpec (const KDateTime::Spec &spec)
 
virtual bool eventFilter (QObject *object, QEvent *event)
 
virtual void focusInEvent (QFocusEvent *event)
 
virtual void focusOutEvent (QFocusEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 
- Protected Member Functions inherited from QWidget
virtual void actionEvent (QActionEvent *event)
 
virtual void changeEvent (QEvent *event)
 
virtual void closeEvent (QCloseEvent *event)
 
virtual void contextMenuEvent (QContextMenuEvent *event)
 
void create (WId window, bool initializeWindow, bool destroyOldWindow)
 
void destroy (bool destroyWindow, bool destroySubWindows)
 
virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dragLeaveEvent (QDragLeaveEvent *event)
 
virtual void dragMoveEvent (QDragMoveEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
virtual void enterEvent (QEvent *event)
 
virtual bool event (QEvent *event)
 
bool focusNextChild ()
 
virtual bool focusNextPrevChild (bool next)
 
bool focusPreviousChild ()
 
virtual void hideEvent (QHideEvent *event)
 
virtual void inputMethodEvent (QInputMethodEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void languageChange ()
 
virtual void leaveEvent (QEvent *event)
 
virtual bool macEvent (EventHandlerCallRef caller, EventRef event)
 
virtual int metric (PaintDeviceMetric m) const
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void moveEvent (QMoveEvent *event)
 
virtual void paintEvent (QPaintEvent *event)
 
virtual bool qwsEvent (QWSEvent *event)
 
void resetInputContext ()
 
virtual void showEvent (QShowEvent *event)
 
virtual void tabletEvent (QTabletEvent *event)
 
void updateMicroFocus ()
 
virtual void wheelEvent (QWheelEvent *event)
 
virtual bool winEvent (MSG *message, long *result)
 
virtual bool x11Event (XEvent *event)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Protected Member Functions inherited from QPaintDevice
 QPaintDevice ()
 

Properties

QDate date
 
Options options
 
QTime time
 
int timeListInterval
 
- Properties inherited from QWidget
 acceptDrops
 
 accessibleDescription
 
 accessibleName
 
 autoFillBackground
 
 baseSize
 
 childrenRect
 
 childrenRegion
 
 contextMenuPolicy
 
 cursor
 
 enabled
 
 focus
 
 focusPolicy
 
 font
 
 frameGeometry
 
 frameSize
 
 fullScreen
 
 geometry
 
 height
 
 inputMethodHints
 
 isActiveWindow
 
 layoutDirection
 
 locale
 
 maximized
 
 maximumHeight
 
 maximumSize
 
 maximumWidth
 
 minimized
 
 minimumHeight
 
 minimumSize
 
 minimumSizeHint
 
 minimumWidth
 
 modal
 
 mouseTracking
 
 normalGeometry
 
 palette
 
 pos
 
 rect
 
 size
 
 sizeHint
 
 sizeIncrement
 
 sizePolicy
 
 statusTip
 
 styleSheet
 
 toolTip
 
 updatesEnabled
 
 visible
 
 whatsThis
 
 width
 
 windowFilePath
 
 windowFlags
 
 windowIcon
 
 windowIconText
 
 windowModality
 
 windowModified
 
 windowOpacity
 
 windowTitle
 
 x
 
 y
 
- Properties inherited from QObject
 objectName
 

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

enum KDateTimeEdit::Option

Options provided by the widget.

See also
options
setOptions
Enumerator
ShowCalendar 

If the Calendar System edit is displayed.

ShowDate 

If the Date is displayed.

ShowTime 

If the Time is displayed.

ShowTimeSpec 

If the Time Spec is displayed.

EditDate 

Allow the user to manually edit the date.

EditTime 

Allow the user to manually edit the time.

SelectCalendar 

Allow the user to select a calendar.

SelectDate 

Allow the user to select a date.

SelectTime 

Allow the user to select a time.

SelectTimeSpec 

Allow the user to select a time spec.

DatePicker 

Show a date picker.

DateKeywords 

Show date keywords.

ForceTime 

The entered time can only be a selected time.

WarnOnInvalid 

Show a warning on focus out if the date or time is invalid.

Definition at line 50 of file kdatetimeedit.h.

Constructor & Destructor Documentation

KDateTimeEdit::KDateTimeEdit ( QWidget *  parent = 0)
explicit

Create a new KDateTimeEdit widget.

Definition at line 264 of file kdatetimeedit.cpp.

KDateTimeEdit::~KDateTimeEdit ( )
virtual

Destroy the widget.

Definition at line 290 of file kdatetimeedit.cpp.

Member Function Documentation

void KDateTimeEdit::assignCalendarSystem ( KLocale::CalendarSystem  calendarSystem)
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
calendarSystemthe new calendar system

Definition at line 408 of file kdatetimeedit.cpp.

void KDateTimeEdit::assignDate ( const QDate &  date)
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
datethe new date

Definition at line 391 of file kdatetimeedit.cpp.

void KDateTimeEdit::assignDateTime ( const KDateTime &  dateTime)
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
datetimethe new date and time

Definition at line 375 of file kdatetimeedit.cpp.

void KDateTimeEdit::assignTime ( const QTime &  time)
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
timethe new time

Definition at line 429 of file kdatetimeedit.cpp.

void KDateTimeEdit::assignTimeSpec ( const KDateTime::Spec &  spec)
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
specthe 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
void KDateTimeEdit::calendarChanged ( KLocale::CalendarSystem  calendarSystem)
signal

Signal if the Calendar System has been changed either manually by the user or programatically.

Parameters
calendarSystemthe new calendar system
void KDateTimeEdit::calendarEntered ( KLocale::CalendarSystem  calendarSystem)
signal

Signal if the Calendar System has been manually entered by the user.

Parameters
calendarSystemthe new calendar system
KLocale::CalendarSystem KDateTimeEdit::calendarSystem ( ) const

Returns the Calendar System type used by the widget.

See also
KLocale::CalendarSystem
setCalendarSystem()
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
calendarsthe 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
void KDateTimeEdit::dateChanged ( const QDate &  date)
signal

Signal if the date has been changed either manually by the user or programatically.

The returned date may be invalid.

Parameters
datethe 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.

void KDateTimeEdit::dateEdited ( const QDate &  date)
signal

Signal if the date is being manually edited by the user.

The returned date may be invalid.

Parameters
datethe new date
void KDateTimeEdit::dateEntered ( const QDate &  date)
signal

Signal if the date has been manually entered by the user.

The returned date may be invalid.

Parameters
datethe new date
QMap< QDate, QString > KDateTimeEdit::dateMap ( ) const

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.

void KDateTimeEdit::dateTimeChanged ( const KDateTime &  dateTime)
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
dateTimethe new date, time and time spec
void KDateTimeEdit::dateTimeEdited ( const KDateTime &  dateTime)
signal

Signal if the date or time is being manually edited by the user.

The returned date and time may be invalid.

Parameters
dateTimethe new date, time and time spec
void KDateTimeEdit::dateTimeEntered ( const KDateTime &  dateTime)
signal

Signal if the date or time has been manually entered by the user.

The returned date and time may be invalid.

Parameters
dateTimethe new date, time and time spec
bool KDateTimeEdit::eventFilter ( QObject *  object,
QEvent *  event 
)
protectedvirtual

Reimplemented from QObject.

Definition at line 584 of file kdatetimeedit.cpp.

void KDateTimeEdit::focusInEvent ( QFocusEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 589 of file kdatetimeedit.cpp.

void KDateTimeEdit::focusOutEvent ( QFocusEvent *  event)
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
void KDateTimeEdit::resetDateTimeRange ( )
slot

Reset the minimum and maximum date and time to the default.

Definition at line 501 of file kdatetimeedit.cpp.

void KDateTimeEdit::resetMaximumDateTime ( )
slot

Reset the minimum date and time to the default.

Definition at line 477 of file kdatetimeedit.cpp.

void KDateTimeEdit::resetMinimumDateTime ( )
slot

Reset the minimum date and time to the default.

Definition at line 462 of file kdatetimeedit.cpp.

void KDateTimeEdit::resizeEvent ( QResizeEvent *  event)
protectedvirtual

Reimplemented from QWidget.

Definition at line 600 of file kdatetimeedit.cpp.

void KDateTimeEdit::setCalendar ( KCalendarSystem *  calendar = 0)
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
calendarthe calendar system object to use, defaults to global

Definition at line 414 of file kdatetimeedit.cpp.

void KDateTimeEdit::setCalendarSystem ( KLocale::CalendarSystem  calendarSystem)
slot

Set the Calendar System used for this widget.

Uses the global locale.

See also
KLocale::CalendarSystem
calendarSystem()
Parameters
calendarSystemthe Calendar System to use

Definition at line 397 of file kdatetimeedit.cpp.

void KDateTimeEdit::setCalendarSystemsList ( QList< KLocale::CalendarSystem >  calendars)
slot

Set the list of Calendar Systems to display.

Parameters
calendarsthe list of calendar systems to display

Definition at line 506 of file kdatetimeedit.cpp.

void KDateTimeEdit::setDate ( const QDate &  date)
slot

Set the currently selected date.

Parameters
datethe new date

Definition at line 382 of file kdatetimeedit.cpp.

void KDateTimeEdit::setDateDisplayFormat ( KLocale::DateFormat  format)
slot

Sets the date format to display.

By default is the Short Date format.

Parameters
formatthe date format to use

Definition at line 519 of file kdatetimeedit.cpp.

void KDateTimeEdit::setDateMap ( QMap< QDate, QString >  dateMap)
slot

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
dateMapthe map of dates able to be selected

Definition at line 529 of file kdatetimeedit.cpp.

void KDateTimeEdit::setDateTime ( const KDateTime &  dateTime)
slot

Set the currently selected date, time and time spec.

Parameters
dateTimethe new date, time and time spec

Definition at line 365 of file kdatetimeedit.cpp.

void KDateTimeEdit::setDateTimeRange ( const KDateTime &  minDateTime,
const KDateTime &  maxDateTime,
const QString &  minWarnMsg = QString(),
const QString &  maxWarnMsg = QString() 
)
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
minDateTimethe minimum date and time
maxDateTimethe maximum date and time
minWarnMsgthe minimum warning message
maxWarnMsgthe maximum warning message

Definition at line 482 of file kdatetimeedit.cpp.

void KDateTimeEdit::setMaximumDateTime ( const KDateTime &  maxDateTime,
const QString &  maxWarnMsg = QString() 
)
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
maxDatethe maximum date
maxWarnMsgthe maximum warning message

Definition at line 467 of file kdatetimeedit.cpp.

void KDateTimeEdit::setMinimumDateTime ( const KDateTime &  minDateTime,
const QString &  minWarnMsg = QString() 
)
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
maxDatethe minimum date
maxWarnMsgthe minimum warning message

Definition at line 452 of file kdatetimeedit.cpp.

void KDateTimeEdit::setOptions ( Options  options)
slot

Set the new widget options.

Parameters
optionsthe new widget options

Definition at line 352 of file kdatetimeedit.cpp.

void KDateTimeEdit::setTime ( const QTime &  time)
slot

Set the currently selected time.

Parameters
timethe new time

Definition at line 420 of file kdatetimeedit.cpp.

void KDateTimeEdit::setTimeDisplayFormat ( KLocale::TimeFormatOptions  formatOptions)
slot

Sets the time format to display.

By default is the Short Time format.

Parameters
formatthe time format to use

Definition at line 539 of file kdatetimeedit.cpp.

void KDateTimeEdit::setTimeList ( QList< QTime >  timeList,
const QString &  minWarnMsg = QString(),
const QString &  maxWarnMsg = QString() 
)
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
timeListthe list of times able to be selected
minWarnMsgthe minimum warning message
maxWarnMsgthe maximum warning message

Definition at line 559 of file kdatetimeedit.cpp.

void KDateTimeEdit::setTimeListInterval ( int  minutes)
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
minutesapart, 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
minutesthe time list interval to display

Definition at line 549 of file kdatetimeedit.cpp.

void KDateTimeEdit::setTimeSpec ( const KDateTime::Spec &  spec)
slot

Set the current time spec.

Parameters
specthe new spec

Definition at line 435 of file kdatetimeedit.cpp.

void KDateTimeEdit::setTimeZones ( const KTimeZones::ZoneMap &  zones)
slot

Set the time zones able to be selected.

Parameters
zonesthe 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
void KDateTimeEdit::timeChanged ( const QTime &  time)
signal

Signal if the time has been changed either manually by the user or programatically.

The returned time may be invalid.

Parameters
timethe 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.

void KDateTimeEdit::timeEdited ( const QTime &  time)
signal

Signal if the time is being manually edited by the user.

The returned time may be invalid.

Parameters
timethe new time
void KDateTimeEdit::timeEntered ( const QTime &  time)
signal

Signal if the time has been manually entered by the user.

The returned time may be invalid.

Parameters
timethe new time
QList< QTime > KDateTimeEdit::timeList ( ) const

Return the list of times able to be selected in the drop-down.

See also
setTimeList()
timeListInterval()
setTimeListInterval()
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.

void KDateTimeEdit::timeSpecChanged ( const KDateTime::Spec &  spec)
signal

Signal if the time spec has been changed either manually by the user or programatically.

Parameters
timeSpecthe new time spec
void KDateTimeEdit::timeSpecEntered ( const KDateTime::Spec &  spec)
signal

Signal if the time spec has been changed manually by the user.

Parameters
timeSpecthe new time spec
KTimeZones::ZoneMap KDateTimeEdit::timeZones ( ) const

Return the list of time zones able to be selected.

Parameters
zonesthe time zones to display

Definition at line 579 of file kdatetimeedit.cpp.

Property Documentation

QDate KDateTimeEdit::date
readwrite

Definition at line 37 of file kdatetimeedit.h.

KDateTimeEdit::Options KDateTimeEdit::options
readwrite

Definition at line 40 of file kdatetimeedit.h.

QTime KDateTimeEdit::time
readwrite

Definition at line 38 of file kdatetimeedit.h.

int KDateTimeEdit::timeListInterval
readwrite

Definition at line 39 of file kdatetimeedit.h.


The documentation for this class was generated from the following files:
  • kdatetimeedit.h
  • kdatetimeedit.cpp
This file is part of the KDE documentation.
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.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal