libkdepim
KPIM::KWeekdayCheckCombo Class Reference
#include <kweekdaycheckcombo.h>
Inheritance diagram for KPIM::KWeekdayCheckCombo:
Public Member Functions | |
KWeekdayCheckCombo (QWidget *parent=0, bool first5Checked=false) | |
virtual | ~KWeekdayCheckCombo () |
QBitArray | days () const |
void | setDays (const QBitArray &days, const QBitArray &disableDays=QBitArray()) |
int | weekdayIndex (const QDate &date) const |
Public Member Functions inherited from KPIM::KCheckComboBox | |
KCheckComboBox (QWidget *parent=0) | |
virtual | ~KCheckComboBox () |
bool | alwaysShowDefaultText () const |
QStringList | checkedItems (int role=Qt::DisplayRole) const |
QString | defaultText () const |
virtual void | hidePopup () |
Qt::CheckState | itemCheckState (int index) const |
bool | itemEnabled (int index) |
QString | separator () const |
void | setAlwaysShowDefaultText (bool always) |
void | setDefaultText (const QString &text) |
void | setItemCheckState (int index, Qt::CheckState state) |
void | setItemEnabled (int index, bool enabled=true) |
void | setSeparator (const QString &separator) |
void | setSqueezeText (bool squeeze) |
bool | squeezeText () const |
Additional Inherited Members | |
Public Slots inherited from KPIM::KCheckComboBox | |
void | setCheckedItems (const QStringList &items, int role=Qt::DisplayRole) |
Signals inherited from KPIM::KCheckComboBox | |
void | checkedItemsChanged (const QStringList &items) |
Protected Member Functions inherited from KPIM::KCheckComboBox | |
virtual bool | eventFilter (QObject *receiver, QEvent *event) |
virtual void | keyPressEvent (QKeyEvent *event) |
virtual void | resizeEvent (QResizeEvent *event) |
virtual void | wheelEvent (QWheelEvent *event) |
Properties inherited from KPIM::KCheckComboBox | |
QStringList | checkedItems |
QString | defaultText |
QString | separator |
bool | squeezeText |
Detailed Description
A combobox that is populated with the days of the week from the current KCalenderSystem.
The days are checkable.
- Note
- : KCalenderSystem numbers weekdays starting with 1, however this widget is 0 indexed and handles the conversion to the 1 based system internally. Use this widget as a normal 0 indexed container.
- See also
- KCalenderSystem
Definition at line 41 of file kweekdaycheckcombo.h.
Constructor & Destructor Documentation
|
explicit |
- Parameters
-
first5Checked if true the first 5 weekdays will be checked by default
Definition at line 31 of file kweekdaycheckcombo.cpp.
|
virtual |
Definition at line 54 of file kweekdaycheckcombo.cpp.
Member Function Documentation
QBitArray KWeekdayCheckCombo::days | ( | ) | const |
Retrieve the checked days.
- Parameters
-
days a 7 bit array indicating the checked days (bit 0 = Monday, value 1 = checked).
Definition at line 58 of file kweekdaycheckcombo.cpp.
void KWeekdayCheckCombo::setDays | ( | const QBitArray & | days, |
const QBitArray & | disableDays = QBitArray() |
||
) |
Set the checked days on this combobox.
- Parameters
-
days a 7 bit array indicating the days to check/uncheck (bit 0 = Monday, value 1 = check). disableDays if not empty, the corresponding days will be disabled, all others enabled (bit 0 = Monday, value 1 = disable).
- See also
- days()
Definition at line 85 of file kweekdaycheckcombo.cpp.
int KWeekdayCheckCombo::weekdayIndex | ( | const QDate & | date | ) | const |
Returns the index of the weekday represented by the QDate object.
Definition at line 72 of file kweekdaycheckcombo.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:51 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:33:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.