• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

libkdepim

  • KPIM
  • KWeekdayCheckCombo
Public Member Functions | List of all members
KPIM::KWeekdayCheckCombo Class Reference

#include <kweekdaycheckcombo.h>

Inheritance diagram for KPIM::KWeekdayCheckCombo:
Inheritance graph
[legend]

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

KWeekdayCheckCombo::KWeekdayCheckCombo ( QWidget *  parent = 0,
bool  first5Checked = false 
)
explicit
Parameters
first5Checkedif true the first 5 weekdays will be checked by default

Definition at line 31 of file kweekdaycheckcombo.cpp.

KWeekdayCheckCombo::~KWeekdayCheckCombo ( )
virtual

Definition at line 54 of file kweekdaycheckcombo.cpp.

Member Function Documentation

QBitArray KWeekdayCheckCombo::days ( ) const

Retrieve the checked days.

Parameters
daysa 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
daysa 7 bit array indicating the days to check/uncheck (bit 0 = Monday, value 1 = check).
disableDaysif 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:
  • kweekdaycheckcombo.h
  • kweekdaycheckcombo.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal