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

Nepomuk

  • 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
27class DateRange;
28class QAction;
29class QDate;
30
40class DateRangeSelectionWidget : public QWidget
41{
42 Q_OBJECT
43
44public:
49 DateRangeSelectionWidget( QWidget* parent = 0 );
50
54 ~DateRangeSelectionWidget();
55
63 DateRange range() const;
64
65public Q_SLOTS:
69 void setRange( const DateRange& range );
70
71Q_SIGNALS:
75 void rangeChanged( const DateRange& range );
76
77private:
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
DateRangeSelectionWidget
Definition: daterangeselectionwidget.h:41
DateRangeSelectionWidget::rangeChanged
void rangeChanged(const DateRange &range)
Emitted when the date range changes.
DateRangeSelectionWidget::setRange
void setRange(const DateRange &range)
Set the date range.
DateRangeSelectionWidget::~DateRangeSelectionWidget
~DateRangeSelectionWidget()
Destructor.
DateRangeSelectionWidget::range
DateRange range() const
One of:
DateRangeSelectionWidget::DateRangeSelectionWidget
DateRangeSelectionWidget(QWidget *parent=0)
Create a new DateRange selection widget with an invalid DateRange set which corresponds to "anytime".
DateRange
A simple data structure storing a start and an end date.
Definition: daterange.h:42
QWidget
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.

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-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