KDEUI
kdatepicker.cpp
Go to the documentation of this file.
87 if ( calendar->setDate( newDate, newYear, calendar->month( oldDate ), calendar->day( oldDate ) ) ) {
214 KDatePicker::KDatePicker( QWidget* parent ) : QFrame( parent ), d( new KDatePickerPrivate( this ) )
365 // calculate the item num in the week combo box; normalize selected day so as if 1.1. is the first day of the week
487 newDate.setDate( newDate.year(), newDate.month(), qMin( thisDate.day(), newDate.daysInMonth() ) );
503 KDatePickerPrivateYearSelector *picker = new KDatePickerPrivateYearSelector( calendar(), date(), popup );
518 newDate.setDate( newDate.year(), newDate.month(), qMin( thisDate.day(), newDate.daysInMonth() ) );
606 QString str = calendar()->monthName( i, calendar()->year( date() ), KCalendarSystem::LongName );
virtual bool eventFilter(QObject *o, QEvent *e)
to catch move keyEvents when QLineEdit has keyFocus
Definition: kdatepicker.cpp:336
KAction * close(const QObject *recvr, const char *slot, QObject *parent)
Close the current document.
Definition: kstandardaction.cpp:269
int day() const
LongNumber
QDate date() const
CalendarSystem
QDate readDate(const QString &dateString, const QString &dateFormat, bool *ok, KLocale::DateTimeFormatStandard formatStandard) const
Week
int daysInWeek() const
bool setCalendar(KCalendarSystem *calendar=0)
Changes the calendar system to use.
Definition: kdatepicker.cpp:401
QString i18nc(const char *ctxt, const char *text)
Month
virtual QDate latestValidDate() const
int daysInMonth() const
bool isValid() const
int daysDifference(const KLocalizedDate &toDate) const
bool setCalendarSystem(KLocale::CalendarSystem calendarSystem)
Definition: kdatepicker.cpp:411
bool setDate(const QDate &date)
int week(int *yearNum=0) const
const KCalendarSystem * calendar() const
Returns a pointer to the Calendar System object used by this widget.
Definition: kdatecombobox.cpp:343
virtual int year(const QDate &date) const
int year() const
void dateSelected(const QDate &date)
This signal is emitted each time a day has been selected by clicking on the table (hitting a day in t...
const KCalendarSystem * calendar() const
Returns the currently selected calendar system.
Definition: kdatepicker.cpp:396
void dateEntered(const QDate &date)
This signal is emitted when enter is pressed and a VALID date has been entered before into the line e...
QString formatDate(const QString &formatString, KLocale::DateTimeFormatStandard formatStandard=KLocale::KdeFormat) const
virtual QDate earliestValidDate() const
ShortNumber
KLocalizedDate lastDayOfYear() const
QString i18n(const char *text)
int month() const
Year
static void beep(const QString &reason=QString(), QWidget *widget=0L)
This is a simple substitution for QApplication::beep()
Definition: knotification.cpp:352
int monthsInYear() const
KLocalizedDate firstDayOfYear() const
bool addDaysTo(int days)
static int spacingHint()
Returns the number of pixels that should be used between widgets inside a dialog according to the KDE...
Definition: kdialog.cpp:432
LongName
KLocalizedDate addDays(int days) const
bool setDate(QDate &date, int year, int dayOfYear) const
QPixmap SmallIcon(const QString &name, int force_size, int state, const QStringList &overlays)
Definition: kiconloader.cpp:1553
void setCloseButton(bool enable)
By calling this method with enable = true, KDatePicker will show a little close-button in the upper b...
Definition: kdatepicker.cpp:645
void dateChanged(const QDate &date)
This signal is emitted each time the selected date is changed.
int dayOfWeek() const
LongName
ShortDate
const KCalendarSystem * calendar() const
virtual QString monthName(const QDate &date, MonthNameFormat format=LongName) const
void tableClicked()
This signal is emitted when the day has been selected by clicking on it in the table.
int dayOfYear() const
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.