Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-3_3] Legend badge visual glitche + a pair of value map issues addressed #5361

Merged
merged 3 commits into from
Jun 19, 2024

Conversation

qfield-fairy
Copy link
Collaborator

Backport #5355
Authored by: @nirvn

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

{
beginInsertRows( QModelIndex(), 0, list.size() );
beginInsertRows( QModelIndex(), 0, list.size() - 1 );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: narrowing conversion from 'qsizetype' (aka 'long long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]

    beginInsertRows( QModelIndex(), 0, list.size() - 1 );
                                       ^

@@ -55,7 +55,7 @@
const QVariantMap valueMap = map.toMap();
if ( !valueMap.empty() )
{
beginInsertRows( QModelIndex(), 0, valueMap.size() );
beginInsertRows( QModelIndex(), 0, valueMap.size() - 1 );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: narrowing conversion from 'size_type' (aka 'long long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]

      beginInsertRows( QModelIndex(), 0, valueMap.size() - 1 );
                                         ^

@qfield-fairy
Copy link
Collaborator Author

@nirvn nirvn merged commit 5f15bd2 into release-3_3 Jun 19, 2024
22 of 23 checks passed
@nirvn nirvn deleted the backport-5355-to-release-3_3 branch June 19, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants