diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-11-23 14:41:21 -0300 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-11-23 14:41:21 -0300 |
commit | aa56c7b79317fb88c12fc0573fc23b6939337fe4 (patch) | |
tree | d13cf7c507530260dccd35f6a207b4dcd3b8a313 /tests | |
parent | af103ebfb8945c903accb42944516d234fe5744c (diff) | |
download | qmenumodel-aa56c7b79317fb88c12fc0573fc23b6939337fe4.tar.gz qmenumodel-aa56c7b79317fb88c12fc0573fc23b6939337fe4.tar.bz2 qmenumodel-aa56c7b79317fb88c12fc0573fc23b6939337fe4.zip |
Take care of object ref internally on QMenumodel, instead of QDBusMenuModel.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client/modeltest.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
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<GMenuModel*>(menu)); - QCOMPARE(model.rowCount(), 2); - - g_object_unref(menu); - QCOMPARE(model.rowCount(), 0); - } }; QTEST_MAIN(ModelTest) |