From aa56c7b79317fb88c12fc0573fc23b6939337fe4 Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Fri, 23 Nov 2012 14:41:21 -0300 Subject: Take care of object ref internally on QMenumodel, instead of QDBusMenuModel. --- tests/client/modeltest.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'tests') diff --git a/tests/client/modeltest.cpp b/tests/client/modeltest.cpp index bc5d95e..8be92a6 100644 --- a/tests/client/modeltest.cpp +++ b/tests/client/modeltest.cpp @@ -260,21 +260,6 @@ private Q_SLOTS: delete model; } - - /* - * Test if the model is clearead after GMenuModel be destroyed - */ - void testDestroyGMenuModel() - { - GMenu *menu = g_menu_new(); - g_menu_append(menu, "test-menu0", NULL); - g_menu_append(menu, "test-menu1", NULL); - TestMenuModel model(reinterpret_cast(menu)); - QCOMPARE(model.rowCount(), 2); - - g_object_unref(menu); - QCOMPARE(model.rowCount(), 0); - } }; QTEST_MAIN(ModelTest) -- cgit v1.2.3