Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/brushhud/kis_brush_hud.cpp
Context not available. | |||||
82 | 82 | | |||
---|---|---|---|---|---|
83 | m_d->btnConfigure = new QToolButton(this); | 83 | m_d->btnConfigure = new QToolButton(this); | ||
84 | m_d->btnConfigure->setAutoRaise(true); | 84 | m_d->btnConfigure->setAutoRaise(true); | ||
85 | m_d->btnConfigure->setIcon(KisIconUtils::loadIcon("applications-system")); | 85 | | ||
86 | | ||||
87 | | ||||
86 | connect(m_d->btnConfigure, SIGNAL(clicked()), SLOT(slotConfigBrushHud())); | 88 | connect(m_d->btnConfigure, SIGNAL(clicked()), SLOT(slotConfigBrushHud())); | ||
87 | 89 | | |||
88 | labelLayout->addWidget(m_d->lblPresetIcon); | 90 | labelLayout->addWidget(m_d->lblPresetIcon); | ||
Context not available. | |||||
109 | m_d->wdgPropertiesArea->setWidget(m_d->wdgProperties); | 111 | m_d->wdgPropertiesArea->setWidget(m_d->wdgProperties); | ||
110 | layout->addWidget(m_d->wdgPropertiesArea); | 112 | layout->addWidget(m_d->wdgPropertiesArea); | ||
111 | 113 | | |||
114 | updateIcons(); | ||||
115 | | ||||
112 | setLayout(layout); | 116 | setLayout(layout); | ||
113 | setCursor(Qt::ArrowCursor); | 117 | setCursor(Qt::ArrowCursor); | ||
114 | 118 | | |||
Context not available. | |||||
116 | setAttribute(Qt::WA_NoMousePropagation, true); | 120 | setAttribute(Qt::WA_NoMousePropagation, true); | ||
117 | } | 121 | } | ||
118 | 122 | | |||
123 | | ||||
124 | | ||||
119 | KisBrushHud::~KisBrushHud() | 125 | KisBrushHud::~KisBrushHud() | ||
120 | { | 126 | { | ||
121 | } | 127 | } | ||
Context not available. | |||||
126 | return QSize(size.width(), parentWidget()->height()); | 132 | return QSize(size.width(), parentWidget()->height()); | ||
127 | } | 133 | } | ||
128 | 134 | | |||
135 | void KisBrushHud::updateIcons() | ||||
136 | { | ||||
137 | m_d->btnConfigure->setIcon(KisIconUtils::loadIcon("applications-system")); | ||||
138 | } | ||||
139 | | ||||
129 | void KisBrushHud::slotReloadProperties() | 140 | void KisBrushHud::slotReloadProperties() | ||
130 | { | 141 | { | ||
131 | m_d->presetConnections.clear(); | 142 | m_d->presetConnections.clear(); | ||
Context not available. |