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

« back to all changes in this revision

Viewing changes to AgendaView.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
19
 
import Ubuntu.Components 0.1
 
18
 
 
19
import QtQuick 2.3
20
20
import QtOrganizer 5.0
21
 
 
 
21
import Ubuntu.Components 1.1
22
22
import "dateExt.js" as DateExt
23
23
 
24
24
Page{
43
43
        return !!enabled_calendars.length;
44
44
    }
45
45
 
 
46
    Action {
 
47
        id: calendarTodayAction
 
48
        objectName:"todaybutton"
 
49
        iconName: "calendar-today"
 
50
        text: i18n.tr("Today")
 
51
        onTriggered: {
 
52
            currentDay = new Date()
 
53
            goToBeginning()
 
54
        }
 
55
    }
 
56
 
 
57
    head.actions: [
 
58
        calendarTodayAction,
 
59
        commonHeaderActions.newEventAction,
 
60
        commonHeaderActions.showCalendarAction,
 
61
        commonHeaderActions.reloadAction
 
62
    ]
 
63
 
46
64
    EventListModel {
47
65
        id: eventListModel
48
66
        startPeriod: currentDay.midnight();