新增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,41 @@
#ifndef ELAFRAMEWORK_ELAROLLERPICKER_H
#define ELAFRAMEWORK_ELAROLLERPICKER_H
#include "ElaProperty.h"
#include <QPushButton>
class ElaRollerPickerPrivate;
class ELA_EXPORT ElaRollerPicker : public QPushButton
{
Q_OBJECT
Q_Q_CREATE(ElaRollerPicker)
Q_PROPERTY_CREATE_Q_H(int, BorderRadius)
public:
explicit ElaRollerPicker(QWidget* parent = nullptr);
~ElaRollerPicker() override;
void addRoller(const QStringList& itemList, bool isEnableLoop = true);
void removeRoller(int index);
void setRollerItemList(int index, const QStringList& itemList);
void setRollerWidth(int index, int width);
void setCurrentData(int index, const QString& data);
void setCurrentData(const QStringList& dataList);
QString getCurrentData(int index) const;
QStringList getCurrentData() const;
void setCurrentIndex(int rollerIndex, int index);
void setCurrentIndex(const QList<int>& indexList);
int getCurrentIndex(int rollerIndex) const;
QList<int> getCurrentIndex() const;
Q_SIGNALS:
Q_SIGNAL void currentDataChanged(const QStringList& dataList);
Q_SIGNAL void currentDataSelectionChanged(const QStringList& dataList);
protected:
virtual void paintEvent(QPaintEvent* event) override;
};
#endif //ELAFRAMEWORK_ELAROLLERPICKER_H