11#include <QPropertyAnimation>
13#include <DHorizontalLine>
15#include <dtkwidget_global.h>
16#include <dconstants.h>
18#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
20DWIDGET_BEGIN_NAMESPACE
22class D_DECL_DEPRECATED ContentLoader :
public QFrame
25 Q_PROPERTY(
int height READ height WRITE setFixedHeight)
27 explicit ContentLoader(QWidget *parent =
nullptr) : QFrame(parent){}
32class DBaseExpandPrivate;
33class LIBDTKWIDGETSHARED_EXPORT D_DECL_DEPRECATED_X(
"Use DDrawer")
DBaseExpand :
public QWidget
40 void setHeader(QWidget *header);
41 void setContent(QWidget *content, Qt::Alignment alignment = Qt::AlignHCenter);
42 QWidget *getContent()
const;
43 void setHeaderHeight(
int height);
44 virtual void setExpand(
bool value);
46 void setAnimationDuration(
int duration);
47 void setAnimationEasingCurve(QEasingCurve curve);
48 void setSeparatorVisible(
bool arg);
49 void setExpandedSeparatorVisible(
bool arg);
52 void expandChange(
bool e);
53 void sizeChanged(QSize s);
56 void resizeEvent(QResizeEvent *e) Q_DECL_OVERRIDE;
59 QScopedPointer<DBaseExpandPrivate> d_private;