@@ -104,26 +104,26 @@ void TestQgsAppBrowserProviders::testProjectItemCreation()
104
104
{
105
105
child->populate ( true );
106
106
107
- QCOMPARE ( child->children ().count (), 4 );
108
- QVERIFY ( dynamic_cast < QgsProjectLayerTreeGroupItem * >( child->children ().at ( 0 ) ) );
109
- QCOMPARE ( child->children ().at ( 0 )->name (), QStringLiteral ( " groupwithoutshortname" ) );
107
+ QCOMPARE ( child->children ().count (), 7 );
108
+ QVERIFY ( dynamic_cast < QgsProjectLayerTreeGroupItem * >( child->children ().at ( 2 ) ) );
109
+ QCOMPARE ( child->children ().at ( 2 )->name (), QStringLiteral ( " groupwithoutshortname" ) );
110
110
111
- QCOMPARE ( child->children ().at ( 0 )->children ().count (), 1 );
112
- QVERIFY ( dynamic_cast < QgsLayerItem * >( child->children ().at ( 0 )->children ().at ( 0 ) ) );
113
- QCOMPARE ( child->children ().at ( 0 )->children ().at ( 0 )->name (), QStringLiteral ( " testlayer3" ) );
111
+ QCOMPARE ( child->children ().at ( 2 )->children ().count (), 1 );
112
+ QVERIFY ( dynamic_cast < QgsLayerItem * >( child->children ().at ( 2 )->children ().at ( 0 ) ) );
113
+ QCOMPARE ( child->children ().at ( 2 )->children ().at ( 0 )->name (), QStringLiteral ( " testlayer3" ) );
114
114
115
- QVERIFY ( dynamic_cast < QgsProjectLayerTreeGroupItem * >( child->children ().at ( 1 ) ) );
116
- QCOMPARE ( child->children ().at ( 1 )->name (), QStringLiteral ( " groupwithshortname" ) );
115
+ QVERIFY ( dynamic_cast < QgsProjectLayerTreeGroupItem * >( child->children ().at ( 3 ) ) );
116
+ QCOMPARE ( child->children ().at ( 3 )->name (), QStringLiteral ( " groupwithshortname" ) );
117
117
118
- QCOMPARE ( child->children ().at ( 1 )->children ().count (), 1 );
119
- QVERIFY ( dynamic_cast < QgsLayerItem * >( child->children ().at ( 1 )->children ().at ( 0 ) ) );
120
- QCOMPARE ( child->children ().at ( 1 )->children ().at ( 0 )->name (), QStringLiteral ( " testlayer2" ) );
118
+ QCOMPARE ( child->children ().at ( 3 )->children ().count (), 1 );
119
+ QVERIFY ( dynamic_cast < QgsLayerItem * >( child->children ().at ( 3 )->children ().at ( 0 ) ) );
120
+ QCOMPARE ( child->children ().at ( 3 )->children ().at ( 0 )->name (), QStringLiteral ( " testlayer2" ) );
121
121
122
- QVERIFY ( dynamic_cast < QgsLayerItem * >( child->children ().at ( 2 ) ) );
123
- QCOMPARE ( child->children ().at ( 2 )->name (), QStringLiteral ( " testlayer" ) );
122
+ QVERIFY ( dynamic_cast < QgsLayerItem * >( child->children ().at ( 5 ) ) );
123
+ QCOMPARE ( child->children ().at ( 5 )->name (), QStringLiteral ( " testlayer" ) );
124
124
125
- QVERIFY ( dynamic_cast < QgsLayerItem * >( child->children ().at ( 3 ) ) );
126
- QCOMPARE ( child->children ().at ( 3 )->name (), QStringLiteral ( " testlayer \u00E8\u00E9 " ) );
125
+ QVERIFY ( dynamic_cast < QgsLayerItem * >( child->children ().at ( 6 ) ) );
126
+ QCOMPARE ( child->children ().at ( 6 )->name (), QStringLiteral ( " testlayer \u00E8\u00E9 " ) );
127
127
128
128
delete dirItem;
129
129
return ;
0 commit comments