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 ELATABBAR_H
#define ELATABBAR_H
#include <QDrag>
#include <QTabBar>
#include "ElaProperty.h"
class ElaTabBarPrivate;
class ELA_EXPORT ElaTabBar : public QTabBar
{
Q_OBJECT
Q_Q_CREATE(ElaTabBar)
public:
explicit ElaTabBar(QWidget* parent = nullptr);
~ElaTabBar() override;
Q_SIGNALS:
Q_SIGNAL void tabBarPress(int index);
Q_SIGNAL void tabDragCreate(QDrag* drag);
Q_SIGNAL void tabDragDrop(const QMimeData* mimeData);
protected:
virtual void mousePressEvent(QMouseEvent* event) override;
virtual void mouseMoveEvent(QMouseEvent* event) override;
virtual void dragEnterEvent(QDragEnterEvent* event) override;
virtual void dropEvent(QDropEvent* event) override;
virtual void wheelEvent(QWheelEvent* event) override;
};
#endif // ELATABBAR_H