Added documentation for FloatingContainerHasWidgetTitle flag

This commit is contained in:
Uwe Kindler 2020-04-27 08:58:50 +02:00
parent 842d417e8d
commit ef855e3843
5 changed files with 12 additions and 1 deletions

View File

@ -522,7 +522,7 @@ CMainWindow::CMainWindow(QWidget *parent) :
{ {
using namespace ads; using namespace ads;
d->ui.setupUi(this); d->ui.setupUi(this);
setWindowTitle(QApplication::instance()->applicationName());
d->createActions(); d->createActions();
// uncomment the following line if the tab close button should be // uncomment the following line if the tab close button should be

View File

@ -41,6 +41,7 @@ int main(int argc, char *argv[])
#endif #endif
std::shared_ptr<int> b; std::shared_ptr<int> b;
QApplication a(argc, argv); QApplication a(argc, argv);
a.setApplicationName("Advanced Docking System Demo");
a.setQuitOnLastWindowClosed(true); a.setQuitOnLastWindowClosed(true);
QFile StyleSheetFile(":/adsdemo/app.css"); QFile StyleSheetFile(":/adsdemo/app.css");

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@ -20,6 +20,7 @@
- [`DockAreaHasTabsMenuButton`](#dockareahastabsmenubutton) - [`DockAreaHasTabsMenuButton`](#dockareahastabsmenubutton)
- [`DockAreaHideDisabledButtons`](#dockareahidedisabledbuttons) - [`DockAreaHideDisabledButtons`](#dockareahidedisabledbuttons)
- [`DockAreaDynamicTabsMenuButtonVisibility`](#dockareadynamictabsmenubuttonvisibility) - [`DockAreaDynamicTabsMenuButtonVisibility`](#dockareadynamictabsmenubuttonvisibility)
- [`FloatingContainerHasWidgetTitle`](#floatingcontainerhaswidgettitle)
## Configuration Flags ## Configuration Flags
@ -255,3 +256,12 @@ only when it is required - that means, if the tabs are elided.
If the tabs are not elided, the tabs menu button is hidden. If the tabs are not elided, the tabs menu button is hidden.
![DockAreaDynamicTabsMenuButtonVisibility false](cfg_flag_DockAreaDynamicTabsMenuButtonVisibility_true_hidden.png) ![DockAreaDynamicTabsMenuButtonVisibility false](cfg_flag_DockAreaDynamicTabsMenuButtonVisibility_true_hidden.png)
### `FloatingContainerHasWidgetTitle`
If set (default), the Floating Widget window title reflects the title of the
current dock widget.
![FloatingContainerHasWidgetTitle true](cfg_flag_FloatingContainerHasWidgetTitle_true.png)
otherwise it displays application name as window title.