diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2014-07-12 11:59:31 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@digia.com> | 2014-07-16 15:19:32 +0200 |
commit | d060394d52f9082962e976220c181e8279b4f003 (patch) | |
tree | 193aa959f08f7cb50c71e05be2d94369cd327641 /src/controls/Calendar.qml | |
parent | 790769dfef02085ece0ad1efe42fa8f25d255496 (diff) | |
download | qtquickcontrols-d060394d52f9082962e976220c181e8279b4f003.tar.gz |
Add Calendar::pressAndHold(date) signal
[ChangeLog][Calendar] Added pressAndHold(date) signal that is emitted
when the user presses and holds a valid date.
Change-Id: Ie880a3ed827332d35fabc76cd6a09eebc7685eb7
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Diffstat (limited to 'src/controls/Calendar.qml')
-rw-r--r-- | src/controls/Calendar.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/controls/Calendar.qml b/src/controls/Calendar.qml index 9dd96ed3..a452fa5b 100644 --- a/src/controls/Calendar.qml +++ b/src/controls/Calendar.qml @@ -282,6 +282,18 @@ Control { signal doubleClicked(date date) /*! + \qmlsignal Calendar::pressAndHold(date date) + \since QtQuick.Controls 1.3 + + Emitted when the mouse is pressed and held on a valid date in the calendar. + + \a date is the date that the mouse was pressed on. + + The corresponding handler is \c onPressAndHold. + */ + signal pressAndHold(date date) + + /*! Sets visibleMonth to the previous month. */ function showPreviousMonth() { |