Added DragPreviewIsDynamic section to user-guide.md

This commit is contained in:
Uwe Kindler 2020-04-15 20:18:20 +02:00
parent a083d778bd
commit 2be2f2bc6f
3 changed files with 17 additions and 1 deletions

View File

@ -564,7 +564,8 @@ CMainWindow::CMainWindow(QWidget *parent) :
// CDockManager::setConfigFlag(CDockManager::HideSingleCentralWidgetTitleBar, true);
// Now create the dock manager and its content
CDockManager::setConfigFlag(CDockManager::DockAreaHasCloseButton, true);
CDockManager::setConfigFlag(CDockManager::DragPreviewIsDynamic, true);
CDockManager::setConfigFlag(CDockManager::DragPreviewShowsContentPixmap, false);
d->DockManager = new CDockManager(this);
// uncomment the following line to have the old style where the dock

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 KiB

View File

@ -12,6 +12,7 @@
- [`AllTabsHaveCloseButton`](#alltabshaveclosebutton)
- [`RetainTabSizeWhenCloseButtonHidden`](#retaintabsizewhenclosebuttonhidden)
- [`OpaqueUndocking`](#opaqueundocking)
- [`DragPreviewIsDynamic`](#dragpreviewisdynamic)
## Configuration Flags
@ -156,3 +157,17 @@ explicitely, you can do this by setting the predefined configuration flags
```c++
CDockManager::setConfigFlags(CDockManager::DefaultNonOpaqueConfig);
```
### `DragPreviewIsDynamic`
If non-opaque undocking is enabled, this flag defines the behavior of the drag
preview window. If this flag is enabled, then it will give the user the
impression, that the floating drag preview is dynamically adjusted to the drop
area. In order to give the perfect impression, you should disable the flags
`DragPreviewShowsContentPixmap` and `DragPreviewHasWindowFrame`.
```c++
CDockManager::setConfigFlag(CDockManager::DragPreviewIsDynamic, true);
CDockManager::setConfigFlag(CDockManager::DragPreviewShowsContentPixmap, false);
CDockManager::setConfigFlag(CDockManager::DragPreviewHasWindowFrame, false);
```