1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-04-18 03:14:45 +08:00

Revert "Allow disabling of internal stylesheet."

This commit is contained in:
Nick D'Ademo 2019-09-10 10:39:15 +08:00 committed by GitHub
parent a4d06923f1
commit 7b94eb9bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -396,7 +396,7 @@ void DockManagerPrivate::addActionToMenu(QAction* Action, QMenu* Menu, bool Inse
//============================================================================ //============================================================================
CDockManager::CDockManager(QWidget *parent, bool useInternalStyleSheet) : CDockManager::CDockManager(QWidget *parent) :
CDockContainerWidget(this, parent), CDockContainerWidget(this, parent),
d(new DockManagerPrivate(this)) d(new DockManagerPrivate(this))
{ {
@ -411,11 +411,8 @@ CDockManager::CDockManager(QWidget *parent, bool useInternalStyleSheet) :
d->DockAreaOverlay = new CDockOverlay(this, CDockOverlay::ModeDockAreaOverlay); d->DockAreaOverlay = new CDockOverlay(this, CDockOverlay::ModeDockAreaOverlay);
d->ContainerOverlay = new CDockOverlay(this, CDockOverlay::ModeContainerOverlay); d->ContainerOverlay = new CDockOverlay(this, CDockOverlay::ModeContainerOverlay);
d->Containers.append(this); d->Containers.append(this);
if (useInternalStyleSheet)
{
d->loadStylesheet(); d->loadStylesheet();
} }
}
//============================================================================ //============================================================================
CDockManager::~CDockManager() CDockManager::~CDockManager()

View File

@ -130,12 +130,10 @@ public:
* Default Constructor. * Default Constructor.
* If the given parent is a QMainWindow, the dock manager sets itself as the * If the given parent is a QMainWindow, the dock manager sets itself as the
* central widget. * 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 * Before you create any dock widgets, you should properly setup the
* configuration flags via setConfigFlags() * configuration flags via setConfigFlags()
*/ */
CDockManager(QWidget* parent = 0, bool useInternalStyleSheet = true); CDockManager(QWidget* parent = 0);
/** /**
* Virtual Destructor * Virtual Destructor