Added DockWidgetBase::setUserType(int)
This is an opaque value which KDDW won't try to interpret or do anything with it other than forward it to the FrameworkWidgetFactory. Which if specialized by the user he can have different title bars for different said "dock widget types"
This commit is contained in:
@@ -54,9 +54,9 @@ FrameworkWidgetFactory::~FrameworkWidgetFactory()
|
||||
}
|
||||
|
||||
#ifdef KDDOCKWIDGETS_QTWIDGETS
|
||||
Frame *DefaultWidgetFactory::createFrame(QWidgetOrQuick *parent, FrameOptions options) const
|
||||
Frame *DefaultWidgetFactory::createFrame(QWidgetOrQuick *parent, FrameOptions options, int userType) const
|
||||
{
|
||||
return new FrameWidget(parent, options);
|
||||
return new FrameWidget(parent, options, userType);
|
||||
}
|
||||
|
||||
TitleBar *DefaultWidgetFactory::createTitleBar(Frame *frame) const
|
||||
@@ -138,9 +138,9 @@ QAbstractButton* DefaultWidgetFactory::createTitleBarButton(QWidget *parent, Tit
|
||||
|
||||
#else
|
||||
|
||||
Frame *DefaultWidgetFactory::createFrame(QWidgetOrQuick *parent, FrameOptions options) const
|
||||
Frame *DefaultWidgetFactory::createFrame(QWidgetOrQuick *parent, FrameOptions options, int userType) const
|
||||
{
|
||||
return new FrameQuick(parent, options);
|
||||
return new FrameQuick(parent, options, userType);
|
||||
}
|
||||
|
||||
TitleBar *DefaultWidgetFactory::createTitleBar(Frame *frame) const
|
||||
|
||||
Reference in New Issue
Block a user