KDEUI
kdatecombobox.cpp
Go to the documentation of this file.
87 m_options = KDateComboBox::EditDate | KDateComboBox::SelectDate | KDateComboBox::DatePicker | KDateComboBox::DateKeywords;
152 addMenuAction(i18nc("@option next week", "Next Week" ), m_date.addDays(m_date.daysInWeek()).date());
156 addMenuAction(i18nc("@option last week", "Last Week" ), m_date.addDays(-m_date.daysInWeek()).date());
void setMinimumDate(const QDate &minTime, const QString &minWarnMsg=QString())
Set the minimum allowed date.
Definition: kdatecombobox.cpp:385
void resetDateRange()
Reset the minimum and maximum date to the default values.
Definition: kdatecombobox.cpp:429
void setCalendarSystem(KLocale::CalendarSystem calendarSystem)
Set the Calendar System used for this widget.
Definition: kdatecombobox.cpp:331
CalendarSystem
void dateEntered(const QDate &date)
Signal if the date has been manually entered or selected by the user.
virtual void mousePressEvent(QMouseEvent *event)
Definition: kdatecombobox.cpp:543
virtual void resizeEvent(QResizeEvent *event)
Definition: kdatecombobox.cpp:558
void dateChanged(const QDate &date)
Signal if the date has been changed either manually by the user or programatically.
virtual void keyPressEvent(QKeyEvent *event)
Definition: kdatecombobox.cpp:467
QString i18nc(const char *ctxt, const char *text)
void setDateRange(const QDate &minDate, const QDate &maxDate, const QString &minWarnMsg=QString(), const QString &maxWarnMsg=QString())
Set the valid date range to be applied by isValid().
Definition: kdatecombobox.cpp:410
void dateEdited(const QDate &date)
Signal if the date is being manually edited by the user.
KLocale::DateFormat displayFormat() const
Return the currently set date display format.
Definition: kdatecombobox.cpp:434
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
Display an "Sorry" dialog.
Definition: kmessagebox.cpp:904
virtual void focusOutEvent(QFocusEvent *event)
Definition: kdatecombobox.cpp:492
const KCalendarSystem * calendar() const
Returns a pointer to the Calendar System object used by this widget.
Definition: kdatecombobox.cpp:343
void setCalendar(KCalendarSystem *calendar=0)
Changes the calendar system to use.
Definition: kdatecombobox.cpp:348
@ EditDate
Allow the user to manually edit the date in the combo line edit.
Definition: kdatecombobox.h:52
void setDateMap(QMap< QDate, QString > dateMap)
Set the list of dates able to be selected from the drop-down and the string form to display for those...
Definition: kdatecombobox.cpp:453
KLocale::CalendarSystem calendarSystem() const
Returns the Calendar System type used by the widget.
Definition: kdatecombobox.cpp:326
virtual bool eventFilter(QObject *, QEvent *)
Re-implemented for internal reasons.
Definition: kcombobox.cpp:183
virtual void assignDate(const QDate &date)
Assign the date for the widget.
Definition: kdatecombobox.cpp:321
void setMaximumDate(const QDate &maxDate, const QString &maxWarnMsg=QString())
Set the maximum allowed date.
Definition: kdatecombobox.cpp:400
static QRect desktopGeometry(const QPoint &point)
This function returns the desktop geometry for an application that needs to set the geometry of a wid...
Definition: kglobalsettings.cpp:732
QMap< QDate, QString > dateMap() const
Return the map of dates listed in the drop-down and their displayed string forms.
Definition: kdatecombobox.cpp:448
virtual void assignCalendarSystem(KLocale::CalendarSystem calendarSystem)
Assign the calendar system for the widget.
Definition: kdatecombobox.cpp:338
virtual void wheelEvent(QWheelEvent *event)
Definition: kdatecombobox.cpp:548
void setDisplayFormat(KLocale::DateFormat format)
Sets the date format to display.
Definition: kdatecombobox.cpp:439
Definition: kdatecombobox.h:34
void setEditable(bool editable)
"Re-implemented" so that setEditable(true) creates a KLineEdit instead of QLineEdit.
Definition: kcombobox.cpp:386
virtual void focusInEvent(QFocusEvent *event)
Definition: kdatecombobox.cpp:553
DateFormat
virtual bool eventFilter(QObject *object, QEvent *event)
Re-implemented for internal reasons.
Definition: kdatecombobox.cpp:462
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.