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,26 @@
#ifndef ELASCROLLAREA_H
#define ELASCROLLAREA_H
#include <QScrollArea>
#include "ElaProperty.h"
class ElaScrollAreaPrivate;
class ELA_EXPORT ElaScrollArea : public QScrollArea
{
Q_OBJECT
Q_Q_CREATE(ElaScrollArea)
public:
explicit ElaScrollArea(QWidget* parent = nullptr);
~ElaScrollArea();
void setIsGrabGesture(bool isEnable, qreal mousePressEventDelay = 0.5);
void setIsOverShoot(Qt::Orientation orientation, bool isEnable);
bool getIsOverShoot(Qt::Orientation orientation) const;
void setIsAnimation(Qt::Orientation orientation, bool isAnimation);
bool getIsAnimation(Qt::Orientation orientation) const;
};
#endif // ELASCROLLAREA_H