新增sql连接,目前支持mysql、sqlite、oracle连接以及相关数据库操作

This commit is contained in:
taocong
2026-06-26 10:36:47 +08:00
commit 903d805f31
238 changed files with 86008 additions and 0 deletions
@@ -0,0 +1,31 @@
#ifndef ELATOGGLEBUTTON_H
#define ELATOGGLEBUTTON_H
#include <QPushButton>
#include "ElaProperty.h"
class ElaToggleButtonPrivate;
class ELA_EXPORT ElaToggleButton : public QWidget
{
Q_OBJECT
Q_Q_CREATE(ElaToggleButton)
Q_PROPERTY_CREATE_Q_H(int, BorderRadius)
Q_PROPERTY_CREATE_Q_H(QString, Text)
public:
explicit ElaToggleButton(QWidget* parent = nullptr);
explicit ElaToggleButton(QString text, QWidget* parent = nullptr);
~ElaToggleButton();
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 paintEvent(QPaintEvent* event) override;
};
#endif // ELATOGGLEBUTTON_H