~pkunal-parmar/ubuntu-calendar-app/ICalImport

« back to all changes in this revision

Viewing changes to YearView.qml

  • Committer: Tarmac
  • Author(s): Mihir Soni, Nekhelesh Ramananthan
  • Date: 2014-09-19 11:02:21 UTC
  • mfrom: (455.3.6 1-RemovedDuplicateHeaders)
  • Revision ID: tarmac-20140919110221-lxuhy6y4b7kigyz7
Removed duplicate header section from views and added common header.

Approved by Ubuntu Phone Apps Jenkins Bot, Nekhelesh Ramananthan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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/>.
17
17
 */
18
 
import QtQuick 2.0
 
18
 
 
19
import QtQuick 2.3
19
20
import Ubuntu.Components 1.1
20
 
 
21
21
import "dateExt.js" as DateExt
 
22
 
22
23
Page {
23
24
    id: yearViewPage
24
25
    objectName: "yearViewPage"
28
29
 
29
30
    Keys.forwardTo: [yearPathView]
30
31
 
 
32
    Action {
 
33
        id: calendarTodayAction
 
34
        objectName:"todaybutton"
 
35
        iconName: "calendar-today"
 
36
        text: i18n.tr("Today")
 
37
        onTriggered: {
 
38
            currentYear = new Date().getFullYear()
 
39
        }
 
40
    }
 
41
 
 
42
    head.actions: [
 
43
        calendarTodayAction,
 
44
        commonHeaderActions.newEventAction,
 
45
        commonHeaderActions.showCalendarAction,
 
46
        commonHeaderActions.reloadAction
 
47
    ]
 
48
 
31
49
    PathViewBase {
32
50
        id: yearPathView
33
51
        objectName: "yearPathView"
114
132
                    yearLabelFontSize: "small"
115
133
 
116
134
                    onMonthSelected: {
117
 
                       yearViewPage.monthSelected(date);
 
135
                        yearViewPage.monthSelected(date);
118
136
                    }
119
137
                }
120
138
            }