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 );
QString i18n(const char *text)
void dateChanged(const QDate &date)
This signal is emitted each time the selected date is changed.
bool close()
void setPointSize(int pointSize)
bool isRightToLeft()
Type type() const
int width() const
void updateGeometry()
int daysInWeek() const
virtual QString monthName(int month, int year, MonthNameFormat format=LongName) const =0
int daysInMonth() const
KLocalizedDate lastDayOfYear() const
bool setCalendar(KCalendarSystem *calendar=0)
Changes the calendar system to use.
Definition: kdatepicker.cpp:401
QVariant data() const
QStyle * style() const
int height() const
virtual QDate earliestValidDate() const
int month() const
const KCalendarSystem * calendar() const
Returns the currently selected calendar system.
Definition: kdatepicker.cpp:396
int day() const
QSize globalStrut()
QString i18nc(const char *ctxt, const char *text)
bool isNull() const
KLocalizedDate firstDayOfYear() const
void initFrom(const QWidget *widget)
const KCalendarSystem * calendar() const
Returns a pointer to the Calendar System object used by this widget.
Definition: kdatecombobox.cpp:343
bool setCalendarSystem(KLocale::CalendarSystem calendarSystem)
Definition: kdatepicker.cpp:411
int pointSize() const
void setEnabled(bool)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QString number(int n, int base)
int week(int *yearNum=0) const
CalendarSystem
QWidget * topLevelWidget() const
int toInt(bool *ok) 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...
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
void setWidth(int width)
void setFocusProxy(QWidget *w)
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...
bool sendEvent(QObject *receiver, QEvent *event)
int monthsInYear() const
static void beep(const QString &reason=QString(), QWidget *widget=0L)
This is a simple substitution for QApplication::beep()
Definition: knotification.cpp:352
int dayOfYear() const
virtual bool eventFilter(QObject *watched, QEvent *event)
int year() const
bool isValid() const
void setMargin(int margin)
const QDate & date() const
QString formatDate(KLocale::DateFormat dateFormat=KLocale::LongDate) const
int month() const
virtual bool isValid(int year, int month, int day) const =0
int key() const
const QFont & font() const
virtual QSize sizeHint() const
virtual QDate latestValidDate() const
virtual int year(const QDate &date) const
int dayOfWeek() const
bool setDate(int year, int month, int day)
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
KLocalizedDate addDays(int days) const
virtual QDate readDate(const QString &str, bool *ok=0) const
int width() const
QSize expandedTo(const QSize &otherSize) const
QDate currentDate()
int height() const
QPixmap SmallIcon(const QString &name, int force_size, int state, const QStringList &overlays)
Definition: kiconloader.cpp:1553
int daysDifference(const KLocalizedDate &toDate) const
QDate fromJulianDay(int jd)
virtual void resizeEvent(QResizeEvent *event)
bool addDaysTo(int days)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QList< QAction * > actions() const
void setFrame(bool)
void tableClicked()
This signal is emitted when the day has been selected by clicking on it in the table.
virtual QSize sizeFromContents(ContentsType type, const QStyleOption *option, const QSize &contentsSize, const QWidget *widget) const =0
virtual bool eventFilter(QObject *o, QEvent *e)
to catch move keyEvents when QLineEdit has keyFocus
Definition: kdatepicker.cpp:336
void setSpacing(int spacing)
int pointSize() const
int year() const
void addLayout(QLayout *layout, int stretch)
void setValidator(const QValidator *validator)
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.