TimePicker
TimePicker Class Reference
Inheritance diagram for TimePicker:
Properties | |
string | format |
int | selectedHour |
int | selectedMinute |
date | selectedTime |
date | startTime |
int | timeZoneOffset |
Properties inherited from Page | |
listTAction | actions |
Flickable | flickable |
Item | globalToolBarItem |
int | globalToolBarStyle |
PActionIconGroup | icon |
bool | isCurrentPage |
alias | overlay |
var | progress |
Component | titleDelegate |
Signals | |
void | accepted (var time) |
Signals inherited from Page | |
void | backRequested (var event) |
Public Member Functions | |
void | formatHourToUTC (int hour, string format) |
void | formatText (int count, int modelData) |
void | formatUTCHour (int hour) |
void | updateSelectedTime (minute, hour, format=control.format) |
Detailed Description
A control for picking a time in the format of hour and minutes.
MC.TimePicker
{
id: _view
anchors.fill: parent
onAccepted: (time) => console.log("Time Picked, ", time)
}
Definition at line 21 of file TimePicker.qml.
Property Documentation
◆ format
|
read |
Definition at line 47 of file TimePicker.qml.
◆ selectedHour
|
read |
Definition at line 35 of file TimePicker.qml.
◆ selectedMinute
|
read |
Definition at line 31 of file TimePicker.qml.
◆ selectedTime
|
read |
Definition at line 43 of file TimePicker.qml.
◆ startTime
|
read |
- Remarks
- This property is read-only
Definition at line 27 of file TimePicker.qml.
◆ timeZoneOffset
|
read |
Definition at line 39 of file TimePicker.qml.
Member Function Documentation
◆ accepted
|
signal |
- Parameters
-
time
◆ formatHourToUTC()
void TimePicker::formatHourToUTC | ( | int | hour, |
string | format ) |
- Parameters
-
hour format
◆ formatText()
void TimePicker::formatText | ( | int | count, |
int | modelData ) |
- Parameters
-
count modeldata
◆ formatUTCHour()
void TimePicker::formatUTCHour | ( | int | hour | ) |
- Parameters
-
hour
◆ updateSelectedTime()
void TimePicker::updateSelectedTime | ( | minute | , |
hour | , | ||
format | = control.format ) |
- Parameters
-
minute hour format
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.