Go to the documentation of this file.
40 #include <QScrollArea>
41 #include <QTextStream>
46 #include <QXmlStreamWriter>
49 #include <QGuiApplication>
136 FloatingWidget->resize(
_this->size());
138 FloatingWidget->show();
145 QSplitter* Splitter = internal::findParent<QSplitter*>(
DockArea);
146 while (Splitter && !Splitter->isVisible())
149 Splitter = internal::findParent<QSplitter*>(Splitter);
157 FloatingWidget->show();
201 ToolBar->setObjectName(
"dockWidgetToolBar");
203 ToolBar->setIconSize(QSize(16, 16));
204 ToolBar->toggleViewAction()->setEnabled(
false);
205 ToolBar->toggleViewAction()->setVisible(
false);
206 _this->connect(
_this, SIGNAL(topLevelChanged(
bool)), SLOT(setToolbarFloatingStyle(
bool)));
215 ScrollArea->setObjectName(
"dockWidgetScrollArea");
227 d->
Layout =
new QBoxLayout(QBoxLayout::TopToBottom);
228 d->
Layout->setContentsMargins(0, 0, 0, 0);
231 setWindowTitle(title);
232 setObjectName(title);
243 setFocusPolicy(Qt::ClickFocus);
259 Action->blockSignals(
true);
260 Action->setChecked(Checked);
261 Action->blockSignals(
false);
273 auto ScrollAreaWidget = qobject_cast<QAbstractScrollArea*>(
widget);
277 if (ScrollAreaWidget && ScrollAreaWidget->viewport())
279 ScrollAreaWidget->viewport()->setProperty(
"dockWidgetContent",
true);
289 d->
Widget->setProperty(
"dockWidgetContent",
true);
296 QWidget* w =
nullptr;
314 w->setParent(
nullptr);
345 DockArea->onDockWidgetFeaturesChanged();
421 if (!Container->isFloating())
479 QAction* Sender = qobject_cast<QAction*>(sender());
502 CDockWidget* TopLevelDockWidgetBefore = DockContainer
522 if (Open && TopLevelDockWidgetBefore)
531 CDockWidget* TopLevelDockWidgetAfter = DockContainer
535 if (FloatingContainer)
560 s.writeStartElement(
"Widget");
561 s.writeAttribute(
"Name", objectName());
562 s.writeAttribute(
"Closed", QString::number(
d->
Closed ? 1 : 0));
591 case QEvent::WindowTitleChange :
593 const auto title = windowTitle();
614 return Super::event(e);
618 #ifndef QT_NO_TOOLTIP
759 if (IconSize !=
d->
ToolBar->iconSize())
765 if (ButtonStyle !=
d->
ToolBar->toolButtonStyle())
767 d->
ToolBar->setToolButtonStyle(ButtonStyle);
775 if (TopLevelDockWidget)
806 return QSize(60, 40);
810 return d->
Widget->minimumSizeHint();
865 FloatingWidget->deleteLater();
869 FloatingWidget->hide();
907 Super::showFullScreen();
935 return Super::isFullScreen();
976 auto FloatingWindow = window();
977 FloatingWindow->raise();
978 FloatingWindow->activateWindow();
Declaration of CDockSplitter.
CDockWidget * centralWidget() const
Declaration of CFloatingDockContainer class.
const CDockComponentsFactory * componentsFactory()
QList< CDockWidget * > dockWidgets() const
Declaration of DockComponentsFactory.
virtual CDockWidgetTab * createDockWidgetTab(CDockWidget *DockWidget) const
Declaration of CDockManager class.
@ FocusHighlighting
enables styling of focused dock widget tabs or floating widget titlebar
void removeDockWidget(CDockWidget *Dockwidget)
static bool testConfigFlag(eConfigFlag Flag)
T findParent(const QWidget *w)
void setFlag(T &Flags, typename T::enum_type flag, bool on=true)
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:44