mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-04-01 02:42:39 +08:00
Allow disabling of internal stylesheet.
This commit is contained in:
parent
a2b07fd97f
commit
90836363f6
@ -396,7 +396,7 @@ void DockManagerPrivate::addActionToMenu(QAction* Action, QMenu* Menu, bool Inse
|
||||
|
||||
|
||||
//============================================================================
|
||||
CDockManager::CDockManager(QWidget *parent) :
|
||||
CDockManager::CDockManager(QWidget *parent, bool useInternalStyleSheet) :
|
||||
CDockContainerWidget(this, parent),
|
||||
d(new DockManagerPrivate(this))
|
||||
{
|
||||
@ -411,7 +411,10 @@ CDockManager::CDockManager(QWidget *parent) :
|
||||
d->DockAreaOverlay = new CDockOverlay(this, CDockOverlay::ModeDockAreaOverlay);
|
||||
d->ContainerOverlay = new CDockOverlay(this, CDockOverlay::ModeContainerOverlay);
|
||||
d->Containers.append(this);
|
||||
d->loadStylesheet();
|
||||
if (useInternalStyleSheet)
|
||||
{
|
||||
d->loadStylesheet();
|
||||
}
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
|
@ -130,10 +130,12 @@ public:
|
||||
* Default Constructor.
|
||||
* If the given parent is a QMainWindow, the dock manager sets itself as the
|
||||
* central widget.
|
||||
* Loading of the internal stylesheet can be skipped by setting
|
||||
* useInternalStyleSheet to false.
|
||||
* Before you create any dock widgets, you should properly setup the
|
||||
* configuration flags via setConfigFlags()
|
||||
*/
|
||||
CDockManager(QWidget* parent = 0);
|
||||
CDockManager(QWidget* parent = 0, bool useInternalStyleSheet = true);
|
||||
|
||||
/**
|
||||
* Virtual Destructor
|
||||
|
Loading…
Reference in New Issue
Block a user