~chris.gagnon/ubuntu-ui-toolkit/fix-bug-1388896

« back to all changes in this revision

Viewing changes to tests/resources/popover/DialogTest.qml

  • Committer: CI bot
  • Author(s): Zsombor Egri, Michael Sheldon, Zoltán Balogh, Christian Dywan, Tim Peeters
  • Date: 2014-10-07 12:09:27 UTC
  • mfrom: (1000.249.11 landing-0711)
  • Revision ID: ps-jenkins@lists.canonical.com-20141007120927-ucysonqxn60vu8gz
  [ Michael Sheldon ]
  * Removes the keyboard anchor animation as this is now implemented
    in the keyboard.

  [ Tim Peeters ]
  * PageStack push returns the pushed page. Fixes LP: #1361919
  * Add selection mode as a preset to the header configuration.
    Fixes LP: #1370146.

  [ Zsombor Egri ]
  * Fix Dialog foreground sizing. Fixes LP: #1337555, LP: #1337556.
  * Workaround for StateSaver to fall back to use qgetenv() when
    QStandardPaths fails to return XDG_RUNTIME_DIR path.
    Fixes LP: #1363112.

  [ Christian Dywan ]
  * Add unit tests for MathUtils API.
    Fixes LP: #1244685.
  * Text field hint should use the same font as the editor.
    Fixes LP: #1237400.
  * Read-only text fields mustn't have a clear button.
    Fixes LP: #1337257.
  * autopilot package should source-depend on QML plugin.
    Fixes LP: #1236085.
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        }
37
37
    }
38
38
 
39
 
    Button {
40
 
        text: "Open dialog"
41
 
        onClicked: PopupUtils.open(dialog)
42
 
    }
43
 
 
 
39
    Component {
 
40
        id: expanding
 
41
        Dialog {
 
42
             id: stylesDialog
 
43
             property real labelwidth: units.gu(11)
 
44
//             title: "Title"
 
45
             //text: "text"
 
46
 
 
47
             OptionSelector {
 
48
                  model: ["One", "Two", "Three"]
 
49
             }
 
50
 
 
51
             Row {
 
52
                 Label {
 
53
                     text: "Slider"
 
54
                     verticalAlignment: Text.AlignVCenter
 
55
                     width: labelwidth
 
56
                     height: fontScaleSlider.height
 
57
                 }
 
58
 
 
59
                 Slider {
 
60
                     id: fontScaleSlider
 
61
                     width: parent.width - labelwidth
 
62
                     minimumValue: 0
 
63
                     maximumValue: 12
 
64
                 }
 
65
             }
 
66
             Button {
 
67
                 text: i18n.tr("Close")
 
68
                 onClicked: PopupUtils.close(stylesDialog)
 
69
             }
 
70
        }
 
71
    }
 
72
 
 
73
    Column {
 
74
        Button {
 
75
            text: "Open dialog"
 
76
            onClicked: PopupUtils.open(dialog)
 
77
        }
 
78
        Button {
 
79
            text: "Open expanding dialog"
 
80
            onClicked: PopupUtils.open(expanding)
 
81
        }
 
82
    }
44
83
}