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

« back to all changes in this revision

Viewing changes to MonthView.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
import "dateExt.js" as DateExt
21
22
import "colorUtils.js" as Color
30
31
 
31
32
    Keys.forwardTo: [monthViewPath]
32
33
 
 
34
    Action {
 
35
        id: calendarTodayAction
 
36
        objectName:"todaybutton"
 
37
        iconName: "calendar-today"
 
38
        text: i18n.tr("Today")
 
39
        onTriggered: {
 
40
            currentMonth = new Date().midnight()
 
41
        }
 
42
    }
 
43
 
 
44
    head.actions: [
 
45
        calendarTodayAction,
 
46
        commonHeaderActions.newEventAction,
 
47
        commonHeaderActions.showCalendarAction,
 
48
        commonHeaderActions.reloadAction
 
49
    ]
 
50
 
33
51
    PathViewBase{
34
52
        id: monthViewPath
35
53
        objectName: "monthViewPath"