chore: 格式化ElaWidgetTools代码
This commit is contained in:
@@ -1,17 +1,11 @@
|
||||
#include "ElaRollerPrivate.h"
|
||||
#include <QPropertyAnimation>
|
||||
|
||||
ElaRollerPrivate::ElaRollerPrivate(QObject* parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
}
|
||||
ElaRollerPrivate::ElaRollerPrivate(QObject *parent) : QObject(parent) {}
|
||||
|
||||
ElaRollerPrivate::~ElaRollerPrivate()
|
||||
{
|
||||
}
|
||||
ElaRollerPrivate::~ElaRollerPrivate() {}
|
||||
|
||||
void ElaRollerPrivate::_scroll(int delta)
|
||||
{
|
||||
void ElaRollerPrivate::_scroll(int delta) {
|
||||
int steps = delta / 120;
|
||||
_targetScrollOffset -= steps * _pItemHeight;
|
||||
_targetScrollOffset = qRound(_targetScrollOffset / _pItemHeight) * _pItemHeight;
|
||||
|
||||
Reference in New Issue
Block a user