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

« back to all changes in this revision

Viewing changes to DayView.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
 
31
31
    Keys.forwardTo: [dayViewPath]
32
32
    flickable: null
33
33
 
 
34
    Action {
 
35
        id: calendarTodayAction
 
36
        objectName:"todaybutton"
 
37
        iconName: "calendar-today"
 
38
        text: i18n.tr("Today")
 
39
        onTriggered: {
 
40
            currentDay = new Date()
 
41
        }
 
42
    }
 
43
 
 
44
    head.actions: [
 
45
        calendarTodayAction,
 
46
        commonHeaderActions.newEventAction,
 
47
        commonHeaderActions.showCalendarAction,
 
48
        commonHeaderActions.reloadAction
 
49
    ]
 
50
 
34
51
    Column {
35
52
        id: column
36
53
        anchors.top: parent.top
62
79
                    dayHeader.decrementCurrentIndex()
63
80
                }
64
81
                else if( date > currentDay){
65
 
                     currentDay = currentDay.addDays(1);
66
 
                     dayHeader.incrementCurrentIndex();
67
 
                 }
68
 
             }
 
82
                    currentDay = currentDay.addDays(1);
 
83
                    dayHeader.incrementCurrentIndex();
 
84
                }
 
85
            }
69
86
        }
70
87
 
71
88
        PathViewBase{