diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index 479d61a..2795db6 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -20,7 +20,6 @@ ecm_add_tests( kdescendantsproxymodeltest.cpp kextracolumnsproxymodeltest.cpp klinkitemselectionmodeltest.cpp - testmodelqueuedconnections.cpp kselectionproxymodeltest.cpp kmodelindexproxymappertest.cpp krecursivefilterproxymodeltest.cpp diff --git a/autotests/testmodelqueuedconnections.cpp b/autotests/testmodelqueuedconnections.cpp deleted file mode 100644 index 83cf039..0000000 --- a/autotests/testmodelqueuedconnections.cpp +++ /dev/null @@ -1,79 +0,0 @@ -/* - Copyright (c) 2009 Stephen Kelly - - This library is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published by - the Free Software Foundation; either version 2 of the License, or (at your - option) any later version. - - This library is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public - License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. -*/ - -#include -#include -#include -#include - -#include - -#include "dynamictreemodel.h" - -class ModelQueuedConnectionsTest : public QObject -{ - Q_OBJECT -public Q_SLOTS: - void rowsInserted(const QModelIndex &parent, int start, int end) - { - QModelIndex idx; - const int column = 0; - for (int row = start; row <= end; ++row) { - idx = m_rootModel->index(row, column, parent); - qDebug() << idx << idx.data(); - QEXPECT_FAIL("", "Can't use Queued connections with models", Continue); - QVERIFY(idx.isValid()); - } - - m_eventLoop->exit(); - - } - -private Q_SLOTS: - - void initTestCase() - { - m_rootModel = new DynamicTreeModel(this); - m_eventLoop = new QEventLoop(this); - } - - void testInsertAndRemove() - { - ModelInsertAndRemoveQueuedCommand *insAndRem = new ModelInsertAndRemoveQueuedCommand(m_rootModel, this); - - connect(m_rootModel, SIGNAL(rowsInserted(QModelIndex,int,int)), - SLOT(rowsInserted(QModelIndex,int,int))); - - insAndRem->setStartRow(0); - insAndRem->setEndRow(9); - insAndRem->doCommand(); - - m_eventLoop->exec(); - - } - -private: - DynamicTreeModel *m_rootModel; - QEventLoop *m_eventLoop; - -}; - -QTEST_MAIN(ModelQueuedConnectionsTest) -#include "testmodelqueuedconnections.moc" -