2 #include "ui_musicsoundeffectswidget.h"
11 QVBoxLayout *layout =
new QVBoxLayout(
this);
12 layout->setContentsMargins(1, 1, 1, 1);
13 layout->setSpacing(0);
24 QWidget *func =
new QWidget(
this);
26 QHBoxLayout *funcLayout =
new QHBoxLayout(func);
27 funcLayout->setContentsMargins(0, 5, 5, 0);
28 funcLayout->setSpacing(0);
42 m_openButton->setCursor(QCursor(Qt::PointingHandCursor));
51 QLabel *iconLabel =
new QLabel(func);
53 iconLabel->setPixmap(QPixmap(
":/tiny/lb_arrow_down_normal"));
54 iconLabel->setFixedSize(16, 16);
57 funcLayout->addWidget(iconLabel);
58 funcLayout->addStretch(1);
62 layout->addWidget(func);
119 setFixedSize(
size());
122 m_ui->topTitleCloseButton->setIcon(QIcon(
":/functions/btn_close_hover"));
124 m_ui->topTitleCloseButton->setCursor(QCursor(Qt::PointingHandCursor));
125 m_ui->topTitleCloseButton->setToolTip(tr(
"Close"));
126 connect(
m_ui->topTitleCloseButton, SIGNAL(clicked()), SLOT(close()));
129 m_ui->stateComboBox->addItems({tr(
"OperatorAll"), tr(
"All Off")});
148 for(
const QString &effect :
qAsConst(effects))
160 value.append(property.m_type +
";");
170 m_ui->stateComboBox->blockSignals(
true);
171 m_ui->stateComboBox->setCurrentIndex(0);
172 m_ui->stateComboBox->blockSignals(
false);
178 item->setPluginEnabled(
false);
185 QVBoxLayout *layout =
new QVBoxLayout(
m_ui->effectContainer);
186 layout->setContentsMargins(0, 0, 0, 0);
187 layout->setSpacing(10);
188 m_ui->effectContainer->setLayout(layout);
195 layout->addWidget(item);
#define QtSkipEmptyParts
String skip empty parts.
static const QString BackgroundStyle05
static const QString CheckBoxStyle01
CheckBox.
static const QString SliderStyle06
static const QString PushButtonStyle01
PushButton.
TTK_MODULE_EXPORT MusicPluginPropertyList effectModules()
static const QString PushButtonStyle12
static const QString BackgroundStyle04
static const QString SpinBoxStyle01
SpinBox.
static const QString BackgroundStyle01
Background.
TTK_MODULE_EXPORT void setEffectEnabled(const QString &name, bool enabled)
The class of the moving dialog base.
static const QString ToolButtonStyle04
TTK_MODULE_EXPORT void showEffectSetting(const QString &name, QWidget *parent)
static const QString ComboBoxStyle01
ComboBox.
TTK_MODULE_EXPORT bool isEffectEnabled(const QString &name)
The class of the plugin property.