Expose more private API so users can use the full power
Installed more private headers. TabWidget_p.h was moved into widgets/ as the QtQuick impl won't use that abstraction. Could even be folded into TabWidgetWidget. Fixes #65
This commit is contained in:
@@ -71,7 +71,7 @@ set(DOCKS_INSTALLABLE_PRIVATE_WIDGET_INCLUDES
|
||||
private/widgets/FrameWidget_p.h
|
||||
private/widgets/TabBarWidget_p.h
|
||||
private/widgets/TabWidgetWidget_p.h
|
||||
private/TabWidget_p.h
|
||||
private/widgets/TabWidget_p.h
|
||||
)
|
||||
|
||||
if(OPTION_QTQUICK)
|
||||
@@ -90,8 +90,8 @@ if(OPTION_QTQUICK)
|
||||
else()
|
||||
set(DOCKSLIBS_SRCS ${DOCKSLIBS_SRCS}
|
||||
private/DebugWindow.cpp
|
||||
private/TabWidget.cpp
|
||||
MainWindow.cpp
|
||||
private/widgets/TabWidget.cpp
|
||||
private/widgets/TabBarWidget.cpp
|
||||
private/widgets/FloatingWindowWidget.cpp
|
||||
private/widgets/FrameWidget.cpp
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
#include "FrameworkWidgetFactory.h"
|
||||
#include "Frame_p.h"
|
||||
#include "TitleBar_p.h"
|
||||
#include "TabWidget_p.h"
|
||||
#include "multisplitter/Separator_p.h"
|
||||
#include "FloatingWindow_p.h"
|
||||
#include "Config.h"
|
||||
|
||||
#ifdef KDDOCKWIDGETS_QTWIDGETS
|
||||
# include "indicators/ClassicIndicators_p.h"
|
||||
# include "widgets/TabWidget_p.h"
|
||||
# include "widgets/FrameWidget_p.h"
|
||||
# include "widgets/TitleBarWidget_p.h"
|
||||
# include "widgets/TabBarWidget_p.h"
|
||||
|
||||
12
src/fwd_headers/kddockwidgets/private/FloatingWindow_p.h
Normal file
12
src/fwd_headers/kddockwidgets/private/FloatingWindow_p.h
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sergio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
#include "../../../private/FloatingWindow_p.h"
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sergio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
#include "../../../../private/widgets/FloatingWindowWidget_p.h"
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sergio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
#include "../../../../private/widgets/FrameWidget_p.h"
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sergio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
#include "../../../../private/widgets/TabBarWidget_p.h"
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sergio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
#include "../../../../private/widgets/TabWidgetWidget_p.h"
|
||||
12
src/fwd_headers/kddockwidgets/private/widgets/TabWidget_p.h
Normal file
12
src/fwd_headers/kddockwidgets/private/widgets/TabWidget_p.h
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Sergio Martins <sergio.martins@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
#include "../../../../private/widgets/TabWidget_p.h"
|
||||
@@ -13,7 +13,6 @@
|
||||
#define KD_DRAGCONTROLLER_P_H
|
||||
|
||||
#include "TitleBar_p.h"
|
||||
#include "TabWidget_p.h"
|
||||
#include "WindowBeingDragged_p.h"
|
||||
|
||||
#include <QStateMachine>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#ifndef KD_FLOATING_WINDOWWIDGET_P_H
|
||||
#define KD_FLOATING_WINDOWWIDGET_P_H
|
||||
|
||||
#include "FloatingWindow_p.h"
|
||||
#include "../FloatingWindow_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QVBoxLayout;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifndef KD_TABBAR_WIDGET_P_H
|
||||
#define KD_TABBAR_WIDGET_P_H
|
||||
|
||||
#include "../TabWidget_p.h"
|
||||
#include "TabWidget_p.h"
|
||||
|
||||
#include <QTabBar>
|
||||
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
#ifndef KDTABWIDGETWIDGET_P_H
|
||||
#define KDTABWIDGETWIDGET_P_H
|
||||
|
||||
#include "../TabWidget_p.h"
|
||||
#include "TabWidget_p.h"
|
||||
|
||||
#include <QTabWidget>
|
||||
|
||||
namespace KDDockWidgets {
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
#define KD_TAB_WIDGET_P_H
|
||||
|
||||
#include "docks_export.h"
|
||||
#include "Draggable_p.h"
|
||||
#include "Frame_p.h"
|
||||
#include "../Draggable_p.h"
|
||||
#include "../Frame_p.h"
|
||||
#include "DockWidgetBase.h"
|
||||
|
||||
#include <QTabBar>
|
||||
@@ -19,13 +19,13 @@
|
||||
#include "Frame_p.h"
|
||||
#include "private/widgets/FrameWidget_p.h"
|
||||
#include "private/widgets/TabWidgetWidget_p.h"
|
||||
#include "private/widgets/TabWidget_p.h"
|
||||
#include "DropArea_p.h"
|
||||
#include "TitleBar_p.h"
|
||||
#include "WindowBeingDragged_p.h"
|
||||
#include "Utils_p.h"
|
||||
#include "LayoutSaver.h"
|
||||
#include "LayoutSaver_p.h"
|
||||
#include "TabWidget_p.h"
|
||||
#include "MultiSplitter_p.h"
|
||||
#include "Position_p.h"
|
||||
#include "utils.h"
|
||||
|
||||
Reference in New Issue
Block a user