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

Lock map rotation #5266

Merged
merged 8 commits into from
May 24, 2024
Merged

Lock map rotation #5266

merged 8 commits into from
May 24, 2024

Conversation

mohsenD98
Copy link
Collaborator

So in this PR i am going to add an option that enables or disables the mapRotation, so if user don't wants rotation it wont rotate accidentally.

In first step I merged 3 rows in canvasMenu. previously there was 3 row showing X, Y, Copy coordinates. Now we show all the info in one row.

In second step I also added this option in Settings page.

Previous:

image

Current:

image

Settings:

image

lets open some space for "lock map rotation" by merging 3 rows in one.
also i must set proper icons for lock and unlock states.
Instead of using icon and toggle it we just use checkbox.
@mohsenD98 mohsenD98 requested a review from nirvn May 23, 2024 16:49
@mohsenD98 mohsenD98 self-assigned this May 23, 2024
@qfield-fairy
Copy link
Collaborator

qfield-fairy commented May 23, 2024

@mohsenD98 mohsenD98 changed the title Lock map rotation WIP: Lock map rotation May 23, 2024
@mohsenD98 mohsenD98 changed the title WIP: Lock map rotation Lock map rotation May 23, 2024
displayToast(qsTr('Coordinates copied to clipboard'));
}
checkable: true
checked: qfieldSettings.enableMapRotation
Copy link
Member

Choose a reason for hiding this comment

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

The screenshot shows an alignment issue between icons and the checkbox. This should do it:

Suggested change
checked: qfieldSettings.enableMapRotation
checked: qfieldSettings.enableMapRotation
indicator.height: 20
indicator.width: 20
indicator.implicitHeight: 24
indicator.implicitWidth: 24

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok thank you..

result:

image

@nirvn nirvn enabled auto-merge May 24, 2024 07:24
@nirvn nirvn merged commit 100983f into master May 24, 2024
23 checks passed
@nirvn nirvn deleted the lock-map-rotation branch May 24, 2024 07:56
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.

4 participants