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
76 m_d->btnReloadPreset =
new QToolButton(
this);
77 m_d->btnReloadPreset->setAutoRaise(
true);
78 m_d->btnReloadPreset->setToolTip(i18n(
"Reload Original Preset"));
79
80 m_d->btnConfigure =
new QToolButton(
this);
81 m_d->btnConfigure->setAutoRaise(
true);
82 m_d->btnConfigure->setToolTip(i18n(
"Configure the on-canvas brush editor"));
83
86
87 labelLayout->addWidget(
m_d->lblPresetIcon);
88 labelLayout->addWidget(
m_d->lblPresetName);
89 labelLayout->addWidget(
m_d->btnReloadPreset);
90 labelLayout->addWidget(
m_d->btnConfigure);
91
92 layout->addLayout(labelLayout);
93
94 m_d->wdgPropertiesArea =
new QScrollArea(
this);
95 m_d->wdgPropertiesArea->setAlignment(Qt::AlignLeft | Qt::AlignTop);
96 m_d->wdgPropertiesArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
97
98 m_d->wdgPropertiesArea->setWidgetResizable(
true);
99
100 m_d->wdgProperties =
new QWidget(
this);
101 m_d->propertiesLayout =
new QVBoxLayout(
m_d->wdgProperties);
102 m_d->propertiesLayout->setSpacing(0);
103 m_d->propertiesLayout->setContentsMargins(0, 0, 22, 0);
104 m_d->propertiesLayout->setSizeConstraint(QLayout::SetMinimumSize);
105
106
107
108 m_d->wdgPropertiesArea->setWidget(
m_d->wdgProperties);
109 layout->addWidget(
m_d->wdgPropertiesArea);
110
111
112
113
114 m_d->wdgProperties->installEventFilter(
this);
115
117
118 setCursor(Qt::ArrowCursor);
119
120
121 setAttribute(Qt::WA_NoMousePropagation, true);
122}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
int iconSize(qreal width, qreal height)
const QScopedPointer< Private > m_d
void slotConfigBrushHud()