15
15
* You should have received a copy of the GNU General Public License
16
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
import Ubuntu.Components 0.1
20
import Ubuntu.Components 1.1
25
// Property to set the day and date
26
property alias dateColor: dateLabel.color
28
// Property to set the font color of the day label
27
29
property alias dayColor: dayLabel.color
29
property int dayFormat: Locale.ShortFormat;
31
signal dateSelected(var date);
34
height: innerColumn.height
31
// Property to set the time format of the day label
32
property int dayFormat: Locale.ShortFormat
34
// Signal fired when pressing on the date
35
signal dateSelected(var date)
37
width: dayLabel.paintedWidth
38
height: dateContainer.height
43
width: dayLabel.paintedWidth
44
spacing: units.gu(0.2)
46
anchors.centerIn: parent
43
property var day: Qt.locale().standaloneDayName(date.getDay(), dayFormat)
44
text: day.toUpperCase();
46
horizontalAlignment: Text.AlignHCenter
50
objectName: "dayLabel"
51
text: Qt.locale().standaloneDayName(date.getDay(), dayFormat)
53
56
objectName: "dateLabel"
54
57
text: date.getDate();
56
horizontalAlignment: Text.AlignHCenter
59
anchors.horizontalCenter: dayLabel.horizontalCenter