class KDateTable |
|
|
The constructor. |
|
The constructor. |
|
|
A popup menu for a given date is about to be shown (as when the user right clicks on that date and the popup menu is enabled). Connect the slot where you fill the menu to this signal. |
|
Returns the currently selected calendar system.
Returns a KCalendarSystem object |
|
Returns the selected date. |
|
The selected date changed. |
|
This function behaves essentially like the one above.
The selected date changed.
cur - The current date old - The date before the date was changed |
|
calculate the date that is displayed at a given cell in the matrix. pos is the 0-based index in the matrix. Inverse function to posForDate(). |
|
|
|
|
React on mouse clicks that select a date. |
|
|
Returns if the popup menu is enabled or not |
|
calculate the position of the cell in the matrix for the given date. The result is the 0-based index. |
|
Changes the calendar system to use. Can use its own local locale if set.
calendar - the calendar system object to use, defaults to global Returns true if the calendar system was successfully set, false otherwise |
|
Changes the calendar system to use. Will always use global locale.
calendarType - the calendar system type to use Returns true if the calendar system was successfully set, false otherwise |
|
Makes a given date be painted with a given foregroundColor, and background (a rectangle, or a circle/ellipse) in a given color. |
|
Select and display this date. |
|
Set the font size of the date table. |
|
Enables a popup menu when right clicking on a date.
When it's enabled, this object emits a aboutToShowContextMenu signal where you can fill in the menu items. |
|
Returns a recommended size for the widget. To save some time, the size of the largest used cell content is calculated in each paintCell() call, since all calculations have to be done there anyway. The size is stored in maxCell. The sizeHint() simply returns a multiple of maxCell. |
|
A date has been selected by clicking on the table. |
|
Unsets the custom painting of a date so that the date is painted as usual. |
|
NoBgMode | - 0 | - | ||
RectangleMode | - | - | ||
CircleMode | - | - |