KDEUI
kdatetimewidget.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2002 Hans Petter bieker <bieker@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #ifndef KDATETIMEWIDGET 00020 #define KDATETIMEWIDGET 00021 00022 #include <kdeui_export.h> 00023 00024 #include <QtGui/QWidget> 00025 00026 class QDateTime; 00027 00039 class KDEUI_EXPORT KDateTimeWidget : public QWidget 00040 { 00041 Q_OBJECT 00042 Q_PROPERTY( QDateTime dateTime READ dateTime WRITE setDateTime NOTIFY valueChanged USER true ) 00043 00044 public: 00048 explicit KDateTimeWidget(QWidget * parent = 0); 00049 00054 explicit KDateTimeWidget(const QDateTime & datetime, 00055 QWidget * parent = 0); 00056 00060 virtual ~KDateTimeWidget(); 00061 00065 QDateTime dateTime() const; 00066 00067 public Q_SLOTS: 00071 void setDateTime(const QDateTime & datetime); 00072 00073 Q_SIGNALS: 00078 void valueChanged(const QDateTime & datetime); 00079 00080 private: 00081 void init(); 00082 00083 private Q_SLOTS: 00084 void slotValueChanged(); 00085 00086 private: 00087 class KDateTimeWidgetPrivate; 00088 KDateTimeWidgetPrivate * const d; 00089 }; 00090 00091 #endif
KDE 4.6 API Reference