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

« back to all changes in this revision

Viewing changes to WeekView.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
import "ViewType.js" as ViewType
23
23
 
34
34
    Keys.forwardTo: [weekViewPath]
35
35
 
36
36
    flickable: null
 
37
    Action {
 
38
           id: calendarTodayAction
 
39
           objectName:"todaybutton"
 
40
           iconName: "calendar-today"
 
41
           text: i18n.tr("Today")
 
42
           onTriggered: {
 
43
               dayStart = new Date()
 
44
           }
 
45
       }
 
46
 
 
47
       head.actions: [
 
48
           calendarTodayAction,
 
49
           commonHeaderActions.newEventAction,
 
50
           commonHeaderActions.showCalendarAction,
 
51
           commonHeaderActions.reloadAction
 
52
       ]
37
53
 
38
54
    Column {
39
55
        anchors.fill: parent