mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 07:31:33 +08:00
Added DockComponentsFactory.h documentation, changed DockComponentsFactory showcase in MainWindow after discussion on GitHub
This commit is contained in:
parent
3eba02597c
commit
3efc5f2ada
@ -151,7 +151,7 @@ public:
|
|||||||
using Super = ads::CDockComponentsFactory;
|
using Super = ads::CDockComponentsFactory;
|
||||||
ads::CDockAreaTitleBar* createDockAreaTitleBar(ads::CDockAreaWidget* DockArea) const override
|
ads::CDockAreaTitleBar* createDockAreaTitleBar(ads::CDockAreaWidget* DockArea) const override
|
||||||
{
|
{
|
||||||
auto TitleBar = Super::createDockAreaTitleBar(DockArea);
|
auto TitleBar = new ads::CDockAreaTitleBar(DockArea);
|
||||||
auto CustomButton = new QToolButton(DockArea);
|
auto CustomButton = new QToolButton(DockArea);
|
||||||
CustomButton->setToolTip(QObject::tr("Help"));
|
CustomButton->setToolTip(QObject::tr("Help"));
|
||||||
CustomButton->setIcon(svgIcon(":/adsdemo/images/help_outline.svg"));
|
CustomButton->setIcon(svgIcon(":/adsdemo/images/help_outline.svg"));
|
||||||
|
@ -40,8 +40,22 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual ~CDockComponentsFactory() {}
|
virtual ~CDockComponentsFactory() {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This default implementation just creates a dock widget tab with
|
||||||
|
* new CDockWidgetTab(DockWIdget).
|
||||||
|
*/
|
||||||
virtual CDockWidgetTab* createDockWidgetTab(CDockWidget* DockWidget) const;
|
virtual CDockWidgetTab* createDockWidgetTab(CDockWidget* DockWidget) const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This default implementation just creates a dock area tab bar with
|
||||||
|
* new CDockAreaTabBar(DockArea).
|
||||||
|
*/
|
||||||
virtual CDockAreaTabBar* createDockAreaTabBar(CDockAreaWidget* DockArea) const;
|
virtual CDockAreaTabBar* createDockAreaTabBar(CDockAreaWidget* DockArea) const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This default implementation just creates a dock area title bar with
|
||||||
|
* new CDockAreaTitleBar(DockArea).
|
||||||
|
*/
|
||||||
virtual CDockAreaTitleBar* createDockAreaTitleBar(CDockAreaWidget* DockArea) const;
|
virtual CDockAreaTitleBar* createDockAreaTitleBar(CDockAreaWidget* DockArea) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user