aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_dialogbuttonbox.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-06-29 19:53:36 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-06-30 14:54:23 +0000
commita5df6b69672afd780433ee8f43d343d1e2251fd4 (patch)
treed6d586ce0c4ea3d24f38ad5127158b9d1e068251 /tests/auto/controls/data/tst_dialogbuttonbox.qml
parent8ed484329fc277366d7bbcd63832b0effbbbbf9f (diff)
Remove DialogButtonBox::flat
The Material Design allows mixing standard flat buttons with non-flat custom buttons. It is enough that the delegate provides flat standard buttons by default. It is better to not force all buttons to be flat, but let the user freely specify whether custom buttons are flat. This API has not yet been released, so it is still safe to remove. Change-Id: Iec400553ccefb47f20fb98d64919491d9bb27cbe Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/controls/data/tst_dialogbuttonbox.qml')
-rw-r--r--tests/auto/controls/data/tst_dialogbuttonbox.qml22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/auto/controls/data/tst_dialogbuttonbox.qml b/tests/auto/controls/data/tst_dialogbuttonbox.qml
index 296a4e0e..8474e89b 100644
--- a/tests/auto/controls/data/tst_dialogbuttonbox.qml
+++ b/tests/auto/controls/data/tst_dialogbuttonbox.qml
@@ -141,28 +141,6 @@ TestCase {
control.destroy()
}
- function test_flat() {
- var control = buttonBox.createObject(testCase)
-
- control.flat = true
- compare(control.flat, true)
-
- control.standardButtons = DialogButtonBox.Ok | DialogButtonBox.Cancel | DialogButtonBox.Apply
- button.createObject(control, {text: "Custom"})
- compare(control.count, 4)
-
- for (var i = 0; i < control.count; ++i)
- compare(control.itemAt(i).flat, true)
-
- control.flat = false
- compare(control.flat, false)
-
- for (var j = 0; j < control.count; ++j)
- compare(control.itemAt(j).flat, false)
-
- control.destroy()
- }
-
function test_signals_data() {
return [
{ tag: "Ok", standardButton: DialogButtonBox.Ok, buttonRole: DialogButtonBox.AcceptRole, signalName: "accepted" },