• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

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

#include <kdatetimewidget.h>

Inheritance diagram for KDateTimeWidget:
QWidget

Public Slots

void setDateTime (const QDateTime &datetime)
 

Signals

void valueChanged (const QDateTime &datetime)
 

Public Member Functions

 KDateTimeWidget (const QDateTime &datetime, QWidget *parent=0)
 
 KDateTimeWidget (QWidget *parent=0)
 
virtual ~KDateTimeWidget ()
 
QDateTime dateTime () const
 

Properties

QDateTime dateTime
 

Detailed Description

A combination of a date and a time selection widget.

This widget can be used to display or allow user selection of date and time.

See also
KDateWidget
KDE Date Time Widget
Author
Hans Petter Bieker bieke.nosp@m.r@kd.nosp@m.e.org

Definition at line 39 of file kdatetimewidget.h.

Constructor & Destructor Documentation

◆ KDateTimeWidget() [1/2]

KDateTimeWidget::KDateTimeWidget ( QWidget *  parent = 0)
explicit

Constructs a date and time selection widget.

Definition at line 37 of file kdatetimewidget.cpp.

◆ KDateTimeWidget() [2/2]

KDateTimeWidget::KDateTimeWidget ( const QDateTime &  datetime,
QWidget *  parent = 0 
)
explicit

Constructs a date and time selection widget with the initial date and time set to datetime.

Definition at line 44 of file kdatetimewidget.cpp.

◆ ~KDateTimeWidget()

KDateTimeWidget::~KDateTimeWidget ( )
virtual

Destructs the date and time selection widget.

Definition at line 55 of file kdatetimewidget.cpp.

Member Function Documentation

◆ dateTime()

QDateTime KDateTimeWidget::dateTime ( ) const

Returns the currently selected date and time.

Definition at line 82 of file kdatetimewidget.cpp.

◆ setDateTime

void KDateTimeWidget::setDateTime ( const QDateTime &  datetime)
slot

Changes the selected date and time to datetime.

Definition at line 76 of file kdatetimewidget.cpp.

◆ valueChanged

void KDateTimeWidget::valueChanged ( const QDateTime &  datetime)
signal

Emitted whenever the date or time of the widget is changed, either with setDateTime() or via user selection.

Property Documentation

◆ dateTime

QDateTime KDateTimeWidget::dateTime
readwrite

Definition at line 1 of file kdatetimewidget.h.


The documentation for this class was generated from the following files:
  • kdatetimewidget.h
  • kdatetimewidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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