53 const QObject* docObject, QWidget* parent =
nullptr);
58 void setupConnections(
const T& model)
60 using namespace Scenario::Command;
61 using namespace score::IDocument;
62 connect(
this, &MetadataWidget::labelChanged, [&](
const QString& newLabel) {
63 if(newLabel != model.metadata().getLabel())
67 connect(
this, &MetadataWidget::commentsChanged, [&](
const QString& newComments) {
68 if(newComments != model.metadata().getComment())
72 connect(
this, &MetadataWidget::colorChanged, [&](
score::ColorRef newColor) {
73 if(newColor != model.metadata().getColor())
91 void labelChanged(QString arg) W_SIGNAL(labelChanged, arg);
92 void commentsChanged(QString arg) W_SIGNAL(commentsChanged, arg);
94 void extendedMetadataChanged(
const QVariantMap& arg)
95 W_SIGNAL(extendedMetadataChanged, arg);
98 static const constexpr int m_colorIconSize{21};
104 QLineEdit m_labelLine;
106 color_widgets::Swatch* m_palette_widget;
107 QPixmap m_colorButtonPixmap{4 * m_colorIconSize / 3, 4 * m_colorIconSize / 3};