Remove userType() from public API for now

If added, will need to be through overloads, to not break source
compat. Will add them once there's a need.
This commit is contained in:
Sergio Martins
2021-03-01 16:33:13 +00:00
parent 74b034a195
commit 19fd1635e6
4 changed files with 11 additions and 16 deletions

View File

@@ -54,9 +54,9 @@ FrameworkWidgetFactory::~FrameworkWidgetFactory()
}
#ifdef KDDOCKWIDGETS_QTWIDGETS
Frame *DefaultWidgetFactory::createFrame(QWidgetOrQuick *parent, FrameOptions options, int userType) const
Frame *DefaultWidgetFactory::createFrame(QWidgetOrQuick *parent, FrameOptions options) const
{
return new FrameWidget(parent, options, userType);
return new FrameWidget(parent, options);
}
TitleBar *DefaultWidgetFactory::createTitleBar(Frame *frame) const
@@ -138,9 +138,9 @@ QAbstractButton* DefaultWidgetFactory::createTitleBarButton(QWidget *parent, Tit
#else
Frame *DefaultWidgetFactory::createFrame(QWidgetOrQuick *parent, FrameOptions options, int userType) const
Frame *DefaultWidgetFactory::createFrame(QWidgetOrQuick *parent, FrameOptions options) const
{
return new FrameQuick(parent, options, userType);
return new FrameQuick(parent, options);
}
TitleBar *DefaultWidgetFactory::createTitleBar(Frame *frame) const
@@ -212,9 +212,8 @@ SideBar *DefaultWidgetFactory::createSideBar(SideBarLocation loc, MainWindowBase
return nullptr;
}
QUrl DefaultWidgetFactory::titleBarFilename(int userType) const
QUrl DefaultWidgetFactory::titleBarFilename() const
{
Q_UNUSED(userType);
return QUrl(QStringLiteral("qrc:/kddockwidgets/private/quick/qml/TitleBar.qml"));
}