feat: 添加ElaWidgetTool库

This commit is contained in:
sleepwithoutbz
2025-09-19 22:40:52 +08:00
parent 5f93e8caf6
commit 4eef5c7fd5
407 changed files with 36325 additions and 7 deletions

View File

@@ -0,0 +1,29 @@
#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