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

kstars

Public Slots | Signals | Public Member Functions | List of all members
GenericCalendarWidget Class Reference

#include <genericcalendarwidget.h>

Inheritance diagram for GenericCalendarWidget:
Inheritance graph
[legend]

Public Slots

bool setDate (int date_)
 
bool setDate (const QDate &date_)
 
bool setMonth (int month)
 
bool setYear (int year)
 

Signals

void dateChanged (const QDate &date_)
 

Public Member Functions

 GenericCalendarWidget (KDateTable &dateTable, QWidget *parent=0)
 
 ~GenericCalendarWidget ()
 
const QDate & date () const
 

Detailed Description

Uses any KDateTable subclass for the date table and provides a calendar with options to choose a month / year.

Author
Akarsh Simha
Version
1.0
Note
This supports only the Gregorian calendar system for simplicity.
This shouldn't be the way to do things in the first place, but this is until KDatePicker starts supporting overridden KDateTables and the like

Definition at line 38 of file genericcalendarwidget.h.

Constructor & Destructor Documentation

GenericCalendarWidget::GenericCalendarWidget ( KDateTable &  dateTable,
QWidget *  parent = 0 
)
explicit

Constructor.

Sets up the Ui, connects signals to slots etc.

Definition at line 25 of file genericcalendarwidget.cpp.

GenericCalendarWidget::~GenericCalendarWidget ( )
inline

Empty destructor.

Definition at line 51 of file genericcalendarwidget.h.

Member Function Documentation

const QDate & GenericCalendarWidget::date ( ) const

Returns the selected date.

Definition at line 72 of file genericcalendarwidget.cpp.

void GenericCalendarWidget::dateChanged ( const QDate &  date_)
signal

Emitted when the date has been changed.

Note
Emitted by dateTableDateChanged() which subscribes to KDateTable::dateChanged()
bool GenericCalendarWidget::setDate ( int  date_)
slot

Set the selected day of month.

Parameters
dateThe date of the month to choose

Definition at line 159 of file genericcalendarwidget.cpp.

bool GenericCalendarWidget::setDate ( const QDate &  date_)
slot

Set the selected date.

Parameters
dateThe date to set

Definition at line 163 of file genericcalendarwidget.cpp.

bool GenericCalendarWidget::setMonth ( int  month)
slot

Set the month.

Parameters
monthThe month to choose

Definition at line 155 of file genericcalendarwidget.cpp.

bool GenericCalendarWidget::setYear ( int  year)
slot

Set the year.

Parameters
yearThe year to choose

Definition at line 151 of file genericcalendarwidget.cpp.


The documentation for this class was generated from the following files:
  • genericcalendarwidget.h
  • genericcalendarwidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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