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

Nepomuk

  • sources
  • kde-4.14
  • kdelibs
  • nepomuk
  • utils
daterangeselectionwidget.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2009-2010 Sebastian Trueg <trueg@kde.org>
3 
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public License as
6  published by the Free Software Foundation; either version 2 of
7  the License or (at your option) version 3 or any later version
8  accepted by the membership of KDE e.V. (or its successor approved
9  by the membership of KDE e.V.), which shall act as a proxy
10  defined in Section 14 of version 3 of the license.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 
20 */
21 
22 #ifndef _DATE_RANGE_SELECTION_WIDGET_H_
23 #define _DATE_RANGE_SELECTION_WIDGET_H_
24 
25 #include <QtGui/QWidget>
26 
27 class DateRange;
28 class QAction;
29 class QDate;
30 
40 class DateRangeSelectionWidget : public QWidget
41 {
42  Q_OBJECT
43 
44 public:
49  DateRangeSelectionWidget( QWidget* parent = 0 );
50 
54  ~DateRangeSelectionWidget();
55 
63  DateRange range() const;
64 
65 public Q_SLOTS:
69  void setRange( const DateRange& range );
70 
71 Q_SIGNALS:
75  void rangeChanged( const DateRange& range );
76 
77 private:
78  class Private;
79  Private* const d;
80 
81  Q_PRIVATE_SLOT( d, void _k_anytimeClicked() )
82  Q_PRIVATE_SLOT( d, void _k_beforeClicked() )
83  Q_PRIVATE_SLOT( d, void _k_afterClicked() )
84  Q_PRIVATE_SLOT( d, void _k_rangeClicked() )
85  Q_PRIVATE_SLOT( d, void _k_rangeClicked( QAction* ) )
86  Q_PRIVATE_SLOT( d, void _k_rangeStartEdited( const QDate& date ) )
87  Q_PRIVATE_SLOT( d, void _k_rangeEndEdited( const QDate& date ) )
88  Q_PRIVATE_SLOT( d, void _k_calendarDateClicked( const QDate& date ) )
89 };
90 
91 #endif
QWidget
DateRange
A simple data structure storing a start and an end date.
Definition: daterange.h:41
DateRangeSelectionWidget::setRange
void setRange(const DateRange &range)
Set the date range.
QDate
DateRangeSelectionWidget::DateRangeSelectionWidget
DateRangeSelectionWidget(QWidget *parent=0)
Create a new DateRange selection widget with an invalid DateRange set which corresponds to "anytime"...
DateRangeSelectionWidget::range
DateRange range() const
One of:
DateRangeSelectionWidget::rangeChanged
void rangeChanged(const DateRange &range)
Emitted when the date range changes.
DateRangeSelectionWidget
Definition: daterangeselectionwidget.h:40
QAction
QObject::parent
QObject * parent() const
DateRangeSelectionWidget::~DateRangeSelectionWidget
~DateRangeSelectionWidget()
Destructor.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk

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

kdelibs API Reference

Skip menu "kdelibs 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

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