Added DockWidgetBase::setMDIZ(int z)
Sets the Z order of the dockwidget within the MDI layout
This commit is contained in:
@@ -809,6 +809,20 @@ void DockWidgetBase::setMDISize(QSize size)
|
||||
}
|
||||
}
|
||||
|
||||
void DockWidgetBase::setMDIZ(int z)
|
||||
{
|
||||
#ifdef KDDOCKWIDGETS_QTQUICK
|
||||
if (Frame *frame = d->frame()) {
|
||||
if (!frame->isMDI())
|
||||
return;
|
||||
frame->setZ(z);
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(z);
|
||||
qWarning() << Q_FUNC_INFO << "Not implemented for QtQuick";
|
||||
#endif
|
||||
}
|
||||
|
||||
LayoutSaver::DockWidget::Ptr DockWidgetBase::Private::serialize() const
|
||||
{
|
||||
auto ptr = LayoutSaver::DockWidget::dockWidgetForName(q->uniqueName());
|
||||
|
||||
@@ -423,6 +423,9 @@ public:
|
||||
void setMDIPosition(QPoint pos);
|
||||
/// @brief like setMDIPosition(), but for the size.
|
||||
void setMDISize(QSize size);
|
||||
/// @brief like setMDIPosition(), but for the Z
|
||||
/// only implemented for QtQuick
|
||||
void setMDIZ(int z);
|
||||
|
||||
Q_SIGNALS:
|
||||
#ifdef KDDOCKWIDGETS_QTWIDGETS
|
||||
|
||||
Reference in New Issue
Block a user