Files
cbh/ElaWidgetTools/ElaScrollPage.h
2025-09-20 01:41:33 +08:00

30 lines
802 B
C++

#ifndef ELASCROLLPAGE_H
#define ELASCROLLPAGE_H
#include <QWidget>
#include "ElaProperty.h"
class ElaScrollArea;
class ElaText;
class QHBoxLayout;
class ElaScrollPagePrivate;
class ELA_EXPORT ElaScrollPage : public QWidget {
Q_OBJECT
Q_Q_CREATE(ElaScrollPage)
Q_PROPERTY_CREATE_Q_H(QWidget *, CustomWidget)
public:
explicit ElaScrollPage(QWidget *parent = nullptr);
~ElaScrollPage();
void addCentralWidget(QWidget *centralWidget, bool isWidgetResizeable = true, bool isVerticalGrabGesture = true,
qreal mousePressEventDelay = 0.5);
void navigation(int widgetIndex, bool isLogRoute = true);
void setPageTitleSpacing(int spacing);
int getPageTitleSpacing() const;
void setTitleVisible(bool isVisible);
};
#endif // ELASCROLLPAGE_H