[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/akonadi/akonadi_next
From: Stephen Kelly <steveire () gmail ! com>
Date: 2009-09-30 15:36:54
Message-ID: 1254325014.298611.19381.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1029710 by skelly:
Disable the fetch more stuff from modeltest.
M +14 -14 modeltest.cpp
--- trunk/KDE/kdepim/akonadi/akonadi_next/modeltest.cpp #1029709:1029710
@@ -103,12 +103,12 @@
void ModelTest::nonDestructiveBasicTest()
{
Q_ASSERT ( model->buddy ( QModelIndex() ) == QModelIndex() );
- model->canFetchMore ( QModelIndex() );
+// model->canFetchMore ( QModelIndex() );
Q_ASSERT ( model->columnCount ( QModelIndex() ) >= 0 );
Q_ASSERT ( model->data ( QModelIndex() ) == QVariant() );
- fetchingMore = true;
- model->fetchMore ( QModelIndex() );
- fetchingMore = false;
+// fetchingMore = true;
+// model->fetchMore ( QModelIndex() );
+// fetchingMore = false;
Qt::ItemFlags flags = model->flags ( QModelIndex() );
Q_ASSERT ( flags == Qt::ItemIsDropEnabled || flags == 0 );
model->hasChildren ( QModelIndex() );
@@ -299,11 +299,11 @@
p = p.parent();
// For models that are dynamically populated
- if ( model->canFetchMore ( parent ) ) {
- fetchingMore = true;
- model->fetchMore ( parent );
- fetchingMore = false;
- }
+// if ( model->canFetchMore ( parent ) ) {
+// fetchingMore = true;
+// model->fetchMore ( parent );
+// fetchingMore = false;
+// }
int rows = model->rowCount ( parent );
int columns = model->columnCount ( parent );
@@ -323,11 +323,11 @@
Q_ASSERT ( model->hasIndex ( rows, 0, parent ) == false );
Q_ASSERT ( model->index(rows, 0, parent).isValid() == false );
for ( int r = 0; r < rows; ++r ) {
- if ( model->canFetchMore ( parent ) ) {
- fetchingMore = true;
- model->fetchMore ( parent );
- fetchingMore = false;
- }
+// if ( model->canFetchMore ( parent ) ) {
+// fetchingMore = true;
+// model->fetchMore ( parent );
+// fetchingMore = false;
+// }
Q_ASSERT ( model->hasIndex ( r, columns, parent ) == false );
Q_ASSERT ( model->index(r, columns, parent).isValid() == false );
for ( int c = 0; c < columns; ++c ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic