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

@@ -2,22 +2,15 @@
#include "ElaComboBox.h"
#include "ElaTheme.h"
#include <QLineEdit>
ElaComboBoxPrivate::ElaComboBoxPrivate(QObject* parent)
: QObject{parent}
{
}
ElaComboBoxPrivate::ElaComboBoxPrivate(QObject *parent) : QObject{parent} {}
ElaComboBoxPrivate::~ElaComboBoxPrivate()
{
}
ElaComboBoxPrivate::~ElaComboBoxPrivate() {}
void ElaComboBoxPrivate::onThemeChanged(ElaThemeType::ThemeMode themeMode)
{
void ElaComboBoxPrivate::onThemeChanged(ElaThemeType::ThemeMode themeMode) {
Q_Q(ElaComboBox);
_themeMode = themeMode;
_themeMode = themeMode;
auto lineEdit = q->lineEdit();
if (lineEdit)
{
if (lineEdit) {
QPalette palette = lineEdit->palette();
palette.setColor(QPalette::Text, ElaThemeColor(_themeMode, BasicText));
palette.setColor(QPalette::PlaceholderText, _themeMode == ElaThemeType::Light ? QColor(0x00, 0x00, 0x00, 128) : QColor(0xBA, 0xBA, 0xBA));