Install more missing _p.h headers to private/

The custom separator example is disabled for now, as we're not
installing the multisplitters headers yet
This commit is contained in:
Sergio Martins
2019-10-07 13:55:09 +01:00
parent a0d05b4e2b
commit 511a035df1
3 changed files with 18 additions and 7 deletions

View File

@@ -20,7 +20,7 @@
#include "MyFrameworkWidgetFactory.h"
#include <kddockwidgets/FrameworkWidgetFactory.h>
#include <kddockwidgets/widgets/SeparatorWidget_p.h>
//#include <kddockwidgets/widgets/SeparatorWidget_p.h>
#include <QApplication>
class MyTitleBar : public KDDockWidgets::TitleBar
@@ -60,6 +60,7 @@ public:
}
};
/*
// Inheriting from SeparatorWidget instead of Separator as it handles moving and mouse cursor changing
class MySeparator : public KDDockWidgets::SeparatorWidget
{
@@ -76,6 +77,7 @@ public:
p.fillRect(rect(), isStatic() ? Qt::black : Qt::cyan);
}
};
*/
KDDockWidgets::TitleBar * CustomWidgetFactory::createTitleBar(KDDockWidgets::Frame *frame) const
{
@@ -86,9 +88,10 @@ KDDockWidgets::TitleBar * CustomWidgetFactory::createTitleBar(KDDockWidgets::Flo
{
return new MyTitleBar(fw);
}
/*
KDDockWidgets::Separator * CustomWidgetFactory::createSeparator(KDDockWidgets::Anchor *anchor,
KDDockWidgets::QWidgetAdapter *parent) const
{
return new MySeparator(anchor, parent);
}
*/