Skip to content

Commit 27bbe9f

Browse files
Added additional configuration flags to user-guide.md
1 parent 92dbcec commit 27bbe9f

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

demo/MainWindow.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,6 @@ CMainWindow::CMainWindow(QWidget *parent) :
564564
// CDockManager::setConfigFlag(CDockManager::HideSingleCentralWidgetTitleBar, true);
565565

566566
// Now create the dock manager and its content
567-
CDockManager::setConfigFlag(CDockManager::DragPreviewIsDynamic, true);
568-
CDockManager::setConfigFlag(CDockManager::DragPreviewShowsContentPixmap, false);
569567
d->DockManager = new CDockManager(this);
570568

571569
// uncomment the following line to have the old style where the dock
19.9 KB
Loading
14.7 KB
Loading
17.3 KB
Loading

doc/user-guide.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
- [`RetainTabSizeWhenCloseButtonHidden`](#retaintabsizewhenclosebuttonhidden)
1414
- [`OpaqueUndocking`](#opaqueundocking)
1515
- [`DragPreviewIsDynamic`](#dragpreviewisdynamic)
16+
- [`DragPreviewShowsContentPixmap`](#dragpreviewshowscontentpixmap)
17+
- [`DragPreviewHasWindowFrame`](#dragpreviewhaswindowframe)
1618

1719
## Configuration Flags
1820

@@ -172,4 +174,25 @@ CDockManager::setConfigFlag(CDockManager::DragPreviewShowsContentPixmap, false);
172174
CDockManager::setConfigFlag(CDockManager::DragPreviewHasWindowFrame, false);
173175
```
174176

175-
![DragPreviewIsDynamic true](dynamic_drag_preview.gif)
177+
![DragPreviewIsDynamic true](dynamic_drag_preview.gif)
178+
179+
### `DragPreviewShowsContentPixmap`
180+
181+
If non-opaque undocking is enabled, the created drag preview window shows a
182+
copy of the content of the dock widget / dock are that is dragged, if this
183+
flag is enabled (default).
184+
185+
![DragPreviewShowsContentPixmap true](cfg_flag_DragPreviewShowsContentPixmap_true.png)
186+
187+
If this flag is disabled, the drag preview is only a transparent `QRubberBand`
188+
like window without any content.
189+
190+
![DragPreviewShowsContentPixmap true](cfg_flag_DragPreviewShowsContentPixmap_false.png)
191+
192+
### `DragPreviewHasWindowFrame`
193+
194+
If non-opaque undocking is enabled, then this flag configures if the drag
195+
preview is frameless (default) or looks like a real window. If it is enabled,
196+
then the drag preview is a transparent window with a system window frame.
197+
198+
![DragPreviewHasWindowFrame true](cfg_flag_DragPreviewHasWindowFrame_true.png)

0 commit comments

Comments
 (0)