chore: 格式化ElaWidgetTools代码

This commit is contained in:
sleepwithoutbz
2025-09-20 01:39:00 +08:00
parent d2fded145d
commit 4ab391f8a1
394 changed files with 10913 additions and 15860 deletions

View File

@@ -4,26 +4,25 @@
#include "ElaProperty.h"
class ElaMultiSelectComboBoxPrivate;
class ELA_EXPORT ElaMultiSelectComboBox : public QComboBox
{
class ELA_EXPORT ElaMultiSelectComboBox : public QComboBox {
Q_OBJECT
Q_Q_CREATE(ElaMultiSelectComboBox)
Q_PROPERTY_CREATE_Q_H(int, BorderRadius)
public:
explicit ElaMultiSelectComboBox(QWidget* parent = nullptr);
explicit ElaMultiSelectComboBox(QWidget *parent = nullptr);
~ElaMultiSelectComboBox();
void setCurrentSelection(QString selection);
void setCurrentSelection(QStringList selection);
void setCurrentSelection(int index);
void setCurrentSelection(QList<int> selectionIndex);
void setCurrentSelection(QString selection);
void setCurrentSelection(QStringList selection);
void setCurrentSelection(int index);
void setCurrentSelection(QList<int> selectionIndex);
QStringList getCurrentSelection() const;
QList<int> getCurrentSelectionIndex() const;
QList<int> getCurrentSelectionIndex() const;
Q_SIGNALS:
Q_SIGNAL void itemSelectionChanged(QVector<bool> itemSelection);
Q_SIGNAL void currentTextListChanged(QStringList selectedTextList);
protected:
void paintEvent(QPaintEvent* e) override;
void paintEvent(QPaintEvent *e) override;
void showPopup() override;
void hidePopup() override;
};