39 QWidget *page =
new QWidget;
41 QCheckBox *alignOutline =
new QCheckBox((
"Align the brush preview outline to the pixel grid"), page);
43 QLabel* thresholdLbl =
new QLabel(i18n(
"Soften edge:"), page);
46 softenEdge->setSingleStep(1);
48 QHBoxLayout* alignHL =
new QHBoxLayout;
49 alignHL->setContentsMargins(2, 2, 2, 2);
50 alignHL->addWidget(alignOutline);
52 QHBoxLayout* softnessHL =
new QHBoxLayout;
53 softnessHL->setContentsMargins(9, 9, 9, 9);
54 softnessHL->addWidget(thresholdLbl);
55 softnessHL->addWidget(softenEdge, 1);
57 QVBoxLayout* pageLayout =
new QVBoxLayout(page);
58 pageLayout->setContentsMargins(0, 0, 0, 0);
59 pageLayout->addLayout(alignHL);
60 pageLayout->addLayout(softnessHL);
65 connectControl(alignOutline, &
m_d->model,
"alignOutlinePixels");
66 connectControl(softenEdge, &
m_d->model,
"softness");
void setRange(int newMinimum, int newMaximum, bool computeNewFastSliderStep=true)
Set the minimum and the maximum values of the range, computing a new "fast slider step" based on the ...