~nskaggs/ubuntu-filemanager-app/revert-rev132

« back to all changes in this revision

Viewing changes to ui/ConfirmDialog.qml

  • Committer: nskaggs
  • Date: 2014-03-18 21:40:27 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20140318214027-z42p24cxmvw0rrz9
Rollback to last working version, with working cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2013 Canonical Ltd
3
 
 *
4
 
 * This program is free software: you can redistribute it and/or modify
5
 
 * it under the terms of the GNU General Public License version 3 as
6
 
 * published by the Free Software Foundation.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful,
9
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 
 * GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 *
16
 
 * Authored by: Arto Jalkanen <ajalkane@gmail.com>
17
 
 */
18
 
import QtQuick 2.0
19
 
import Ubuntu.Components 0.1
20
 
import Ubuntu.Components.Popups 0.1
21
 
 
22
 
Dialog {
23
 
    id: root
24
 
 
25
 
    signal accepted
26
 
    signal rejected
27
 
 
28
 
    Button {
29
 
        id: okButton
30
 
        objectName: "okButton"
31
 
        text: i18n.tr("Ok")
32
 
        onClicked: {
33
 
            accepted()
34
 
            PopupUtils.close(root)
35
 
        }
36
 
    }
37
 
 
38
 
    Button {
39
 
        id: cancelButton
40
 
        objectName: "cancelButton"
41
 
        text: i18n.tr("Cancel")
42
 
 
43
 
        gradient: Gradient {
44
 
            GradientStop {
45
 
                position: 0
46
 
                color: "gray"
47
 
            }
48
 
 
49
 
            GradientStop {
50
 
                position: 1
51
 
                color: "lightgray"
52
 
            }
53
 
        }
54
 
 
55
 
        onClicked: {
56
 
            rejected()
57
 
            PopupUtils.close(root)
58
 
        }
59
 
    }
60
 
}