feat: 添加ElaWidgetTool库
This commit is contained in:
25
ElaWidgetTools/private/ElaPopularCardPrivate.cpp
Normal file
25
ElaWidgetTools/private/ElaPopularCardPrivate.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "ElaPopularCardPrivate.h"
|
||||
|
||||
#include <QTimer>
|
||||
|
||||
#include "ElaPopularCard.h"
|
||||
#include "ElaPopularCardFloater.h"
|
||||
|
||||
ElaPopularCardPrivate::ElaPopularCardPrivate(QObject* parent)
|
||||
: QObject{parent}
|
||||
{
|
||||
}
|
||||
|
||||
ElaPopularCardPrivate::~ElaPopularCardPrivate()
|
||||
{
|
||||
}
|
||||
|
||||
void ElaPopularCardPrivate::_showFloater()
|
||||
{
|
||||
Q_Q(ElaPopularCard);
|
||||
q->update();
|
||||
_isFloating = true;
|
||||
_pHoverYOffset = 0;
|
||||
_floatTimer->stop();
|
||||
_floater->showFloater();
|
||||
}
|
||||
Reference in New Issue
Block a user