Rename isTodayMonth() to today()
Whoever named the method like that should be slapped over his fingers.
This commit is contained in:
parent
ab97884c00
commit
5c6b1c9251
@ -87,7 +87,7 @@ Item {
|
||||
else return false;
|
||||
}
|
||||
|
||||
function isTodayMonth() {
|
||||
function today() {
|
||||
return Qt.formatDateTime(new Date(), "yyyy-MM-dd")
|
||||
}
|
||||
|
||||
@ -102,7 +102,7 @@ Item {
|
||||
days: 7
|
||||
weeks: 6
|
||||
firstDayOfWeek: Qt.locale().firstDayOfWeek
|
||||
startDate: isTodayMonth();
|
||||
startDate: today();
|
||||
}
|
||||
|
||||
// CalendarToolbar {
|
||||
@ -175,7 +175,7 @@ Item {
|
||||
iconSource: "view-pim-calendar"
|
||||
width: height
|
||||
onClicked: {
|
||||
monthCalendar.startDate = isTodayMonth();
|
||||
monthCalendar.startDate = today();
|
||||
}
|
||||
PlasmaCore.ToolTip {
|
||||
id: tool
|
||||
|
Loading…
Reference in New Issue
Block a user