Skip to content

Commit e0e0502

Browse files
committedMar 8, 2023
Fix some incorrect super class methods called
1 parent 9d6e8e2 commit e0e0502

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎src/gui/layout/qgslayoutmapwidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,7 @@ bool QgsLayoutMapItemBlocksLabelsModel::setData( const QModelIndex &index, const
19281928

19291929
Qt::ItemFlags QgsLayoutMapItemBlocksLabelsModel::flags( const QModelIndex &index ) const
19301930
{
1931-
Qt::ItemFlags flags = QAbstractItemModel::flags( index );
1931+
Qt::ItemFlags flags = QSortFilterProxyModel::flags( index );
19321932

19331933
if ( ! index.isValid() )
19341934
{

‎src/gui/qgstemporalcontrollerwidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void QgsTemporalControllerWidget::keyPressEvent( QKeyEvent *e )
186186
{
187187
togglePause();
188188
}
189-
QWidget::keyPressEvent( e );
189+
QgsPanelWidget::keyPressEvent( e );
190190
}
191191

192192
void QgsTemporalControllerWidget::aboutToShowRangeMenu()

‎src/plugins/topology/dockModel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Qt::ItemFlags DockModel::flags( const QModelIndex &index ) const
118118
if ( !index.isValid() )
119119
return Qt::ItemIsEnabled;
120120

121-
Qt::ItemFlags flags = QAbstractItemModel::flags( index );
121+
Qt::ItemFlags flags = QAbstractTableModel::flags( index );
122122
return flags;
123123
}
124124

0 commit comments

Comments
 (0)
Please sign in to comment.