Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Qt6 container algorithm updates
  • Loading branch information
nyalldawson committed Jul 27, 2021
1 parent 61af302 commit 25b03e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -41,7 +41,7 @@ void QgsPointCloudClassifiedRendererModel::setRendererCategories( const QgsPoint
{
if ( !mCategories.empty() )
{
beginRemoveRows( QModelIndex(), 0, std::max( mCategories.size() - 1, 0 ) );
beginRemoveRows( QModelIndex(), 0, std::max< int >( mCategories.size() - 1, 0 ) );
mCategories.clear();
endRemoveRows();
}
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgscolorswatchgrid.cpp
Expand Up @@ -208,11 +208,11 @@ void QgsColorSwatchGrid::keyPressEvent( QKeyEvent *event )
//handle keyboard navigation
if ( event->key() == Qt::Key_Right )
{
mCurrentFocusBox = std::min( mCurrentFocusBox + 1, mColors.length() - 1 );
mCurrentFocusBox = std::min< int >( mCurrentFocusBox + 1, mColors.length() - 1 );
}
else if ( event->key() == Qt::Key_Left )
{
mCurrentFocusBox = std::max( mCurrentFocusBox - 1, 0 );
mCurrentFocusBox = std::max< int >( mCurrentFocusBox - 1, 0 );
}
else if ( event->key() == Qt::Key_Up )
{
Expand Down

0 comments on commit 25b03e6

Please sign in to comment.