Rename isTodayMonth() to today()

Whoever named the method like that should be slapped over his fingers.
This commit is contained in:
Martin Klapetek 2013-11-26 17:28:15 +01:00
parent ab97884c00
commit 5c6b1c9251

View File

@ -87,7 +87,7 @@ Item {
else return false; else return false;
} }
function isTodayMonth() { function today() {
return Qt.formatDateTime(new Date(), "yyyy-MM-dd") return Qt.formatDateTime(new Date(), "yyyy-MM-dd")
} }
@ -102,7 +102,7 @@ Item {
days: 7 days: 7
weeks: 6 weeks: 6
firstDayOfWeek: Qt.locale().firstDayOfWeek firstDayOfWeek: Qt.locale().firstDayOfWeek
startDate: isTodayMonth(); startDate: today();
} }
// CalendarToolbar { // CalendarToolbar {
@ -175,7 +175,7 @@ Item {
iconSource: "view-pim-calendar" iconSource: "view-pim-calendar"
width: height width: height
onClicked: { onClicked: {
monthCalendar.startDate = isTodayMonth(); monthCalendar.startDate = today();
} }
PlasmaCore.ToolTip { PlasmaCore.ToolTip {
id: tool id: tool