Skip to content

Commit be2e2f3

Browse files
committed
Remove unimplemented setData method from QgsReportSectionModel
(cherry-picked from cd39885)
1 parent 45d30a6 commit be2e2f3

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

src/app/layout/qgsreportsectionmodel.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -180,31 +180,6 @@ QModelIndex QgsReportSectionModel::parent( const QModelIndex &index ) const
180180
return createIndex( parentSection->row(), 0, parentSection != mReport ? parentSection : nullptr );
181181
}
182182

183-
bool QgsReportSectionModel::setData( const QModelIndex &index, const QVariant &value, int role )
184-
{
185-
if ( !index.isValid() )
186-
return false;
187-
188-
QgsAbstractReportSection *section = sectionForIndex( index );
189-
( void )section;
190-
( void )value;
191-
192-
if ( role != Qt::EditRole )
193-
return false;
194-
195-
switch ( index.column() )
196-
{
197-
case 0:
198-
return false;
199-
200-
default:
201-
return false;
202-
}
203-
204-
emit dataChanged( index, index );
205-
return true;
206-
}
207-
208183
QgsAbstractReportSection *QgsReportSectionModel::sectionForIndex( const QModelIndex &index ) const
209184
{
210185
if ( !index.isValid() )

src/app/layout/qgsreportsectionmodel.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ class QgsReportSectionModel : public QAbstractItemModel
4747

4848
QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const override;
4949
QModelIndex parent( const QModelIndex &index ) const override;
50-
bool setData( const QModelIndex &index, const QVariant &value, int role = Qt::EditRole ) override;
5150
bool removeRows( int row, int count, const QModelIndex &parent = QModelIndex() ) override;
5251

5352
void addSection( const QModelIndex &parent, std::unique_ptr< QgsAbstractReportSection > section );

0 commit comments

Comments
 (0)