2
Copyright (c) 2010 Volker Krause <vkrause@kde.org>
3
Copyright (c) 2010 Bertjan Broeksema <broeksema@kde.org>
4
Copyright (C) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
5
Copyright (c) 2010 Andras Mantia <amantia@kdab.com>
7
This library is free software; you can redistribute it and/or modify it
8
under the terms of the GNU Library General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or (at your
10
option) any later version.
12
This library is distributed in the hope that it will be useful, but WITHOUT
13
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15
License for more details.
17
You should have received a copy of the GNU Library General Public License
18
along with this library; see the file COPYING.LIB. If not, write to the
19
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25
import org.kde.pim.mobileui 4.5 as KPIM
27
QML.Rectangle { // work around strange anchoring behaviour inside Loader
35
onClicked : {} // do nothing
39
anchors.right : parent.right
40
anchors.rightMargin : 70
41
anchors.left : parent. left
42
anchors.leftMargin : 70
43
anchors.top : parent.top
44
anchors.topMargin : 70
49
KPIM.DecoratedListView {
51
model: _emailTemplateModel
58
application.newMessageFromTemplate( index );
59
root.parent.visible = false
67
buttonText : KDE.i18n( "Discard" )
69
root.parent.visible = false
74
QML.Component.onCompleted: {
75
height = Math.min( application.emailTemplateCount(), 5 ) * 52; //ask on the fly, can change