diff options
| author | Tannin <devnull@localhost> | 2013-07-13 10:10:46 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-07-13 10:10:46 +0200 |
| commit | 8d34ae34135cfd495556a059c449a5f11ca6212c (patch) | |
| tree | 555ffc51d1e084ac148ccb4b928898ab1ed4fc62 /src/qtgroupingproxy.cpp | |
| parent | 849a0a0ef40c9fa1feb15b880aa52fccdd84f234 (diff) | |
- some fixes to the refreshing behaviour
- "fix" buttons in problems dialog are now actually functional
- python proxy now has diagnosis functionality to warn user if correct proxy version is not available
- python proxy now has a configurable python path
Diffstat (limited to 'src/qtgroupingproxy.cpp')
| -rw-r--r-- | src/qtgroupingproxy.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/qtgroupingproxy.cpp b/src/qtgroupingproxy.cpp index f62d45d3..45ff192b 100644 --- a/src/qtgroupingproxy.cpp +++ b/src/qtgroupingproxy.cpp @@ -215,10 +215,7 @@ QtGroupingProxy::buildTree() QList<int>
QtGroupingProxy::addSourceRow( const QModelIndex &idx )
{
- // TODO: modeltest reports a discrepance between the "rowAboutToBeInserted" and "rowInserted" events
-
QList<int> updatedGroups;
-
QList<RowData> groupData = belongsTo( idx );
//an empty list here means it's supposed to go in root.
@@ -265,7 +262,6 @@ QtGroupingProxy::addSourceRow( const QModelIndex &idx ) updatedGroups << updatedGroup;
}
-
//update m_groupHash to the new source-model layout (one row added)
QMutableHashIterator<quint32, QList<int> > i( m_groupHash );
while( i.hasNext() )
@@ -290,9 +286,7 @@ QtGroupingProxy::addSourceRow( const QModelIndex &idx ) if( updatedGroups.contains( i.key() ) )
{
//the row needs to be added to this group
- beginInsertRows( index( i.key() ), insertedProxyRow, insertedProxyRow );
groupList.insert( insertedProxyRow, idx.row() );
- endInsertRows();
}
}
@@ -337,11 +331,13 @@ QModelIndex QtGroupingProxy::index( int row, int column, const QModelIndex &parent ) const
{
// qDebug() << "index requested for: (" << row << "," << column << "), " << parent;
- if( !hasIndex(row, column, parent) )
+ if( !hasIndex(row, column, parent) ) {
return QModelIndex();
+ }
- if( parent.column() > 0 )
+ if( parent.column() > 0 ) {
return QModelIndex();
+ }
/* We save the instructions to make the parent of the index in a struct.
* The place of the struct in the list is stored in the internalId
|
