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

Hide the drop indicators #334

Closed
hannescmarits opened this issue Jan 16, 2023 · 3 comments
Closed

Hide the drop indicators #334

hannescmarits opened this issue Jan 16, 2023 · 3 comments
Assignees

Comments

@hannescmarits
Copy link

Hi,
one of our customers mentioned the desire to hide the drop indicators while moving a floating window.
Taking a look at Visual Studio revealed that it provides such functionality.
Pressing the CTRL key, while a floating window is moved hides the drop indicators.
Would be nice if such functionality would also be offered by KDDockWidgets.
Regards
Hannes

@iamsergio iamsergio self-assigned this Jan 17, 2023
@iamsergio
Copy link
Contributor

Hi,

We expose API so applications can do this.

Call this once in main:

KDDockWidgets::Config::setDropIndicatorAllowedFunc() , where inside the provided lamda you can check if the ctrl key is pressed and return false;

or call this whenever ctrl is pressed

KDDockWidgets::Config::setDropIndicatorsInhibited(bool);

@iamsergio
Copy link
Contributor

being continued in #337

@hannescmarits
Copy link
Author

hannescmarits commented Jan 24, 2023 via email

iamsergio added a commit that referenced this issue Feb 7, 2023
It required the user to move the mouse, which was OK but we can do
better.

Now, KDDW will automaticallt re-show the drop indicators if we're in
the middle of a drag operation.

Required for issue #334 and issue #337
iamsergio added a commit that referenced this issue Feb 7, 2023
Fixes issue #334 and issue #337.
Won't add this directly into the library, as each project
has different requirements regarding this.

It's easy to do in application code though.
iamsergio added a commit that referenced this issue Mar 8, 2023
It required the user to move the mouse, which was OK but we can do
better.

Now, KDDW will automaticallt re-show the drop indicators if we're in
the middle of a drag operation.

Required for issue #334 and issue #337

(cherry-picked from commit 57aded2)
iamsergio added a commit that referenced this issue Mar 8, 2023
Fixes issue #334 and issue #337.
Won't add this directly into the library, as each project
has different requirements regarding this.

It's easy to do in application code though.

(cherry picked from commit af455bb)
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

No branches or pull requests

2 participants