-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
improve mouse pointer in piano roll editor #3065
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally there is a lot of random identation changes all over the PR that make it hard to review. Please fix this.
src/gui/editors/PianoRoll.cpp
Outdated
@@ -216,7 +218,7 @@ PianoRoll::PianoRoll() : | |||
m_noteEditMenu->addAction( act ); | |||
} | |||
connect( signalMapper, SIGNAL(mapped(int)), | |||
this, SLOT(changeNoteEditMode(int)) ); | |||
this, SLOT(changeNoteEditMode(int)) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is a space added here
src/gui/editors/PianoRoll.cpp
Outdated
@@ -261,32 +263,32 @@ PianoRoll::PianoRoll() : | |||
if( s_whiteKeySmallPm == NULL ) | |||
{ | |||
s_whiteKeySmallPm = new QPixmap( embed::getIconPixmap( | |||
"pr_white_key_small" ) ); | |||
"pr_white_key_small" ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are all these lines more indented
src/gui/editors/PianoRoll.cpp
Outdated
Song::Mode_PlayPattern ), | ||
m_currentPosition, this ); | ||
Engine::getSong()->getPlayPos( | ||
Song::Mode_PlayPattern ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
I'll now go and test this out |
This works nice, and feels a lot more natural. However, the automation editor is now inconsistent with this, so I guess the same thing should be done there. Other than the indentation issues, this looks ok to me. |
Fine, I'll fix it. Perhaps this should be tested on Apple and Windows, too. |
src/gui/editors/PianoRoll.cpp
Outdated
repaint(); | ||
return; | ||
} | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary white space here
@tresf can you test this on mac, please? |
You can with a cellphone or a virtual machine.
I don't see any OS-specific code, so I'm not sure why this is needed. I have MacOS Qt4 and Qt5 builds here: https://github.com/tresf/lmms/releases/tag/v1.2.0-RC2-MOUSE Test results Qt5 10.8 Homebrew build running on 10.11:
|
Because the behavior is completely different from what I see on Linux. :( |
So is this cooled down or still working in progress? I think this fix is somewhat important |
I need A video of what's happening in macOS. @simonvanderveldt? |
I would like to merge this into master, but I can not test if this works on MacOS. Can someone test this? |
Test what? I don't see any new commits since my testing on 2016-10-09 |
This works well over here.
I had a peek at the qt bug tracker but nothing popped up as an absolute fit for this case. Though there were other reports of wrong cursors displayed. @BaraMGB If this needs more testing you might wanna squash and rebase it. |
@tresf can you test please if the Qt::SizeAllCursor is shown anymore and if it's stuck on leaving the note? |
I just noticed the cursor is a bit nervous around the border to the NoteEditArea. It's a bit difficult to hit the spot where you resize and when you're doing the ActionResizeNoteEditArea the cursor is flickering. |
Just re-tested on fresh |
I'll close this out. At the moment I have no chance to debug it on a mac. Perhaps I'll find a way in the future. |
Maybe a hint in #3926 |
I can't make screenshots with mouse pointer.
This PR change the following things: