1
/** This file is part of Qt Media Hub**
3
Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).*
6
Contact: Nokia Corporation qmh-development@qt-project.org
8
You may use this file under the terms of the BSD license
11
Redistribution and use in source and binary forms, with or
12
without modification, are permitted provided that the following
14
* Redistributions of source code must retain the above copyright
15
notice, this list of conditions and the following disclaimer.
17
* Redistributions in binary form must reproduce the above copyright
18
notice, this list of conditions and the following disclaimer in the
19
documentation and/or other materials provided with the distribution.
21
* Neither the name of Nokia Corporation and its Subsidiary(-ies)
22
nor the names of its contributors may be used to endorse or promote
23
products derived from this software without specific prior
26
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
29
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
30
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
31
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
35
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
37
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **/
43
width: actionListView.width + 20
44
height: glassTitleBar.height + actionListView.height + 10
46
property alias model: actionListView.model
47
property alias title : titleBarText.text
69
source: themeResourcePath + "/media/OverlayDialogBackground.png"
70
border { top: 20; left: 20; bottom: 20; right: 20; }
77
hideItemBackground: true
78
anchors.top: glassTitleBar.bottom
79
anchors.horizontalCenter: panel.horizontalCenter
80
anchors.bottomMargin : panel.border.bottom
81
onActivated: root.close()
86
source: themeResourcePath + "/media/GlassTitleBar.png"
87
anchors.top: panel.top
89
height: titleBarText.height + 10
93
anchors.centerIn: parent
95
text: "Default dialog title"
103
source: themeResourcePath + "/media/" + (closeButtonMouseArea.pressed ? "DialogCloseButton-focus.png" : "DialogCloseButton.png")
104
anchors.top: panel.top
105
anchors.right: panel.right
106
anchors { rightMargin: 10; topMargin: 5; }
108
id: closeButtonMouseArea
109
anchors.fill: parent;
111
onClicked: root.close();
115
Keys.onMenuPressed: root.close()