2
Copyright (c) 2010 Volker Krause <vkrause@kde.org>
3
Copyright (c) 2010 Bertjan Broeksema <broeksema@kde.org>
5
This library is free software; you can redistribute it and/or modify it
6
under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or (at your
8
option) any later version.
10
This library is distributed in the hope that it will be useful, but WITHOUT
11
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13
License for more details.
15
You should have received a copy of the GNU Library General Public License
16
along with this library; see the file COPYING.LIB. If not, write to the
17
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23
import org.kde.akonadi 4.5 as Akonadi
24
import org.kde.pim.mobileui 4.5 as KPIM
28
visible: guiStateManager.inViewEventListState
30
color: "#D2D1D0" // TODO: make palette work correctly. palette.window
37
anchors.right : parent.right
38
anchors.rightMargin : 70
39
anchors.bottom : parent.bottom
40
anchors.bottomMargin : 70
42
source : KDE.locate( "data", "mobileui/back-to-list-button.png" );
44
anchors.fill : parent;
46
_itemActionModel.select(-1, 1)
47
_itemNavigationModel.select(-1, 1)
48
guiStateManager.popState();
58
checkModel : _itemActionModel
59
anchors.left : parent.left
60
anchors.top : parent.top
61
anchors.bottom : filterLineEdit.top
62
anchors.right : parent.right
64
anchors.leftMargin: 40
66
navigationModel : _itemNavigationModel
69
Akonadi.FilterLineEdit {
71
anchors.left : parent.left
72
anchors.bottom : parent.bottom
73
anchors.right : parent.right
74
anchors.leftMargin: 40
77
y : height == 0 ? parent.height : parent.height - height
81
target : _itemNavigationModel
82
onCurrentRowChanged : {
83
application.setCurrentEventItemId(_itemNavigationModel.currentItemIdHack);
84
guiStateManager.pushUniqueState( KPIM.GuiStateManager.ViewSingleItemState )
85
_itemActionModel.select( _itemNavigationModel.currentRow, 3 );
86
eventView.itemId = _itemNavigationModel.currentItemIdHack;