mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-04-01 02:42:39 +08:00
Added DragPreviewIsDynamic section to user-guide.md
This commit is contained in:
parent
a083d778bd
commit
2be2f2bc6f
@ -564,7 +564,8 @@ CMainWindow::CMainWindow(QWidget *parent) :
|
|||||||
// CDockManager::setConfigFlag(CDockManager::HideSingleCentralWidgetTitleBar, true);
|
// CDockManager::setConfigFlag(CDockManager::HideSingleCentralWidgetTitleBar, true);
|
||||||
|
|
||||||
// Now create the dock manager and its content
|
// 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);
|
d->DockManager = new CDockManager(this);
|
||||||
|
|
||||||
// uncomment the following line to have the old style where the dock
|
// uncomment the following line to have the old style where the dock
|
||||||
|
BIN
doc/dynamic_drag_preview.gif
Normal file
BIN
doc/dynamic_drag_preview.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 763 KiB |
@ -12,6 +12,7 @@
|
|||||||
- [`AllTabsHaveCloseButton`](#alltabshaveclosebutton)
|
- [`AllTabsHaveCloseButton`](#alltabshaveclosebutton)
|
||||||
- [`RetainTabSizeWhenCloseButtonHidden`](#retaintabsizewhenclosebuttonhidden)
|
- [`RetainTabSizeWhenCloseButtonHidden`](#retaintabsizewhenclosebuttonhidden)
|
||||||
- [`OpaqueUndocking`](#opaqueundocking)
|
- [`OpaqueUndocking`](#opaqueundocking)
|
||||||
|
- [`DragPreviewIsDynamic`](#dragpreviewisdynamic)
|
||||||
|
|
||||||
## Configuration Flags
|
## Configuration Flags
|
||||||
|
|
||||||
@ -156,3 +157,17 @@ explicitely, you can do this by setting the predefined configuration flags
|
|||||||
```c++
|
```c++
|
||||||
CDockManager::setConfigFlags(CDockManager::DefaultNonOpaqueConfig);
|
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);
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user