转码工具页面功能

This commit is contained in:
taocong
2026-05-25 10:18:19 +08:00
commit 3db5fe7f13
107 changed files with 8591 additions and 0 deletions
@@ -0,0 +1,29 @@
#ifndef ELATOGGLESWITCH_H
#define ELATOGGLESWITCH_H
#include <QWidget>
#include "ElaProperty.h"
class ElaToggleSwitchPrivate;
class ELA_EXPORT ElaToggleSwitch : public QWidget
{
Q_OBJECT
Q_Q_CREATE(ElaToggleSwitch);
public:
explicit ElaToggleSwitch(QWidget* parent = nullptr);
~ElaToggleSwitch() override;
void setIsToggled(bool isToggled);
bool getIsToggled() const;
Q_SIGNALS:
Q_SIGNAL void toggled(bool checked);
protected:
virtual bool event(QEvent* event) override;
virtual void mousePressEvent(QMouseEvent* event) override;
virtual void mouseReleaseEvent(QMouseEvent* event) override;
virtual void mouseMoveEvent(QMouseEvent* event) override;
virtual void paintEvent(QPaintEvent* event) override;
};
#endif // ELATOGGLESWITCH_H