Skip to content

Commit ef855e3

Browse files
Added documentation for FloatingContainerHasWidgetTitle flag
1 parent 842d417 commit ef855e3

File tree

5 files changed

+12
-1
lines changed

5 files changed

+12
-1
lines changed

demo/MainWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ CMainWindow::CMainWindow(QWidget *parent) :
522522
{
523523
using namespace ads;
524524
d->ui.setupUi(this);
525-
525+
setWindowTitle(QApplication::instance()->applicationName());
526526
d->createActions();
527527

528528
// uncomment the following line if the tab close button should be

demo/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ int main(int argc, char *argv[])
4141
#endif
4242
std::shared_ptr<int> b;
4343
QApplication a(argc, argv);
44+
a.setApplicationName("Advanced Docking System Demo");
4445
a.setQuitOnLastWindowClosed(true);
4546

4647
QFile StyleSheetFile(":/adsdemo/app.css");
Loading
Loading

doc/user-guide.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- [`DockAreaHasTabsMenuButton`](#dockareahastabsmenubutton)
2121
- [`DockAreaHideDisabledButtons`](#dockareahidedisabledbuttons)
2222
- [`DockAreaDynamicTabsMenuButtonVisibility`](#dockareadynamictabsmenubuttonvisibility)
23+
- [`FloatingContainerHasWidgetTitle`](#floatingcontainerhaswidgettitle)
2324

2425
## Configuration Flags
2526

@@ -255,3 +256,12 @@ only when it is required - that means, if the tabs are elided.
255256
If the tabs are not elided, the tabs menu button is hidden.
256257

257258
![DockAreaDynamicTabsMenuButtonVisibility false](cfg_flag_DockAreaDynamicTabsMenuButtonVisibility_true_hidden.png)
259+
260+
### `FloatingContainerHasWidgetTitle`
261+
262+
If set (default), the Floating Widget window title reflects the title of the
263+
current dock widget.
264+
265+
![FloatingContainerHasWidgetTitle true](cfg_flag_FloatingContainerHasWidgetTitle_true.png)
266+
267+
otherwise it displays application name as window title.

0 commit comments

Comments
 (0)