35 lager::reader<bool> overlayModeAllowed)
40 , m_d(new
Private(optionData, overlayModeAllowed))
44 QWidget *page =
new QWidget();
46 QLabel *
label =
new QLabel(
47 i18n(
"Paints on the current layer\n"
48 "but uses all layers that are currently visible for smudge input\n"
49 "NOTE: This mode is only able to work correctly with a fully opaque background"),
52 label->setAlignment(Qt::AlignVCenter | Qt::AlignHCenter);
55 QLabel *disabledWarningLabel =
new QLabel(
56 i18n(
"Disabled: overlay mode is not supported in Lightness mode of the brush"),
59 disabledWarningLabel->setAlignment(Qt::AlignVCenter | Qt::AlignHCenter);
62 QVBoxLayout *layout =
new QVBoxLayout(page);
63 layout->addWidget(disabledWarningLabel);
64 layout->addWidget(
label, 1);
66 m_d->warningLabelVisible.bind(std::bind(&QWidget::setVisible, disabledWarningLabel, std::placeholders::_1));