Fixed build issues of original pull request

This commit is contained in:
Uwe Kindler 2022-09-07 10:56:17 +02:00
parent 302fcd1435
commit 068797dbb0
7 changed files with 51 additions and 3 deletions

View File

@ -24,6 +24,9 @@ SOURCES += \
HEADERS += \
mainwindow.h
FORMS += \
mainwindow.ui
LIBS += -L$${ADS_OUT_ROOT}/lib
include(../../ads.pri)
INCLUDEPATH += ../../src

View File

@ -0,0 +1,34 @@
ADS_OUT_ROOT = $${OUT_PWD}/../..
QT += core gui widgets
TARGET = CentralWidgetExample
DESTDIR = $${ADS_OUT_ROOT}/lib
TEMPLATE = app
CONFIG += c++14
CONFIG += debug_and_release
adsBuildStatic {
DEFINES += ADS_STATIC
}
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += \
main.cpp \
mainwindow.cpp
HEADERS += \
mainwindow.h
FORMS += \
mainwindow.ui
LIBS += -L$${ADS_OUT_ROOT}/lib
include(../../ads.pri)
INCLUDEPATH += ../../src
DEPENDPATH += ../../src

View File

@ -1,6 +1,7 @@
TEMPLATE = subdirs
SUBDIRS = \
autohide \
centralwidget \
simple \
hideshow \

2
persist/perspectives.ini Normal file
View File

@ -0,0 +1,2 @@
[Perspectives]
size=0

View File

@ -1508,7 +1508,8 @@ COverlayDockContainer* CDockContainerWidget::createAndInitializeDockWidgetOverla
}
if (!COverlayDockContainer::areaExistsInConfig(area))
{
assert(false, "Requested area does not exist in config");
Q_ASSERT_X(false, "CDockContainerWidget::createAndInitializeDockWidgetOverlayContainer",
"Requested area does not exist in config");
return nullptr;
}

View File

@ -41,6 +41,7 @@
#include <QBoxLayout>
#include <QPainter>
#include <QSplitter>
#include <QPointer>
namespace ads
{

View File

@ -47,7 +47,10 @@ HEADERS += \
ElidingLabel.h \
IconProvider.h \
DockComponentsFactory.h \
DockFocusController.h
DockFocusController.h \
OverlayDockContainer.h \
SideTabBar.h \
DockWidgetSideTab.h
SOURCES += \
@ -67,7 +70,10 @@ SOURCES += \
ElidingLabel.cpp \
IconProvider.cpp \
DockComponentsFactory.cpp \
DockFocusController.cpp
DockFocusController.cpp \
OverlayDockContainer.cpp \
SideTabBar.cpp \
DockWidgetSideTab.cpp
unix:!macx {