feat: 添加ElaWidgetTool库
This commit is contained in:
26
ElaWidgetTools/ElaScrollArea.h
Normal file
26
ElaWidgetTools/ElaScrollArea.h
Normal 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
|
||||
Reference in New Issue
Block a user