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());
virtual QDate earliestValidDate() const
virtual QDate latestValidDate() const
QString formatDate(const QDate &date, KLocale::DateTimeComponent component, KLocale::DateTimeComponentFormat format=KLocale::DefaultComponentFormat, KLocale::WeekNumberSystem weekNumberSystem=KLocale::DefaultWeekNumber) const
virtual bool eventFilter(QObject *, QEvent *)
Re-implemented for internal reasons.
Definition kcombobox.cpp:183
void setEditable(bool editable)
"Re-implemented" so that setEditable(true) creates a KLineEdit instead of QLineEdit.
Definition kcombobox.cpp:386
Definition kdatecombobox.h:35
virtual bool eventFilter(QObject *object, QEvent *event)
Re-implemented for internal reasons.
Definition kdatecombobox.cpp:462
void setMinimumDate(const QDate &minTime, const QString &minWarnMsg=QString())
Set the minimum allowed date.
Definition kdatecombobox.cpp:385
void setCalendar(KCalendarSystem *calendar=0)
Changes the calendar system to use.
Definition kdatecombobox.cpp:348
void dateEdited(const QDate &date)
Signal if the date is being manually edited by the user.
virtual void keyPressEvent(QKeyEvent *event)
Definition kdatecombobox.cpp:467
void setDisplayFormat(KLocale::DateFormat format)
Sets the date format to display.
Definition kdatecombobox.cpp:439
virtual void resizeEvent(QResizeEvent *event)
Definition kdatecombobox.cpp:558
KLocale::DateFormat displayFormat() const
Return the currently set date display format.
Definition kdatecombobox.cpp:434
KLocale::CalendarSystem calendarSystem() const
Returns the Calendar System type used by the widget.
Definition kdatecombobox.cpp:326
const KCalendarSystem * calendar() const
Returns a pointer to the Calendar System object used by this widget.
Definition kdatecombobox.cpp:343
@ 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
void setMaximumDate(const QDate &maxDate, const QString &maxWarnMsg=QString())
Set the maximum allowed date.
Definition kdatecombobox.cpp:400
void resetDateRange()
Reset the minimum and maximum date to the default values.
Definition kdatecombobox.cpp:429
virtual void focusOutEvent(QFocusEvent *event)
Definition kdatecombobox.cpp:492
virtual void focusInEvent(QFocusEvent *event)
Definition kdatecombobox.cpp:553
void setCalendarSystem(KLocale::CalendarSystem calendarSystem)
Set the Calendar System used for this widget.
Definition kdatecombobox.cpp:331
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 assignDate(const QDate &date)
Assign the date for the widget.
Definition kdatecombobox.cpp:321
virtual void wheelEvent(QWheelEvent *event)
Definition kdatecombobox.cpp:548
virtual void mousePressEvent(QMouseEvent *event)
Definition kdatecombobox.cpp:543
void dateChanged(const QDate &date)
Signal if the date has been changed either manually by the user or programatically.
virtual void assignCalendarSystem(KLocale::CalendarSystem calendarSystem)
Assign the calendar system for the widget.
Definition kdatecombobox.cpp:338
void dateEntered(const QDate &date)
Signal if the date has been manually entered or selected by the user.
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
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
DateFormat
CalendarSystem
QDate date() const
int daysInWeek() const
KLocalizedDate addMonths(int months) const
void setCalendarSystem(KLocale::CalendarSystem calendarSystem)
static KLocalizedDate readDate(const QString &dateString, const QString &dateFormat, KLocale::DateTimeParseMode parseMode=KLocale::LiberalParsing, KLocale::DateTimeFormatStandard formatStandard=KLocale::KdeFormat, const KCalendarSystem *calendar=0)
KLocalizedDate addDays(int days) const
const KCalendarSystem * calendar() const
KLocalizedDate addYears(int years) const
bool isValid() const
bool setDate(const QDate &date)
KLocale::CalendarSystem calendarSystem()
QString formatDate(const QString &formatString, KLocale::DateTimeFormatStandard formatStandard=KLocale::KdeFormat) const
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
Display an "Sorry" dialog.
Definition kmessagebox.cpp:904
QString i18nc(const char *ctxt, const char *text)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.