17#include "core/Window_p.h"
18#include "core/DockRegistry_p.h"
19#include "core/Stack_p.h"
21#include "core/View_p.h"
28#include <QAbstractButton>
51 , StackViewInterface(controller)
73 if (dw->options() & DockWidgetOption_NotClosable) {
74 qWarning() <<
"QTabWidget::tabCloseRequested: Refusing to close dock widget with "
75 "Option_NotClosable option. name="
81 qWarning() <<
"QTabWidget::tabCloseRequested Couldn't find dock widget for index"
82 << index <<
"; count=" <<
count();
88 d->tabBarAutoHideChanged = m_stack->d->tabBarAutoHideChanged.connect(
92 setFocusProxy(
nullptr);
119void Stack::setupTabBarButtons()
135 d->cornerWidgetLayout->addWidget(d->floatButton);
136 d->cornerWidgetLayout->addWidget(d->closeButton);
139 Core::TitleBar *tb = m_stack->group()->titleBar();
140 tb->onFloatClicked();
144 Core::TitleBar *tb = m_stack->group()->titleBar();
145 tb->onCloseClicked();
149 d->screenChangedConnection =
DockRegistry::self()->
dptr()->windowChangedScreen.connect([
this](Core::Window::Ptr w) {
155void Stack::updateMargins()
158 d->cornerWidgetLayout->setContentsMargins(
QMargins(0, 0, 2, 0) * factor);
159 d->cornerWidgetLayout->setSpacing(
int(2 * factor));
209 qWarning() << Q_FUNC_INFO <<
"Not implemented yet. Only North is supported";
Application-wide config to tune certain behaviours of the framework.
A ScopedConnection is a RAII-style way to make sure a Connection is disconnected.
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setObjectName(const QString &name)
bool contains(const QRect &rectangle, bool proper) const const
int tabAt(const QPoint &position) const const
QString tabText(int index) const const