summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsplitter/tst_qsplitter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qsplitter/tst_qsplitter.cpp')
-rw-r--r--tests/auto/qsplitter/tst_qsplitter.cpp665
1 files changed, 5 insertions, 660 deletions
diff --git a/tests/auto/qsplitter/tst_qsplitter.cpp b/tests/auto/qsplitter/tst_qsplitter.cpp
index 0482661515..84db2c20a6 100644
--- a/tests/auto/qsplitter/tst_qsplitter.cpp
+++ b/tests/auto/qsplitter/tst_qsplitter.cpp
@@ -81,8 +81,6 @@ public slots:
private slots:
void getSetCheck();
void sizes(); // bare (as in empty)
- void setSizes3();
- void setSizes3_data();
void setSizes();
void setSizes_data();
void saveAndRestoreState();
@@ -147,9 +145,6 @@ void tst_QSplitter::initTestCase()
w2 = new QWidget;
splitter->addWidget(w1);
splitter->addWidget(w2);
-#if defined(QT3_SUPPORT)
- qApp->setMainWidget(splitter);
-#endif
}
void tst_QSplitter::init()
@@ -183,16 +178,13 @@ void tst_QSplitter::addThirdWidget()
void tst_QSplitter::cleanupTestCase()
{
-#if defined(QT3_SUPPORT)
- delete qApp->mainWidget();
-#endif
}
typedef QList<int> IntList;
Q_DECLARE_METATYPE(IntList)
-void tst_QSplitter::setSizes3()
+void tst_QSplitter::setSizes()
{
QFETCH(IntList, minimumSizes);
QFETCH(IntList, splitterSizes);
@@ -212,7 +204,7 @@ void tst_QSplitter::setSizes3()
QTEST(splitter->sizes(), "expectedSizes");
}
-void tst_QSplitter::setSizes3_data()
+void tst_QSplitter::setSizes_data()
{
QTest::addColumn<IntList>("minimumSizes");
QTest::addColumn<IntList>("splitterSizes");
@@ -255,653 +247,6 @@ void tst_QSplitter::setSizes3_data()
}
}
-void tst_QSplitter::setSizes()
-{
-#if !defined(QT3_SUPPORT)
- QSKIP("No Qt3Support", SkipAll);
-#else
- QFETCH(int, minSize1);
- QFETCH(int, minSize2);
- QFETCH(int, splitterSize1);
- QFETCH(int, splitterSize2);
- QFETCH(bool, collapse1);
- QFETCH(bool, collapse2);
- QFETCH(bool, childrencollapse);
- QFETCH(int, resizeMode1);
- QFETCH(int, resizeMode2);
- QList<int> mySizes;
- mySizes << splitterSize1 << splitterSize2;
- w1->setMinimumWidth(minSize1);
- w2->setMinimumWidth(minSize2);
- splitter->setCollapsible(w1, collapse1);
- splitter->setCollapsible(w2, collapse2);
- splitter->setChildrenCollapsible(childrencollapse);
- splitter->setResizeMode(w1, (QSplitter::ResizeMode)resizeMode1);
- splitter->setResizeMode(w2, (QSplitter::ResizeMode)resizeMode2);
- splitter->setSizes(mySizes);
- mySizes = splitter->sizes();
- QTEST(mySizes[0], "expected1");
- QTEST(mySizes[1], "expected2");
-#endif
-}
-
-void tst_QSplitter::setSizes_data()
-{
-#if defined(QT3_SUPPORT)
- QTest::addColumn<int>("minSize1");
- QTest::addColumn<int>("minSize2");
- QTest::addColumn<int>("splitterSize1");
- QTest::addColumn<int>("splitterSize2");
- QTest::addColumn<int>("expected1");
- QTest::addColumn<int>("expected2");
- QTest::addColumn<bool>("collapse1");
- QTest::addColumn<bool>("collapse2");
- QTest::addColumn<bool>("childrencollapse");
- QTest::addColumn<int>("resizeMode1");
- QTest::addColumn<int>("resizeMode2");
- QTest::newRow("ok00") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok01") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok02") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok03") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok04") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok05") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok06") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok07") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok08") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok09") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok10") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
-
- QTest::newRow("ok20") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok21") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok22") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok23") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok24") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok25") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok26") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok27") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok28") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok29") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok30") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Auto;
- QTest::newRow("ok40") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok41") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok42") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok43") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok44") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok45") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok46") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok47") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok48") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok49") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok50") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
-
- QTest::newRow("ok60") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok61") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok62") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok63") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok64") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok65") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok66") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok67") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok68") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok69") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
- QTest::newRow("ok70") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Auto;
-
- QTest::newRow("ok80") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok81") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok82") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok83") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok84") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok85") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok86") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok87") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok88") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok89") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok90") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
-
- QTest::newRow("ok100") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok101") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok102") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok103") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok104") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok105") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok106") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok107") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok108") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok109") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
- QTest::newRow("ok110") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::Stretch;
-
- QTest::newRow("ok120") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok121") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok122") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok123") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok124") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok125") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok126") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok127") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok128") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok129") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok130") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
-
- QTest::newRow("ok140") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok141") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok142") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok143") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok144") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok145") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok146") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok147") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok148") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok149") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok150") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Auto;
- QTest::newRow("ok160") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok161") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok162") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok163") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok164") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok165") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok166") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok167") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok168") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok169") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok170") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok180") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok181") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok182") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok183") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok184") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok185") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok186") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok187") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok188") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok189") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok190") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::Auto << (int)QSplitter::KeepSize;
- QTest::newRow("ok200") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok201") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok202") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok203") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok204") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok205") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok206") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok207") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok208") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok209") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok210") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok220") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok221") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok222") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok223") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok224") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok225") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok226") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok227") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok228") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok229") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok230") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::Stretch;
- QTest::newRow("ok240") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok241") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok242") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok243") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok244") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok245") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok246") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok247") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok248") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok249") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok250") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok260") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok261") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok262") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok263") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok264") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok265") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok266") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok267") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok268") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok269") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok270") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::Stretch << (int)QSplitter::KeepSize;
- QTest::newRow("ok280") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok281") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok282") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok283") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok284") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok285") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok286") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok287") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok288") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok289") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok290") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok300") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok301") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok302") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok303") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok304") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok305") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok306") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok307") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok308") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok309") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok310") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::Stretch;
- QTest::newRow("ok320") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok321") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok322") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok323") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok324") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok325") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok326") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok327") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok328") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok329") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok330") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)true
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok340") << 100 << 50 << 100 << 300 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok341") << 100 << 100 << 50 << 350 << 100 << 300
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok342") << 100 << 100 << 350 << 50 << 300 << 100
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok343") << 200 << 200 << 350 << 50 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok344") << 200 << 200 << 200 << 200 << 200 << 200
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok345") << 200 << 200 << 0 << 350 << 0 << 400
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok346") << 200 << 200 << 350 << 0 << 400 << 0
- << (bool)true << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok347") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)true << (bool)false << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok348") << 200 << 200 << 350 << 0 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok349") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)true << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
- QTest::newRow("ok350") << 200 << 200 << 0 << 350 << 200 << 200
- << (bool)false << (bool)false << (bool)false
- << (int)QSplitter::KeepSize << (int)QSplitter::KeepSize;
-#endif
-}
-
void tst_QSplitter::saveAndRestoreState_data()
{
saveState_data();
@@ -1340,14 +685,14 @@ void tst_QSplitter::task187373_addAbstractScrollAreas()
QFETCH(QString, className);
QFETCH(bool, addInConstructor);
QFETCH(bool, addOutsideConstructor);
- Q_ASSERT(addInConstructor || addOutsideConstructor);
+ QVERIFY(addInConstructor || addOutsideConstructor);
QSplitter *splitter = new QSplitter;
splitter->show();
- Q_ASSERT(splitter->isVisible());
+ QVERIFY(splitter->isVisible());
QAbstractScrollArea *w = task187373_createScrollArea(splitter, className, addInConstructor);
- Q_ASSERT(w);
+ QVERIFY(w);
if (addOutsideConstructor)
splitter->addWidget(w);