mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-24 05:22:06 +08:00
Remove auto hide feature being set by default. Add config for the default auto hide feature.
This commit is contained in:
parent
de4a59d45a
commit
8bfb98ea20
@ -3,26 +3,17 @@
|
|||||||
#include "ui_mainwindow.h"
|
#include "ui_mainwindow.h"
|
||||||
|
|
||||||
#include <QWidgetAction>
|
#include <QWidgetAction>
|
||||||
#include <QLabel>
|
|
||||||
#include <QCalendarWidget>
|
|
||||||
#include <QTreeView>
|
|
||||||
#include <QFileSystemModel>
|
#include <QFileSystemModel>
|
||||||
#include <QTableWidget>
|
#include <QTableWidget>
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QRadioButton>
|
|
||||||
#include <QPushButton>
|
|
||||||
#include <QInputDialog>
|
#include <QInputDialog>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QMessageBox>
|
|
||||||
#include <QPlainTextEdit>
|
#include <QPlainTextEdit>
|
||||||
#include <QToolBar>
|
#include <QToolBar>
|
||||||
|
|
||||||
#include "DockAreaWidget.h"
|
#include "DockAreaWidget.h"
|
||||||
#include "DockAreaTitleBar.h"
|
#include "DockAreaTitleBar.h"
|
||||||
#include "DockAreaTabBar.h"
|
|
||||||
#include "FloatingDockContainer.h"
|
|
||||||
#include "DockComponentsFactory.h"
|
|
||||||
|
|
||||||
using namespace ads;
|
using namespace ads;
|
||||||
|
|
||||||
@ -35,6 +26,7 @@ CMainWindow::CMainWindow(QWidget *parent)
|
|||||||
CDockManager::setConfigFlag(CDockManager::OpaqueSplitterResize, true);
|
CDockManager::setConfigFlag(CDockManager::OpaqueSplitterResize, true);
|
||||||
CDockManager::setConfigFlag(CDockManager::XmlCompressionEnabled, false);
|
CDockManager::setConfigFlag(CDockManager::XmlCompressionEnabled, false);
|
||||||
CDockManager::setConfigFlag(CDockManager::FocusHighlighting, true);
|
CDockManager::setConfigFlag(CDockManager::FocusHighlighting, true);
|
||||||
|
CDockManager::setConfigFlag(CDockManager::DefaultDockContainerConfig, true);
|
||||||
DockManager = new CDockManager(this);
|
DockManager = new CDockManager(this);
|
||||||
|
|
||||||
// Set central widget
|
// Set central widget
|
||||||
|
@ -210,8 +210,7 @@ public:
|
|||||||
|
|
||||||
DefaultDockAreaButtons = DockAreaHasCloseButton
|
DefaultDockAreaButtons = DockAreaHasCloseButton
|
||||||
| DockAreaHasUndockButton
|
| DockAreaHasUndockButton
|
||||||
| DockAreaHasTabsMenuButton
|
| DockAreaHasTabsMenuButton, ///< default configuration of dock area title bar buttons
|
||||||
| DockAreaHasAutoHideButton,///< default configuration of dock area title bar buttons
|
|
||||||
|
|
||||||
DefaultDockContainerSideBars = DockContainerHasLeftSideBar
|
DefaultDockContainerSideBars = DockContainerHasLeftSideBar
|
||||||
| DockContainerHasRightSideBar, ///< the default configuration for left and right side bars
|
| DockContainerHasRightSideBar, ///< the default configuration for left and right side bars
|
||||||
|
Loading…
Reference in New Issue
Block a user