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 setText(const QString &text)
void editTextChanged(const QString &text)
virtual bool eventFilter(QObject *object, QEvent *event)
Re-implemented for internal reasons.
Definition: kdatecombobox.cpp:462
void setEditable(bool editable)
"Re-implemented" so that setEditable(true) creates a KLineEdit instead of QLineEdit.
Definition: kcombobox.cpp:386
Allow the user to select the date from a drop-down menu.
Definition: kdatecombobox.h:53
void setCalendar(KCalendarSystem *calendar=0)
Changes the calendar system to use.
Definition: kdatecombobox.cpp:348
void resetDateRange()
Reset the minimum and maximum date to the default values.
Definition: kdatecombobox.cpp:429
int right() const
void setText(const QString &)
QMap< QDate, QString > dateMap() const
Return the map of dates listed in the drop-down and their displayed string forms. ...
Definition: kdatecombobox.cpp:448
void dateEdited(const QDate &date)
Signal if the date is being manually edited by the user.
void dateEntered(const QDate &date)
Signal if the date has been manually entered or selected by the user.
virtual void focusInEvent(QFocusEvent *e)
QVariant data() const
void clear()
QPoint mapToGlobal(const QPoint &pos) const
DateFormat
virtual void keyPressEvent(QKeyEvent *e)
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
Definition: kdatecombobox.h:34
bool isEditable() const
virtual void focusInEvent(QFocusEvent *event)
Definition: kdatecombobox.cpp:553
virtual void assignDate(const QDate &date)
Assign the date for the widget.
Definition: kdatecombobox.cpp:321
void setItemText(int index, const QString &text)
virtual void keyPressEvent(QKeyEvent *event)
Definition: kdatecombobox.cpp:467
int x() const
int y() const
virtual void focusOutEvent(QFocusEvent *event)
Definition: kdatecombobox.cpp:492
QString i18nc(const char *ctxt, const char *text)
void setMinimumDate(const QDate &minTime, const QString &minWarnMsg=QString())
Set the minimum allowed date.
Definition: kdatecombobox.cpp:385
void addItem(const QString &text, const QVariant &userData)
void setReadOnly(bool)
const KCalendarSystem * calendar() const
Returns a pointer to the Calendar System object used by this widget.
Definition: kdatecombobox.cpp:343
KDateComboBox(QWidget *parent=0)
Create a new KDateComboBox widget.
Definition: kdatecombobox.cpp:278
virtual void resizeEvent(QResizeEvent *event)
Definition: kdatecombobox.cpp:558
void setMaximumDate(const QDate &maxDate, const QString &maxWarnMsg=QString())
Set the maximum allowed date.
Definition: kdatecombobox.cpp:400
virtual void assignCalendarSystem(KLocale::CalendarSystem calendarSystem)
Assign the calendar system for the widget.
Definition: kdatecombobox.cpp:338
virtual void mousePressEvent(QMouseEvent *e)
CalendarSystem
int top() const
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
virtual void hidePopup()
int left() const
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
Display an "Sorry" dialog.
Definition: kmessagebox.cpp:904
objectName
void dateChanged(const QDate &date)
Signal if the date has been changed either manually by the user or programatically.
bool isValid() const
void setData(const QVariant &userData)
int key() const
virtual void wheelEvent(QWheelEvent *event)
Definition: kdatecombobox.cpp:548
bool blockSignals(bool block)
QDate toDate() const
QLineEdit * lineEdit() const
QString & replace(int position, int n, QChar after)
void setCalendarSystem(KLocale::CalendarSystem calendarSystem)
Set the Calendar System used for this widget.
Definition: kdatecombobox.cpp:331
void setInsertPolicy(InsertPolicy policy)
KLocale::DateFormat displayFormat() const
Return the currently set date display format.
Definition: kdatecombobox.cpp:434
virtual void focusOutEvent(QFocusEvent *e)
QDate currentDate()
virtual void mousePressEvent(QMouseEvent *event)
Definition: kdatecombobox.cpp:543
void setDisplayFormat(KLocale::DateFormat format)
Sets the date format to display.
Definition: kdatecombobox.cpp:439
int bottom() const
void setCurrentIndex(int index)
void setX(int x)
void setY(int y)
Allow the user to manually edit the date in the combo line edit.
Definition: kdatecombobox.h:52
cursorPosition
void setSizeAdjustPolicy(SizeAdjustPolicy policy)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Show a warning on focus out if the date is invalid.
Definition: kdatecombobox.h:56
void setMaxVisibleItems(int maxItems)
virtual bool eventFilter(QObject *, QEvent *)
Re-implemented for internal reasons.
Definition: kcombobox.cpp:183
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
int height() const
KLocale::CalendarSystem calendarSystem() const
Returns the Calendar System type used by the widget.
Definition: kdatecombobox.cpp:326
virtual void resizeEvent(QResizeEvent *e)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.