60 : QWidget(parent, Qt::FramelessWindowHint),
62{
63 m_d->provider = provider;
64
65 QVBoxLayout *
layout =
new QVBoxLayout(
this);
66
67 QHBoxLayout *labelLayout = new QHBoxLayout();
68 m_d->lblPresetIcon =
new QLabel(
this);
72 m_d->lblPresetIcon->setScaledContents(
true);
73
75 m_d->lblPresetName->setSizePolicy(QSizePolicy(QSizePolicy::Ignored, QSizePolicy::Preferred));
76
77 m_d->btnReloadPreset =
new QToolButton(
this);
78 m_d->btnReloadPreset->setAutoRaise(
true);
79 m_d->btnReloadPreset->setToolTip(i18n(
"Reload Original Preset"));
80
81 m_d->btnConfigure =
new QToolButton(
this);
82 m_d->btnConfigure->setAutoRaise(
true);
83 m_d->btnConfigure->setToolTip(i18n(
"Configure the on-canvas brush editor"));
84
87
88 labelLayout->addWidget(
m_d->lblPresetIcon);
89 labelLayout->addWidget(
m_d->lblPresetName);
90 labelLayout->addWidget(
m_d->btnReloadPreset);
91 labelLayout->addWidget(
m_d->btnConfigure);
92
93 layout->addLayout(labelLayout);
94
95 m_d->wdgPropertiesArea =
new QScrollArea(
this);
96 m_d->wdgPropertiesArea->setAlignment(Qt::AlignLeft | Qt::AlignTop);
97 m_d->wdgPropertiesArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
98
99 m_d->wdgPropertiesArea->setWidgetResizable(
true);
100
101 m_d->wdgProperties =
new QWidget(
this);
102 m_d->propertiesLayout =
new QVBoxLayout(
m_d->wdgProperties);
103 m_d->propertiesLayout->setSpacing(0);
104 m_d->propertiesLayout->setContentsMargins(0, 0, 22, 0);
105 m_d->propertiesLayout->setSizeConstraint(QLayout::SetMinimumSize);
106
107
108
109 m_d->wdgPropertiesArea->setWidget(
m_d->wdgProperties);
110 layout->addWidget(
m_d->wdgPropertiesArea);
111
112
113
114
115 m_d->wdgProperties->installEventFilter(
this);
116
118
119 setCursor(Qt::ArrowCursor);
120
121
122 setAttribute(Qt::WA_NoMousePropagation, true);
123}
int iconSize(qreal width, qreal height)
const QScopedPointer< Private > m_d
void slotConfigBrushHud()