File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ class CCustomComponentsFactory : public ads::CDockComponentsFactory
151
151
using Super = ads::CDockComponentsFactory;
152
152
ads::CDockAreaTitleBar* createDockAreaTitleBar (ads::CDockAreaWidget* DockArea) const override
153
153
{
154
- auto TitleBar = Super::createDockAreaTitleBar (DockArea);
154
+ auto TitleBar = new ads::CDockAreaTitleBar (DockArea);
155
155
auto CustomButton = new QToolButton (DockArea);
156
156
CustomButton->setToolTip (QObject::tr (" Help" ));
157
157
CustomButton->setIcon (svgIcon (" :/adsdemo/images/help_outline.svg" ));
Original file line number Diff line number Diff line change @@ -40,8 +40,22 @@ class ADS_EXPORT CDockComponentsFactory
40
40
*/
41
41
virtual ~CDockComponentsFactory () {}
42
42
43
+ /* *
44
+ * This default implementation just creates a dock widget tab with
45
+ * new CDockWidgetTab(DockWIdget).
46
+ */
43
47
virtual CDockWidgetTab* createDockWidgetTab (CDockWidget* DockWidget) const ;
48
+
49
+ /* *
50
+ * This default implementation just creates a dock area tab bar with
51
+ * new CDockAreaTabBar(DockArea).
52
+ */
44
53
virtual CDockAreaTabBar* createDockAreaTabBar (CDockAreaWidget* DockArea) const ;
54
+
55
+ /* *
56
+ * This default implementation just creates a dock area title bar with
57
+ * new CDockAreaTitleBar(DockArea).
58
+ */
45
59
virtual CDockAreaTitleBar* createDockAreaTitleBar (CDockAreaWidget* DockArea) const ;
46
60
47
61
/* *
You can’t perform that action at this time.
0 commit comments