Fix some incorrect super class methods called

This commit is contained in:
Nyall Dawson 2023-03-08 11:20:00 +10:00
parent 9d6e8e2244
commit e0e0502f00
3 changed files with 3 additions and 3 deletions

View File

@ -1928,7 +1928,7 @@ bool QgsLayoutMapItemBlocksLabelsModel::setData( const QModelIndex &index, const
Qt::ItemFlags QgsLayoutMapItemBlocksLabelsModel::flags( const QModelIndex &index ) const
{
Qt::ItemFlags flags = QAbstractItemModel::flags( index );
Qt::ItemFlags flags = QSortFilterProxyModel::flags( index );
if ( ! index.isValid() )
{

View File

@ -186,7 +186,7 @@ void QgsTemporalControllerWidget::keyPressEvent( QKeyEvent *e )
{
togglePause();
}
QWidget::keyPressEvent( e );
QgsPanelWidget::keyPressEvent( e );
}
void QgsTemporalControllerWidget::aboutToShowRangeMenu()

View File

@ -118,7 +118,7 @@ Qt::ItemFlags DockModel::flags( const QModelIndex &index ) const
if ( !index.isValid() )
return Qt::ItemIsEnabled;
Qt::ItemFlags flags = QAbstractItemModel::flags( index );
Qt::ItemFlags flags = QAbstractTableModel::flags( index );
return flags;
}