Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/widgets/kis_preset_live_preview_view.cpp
Context not available. | |||||
67 | 67 | | |||
---|---|---|---|---|---|
68 | void KisPresetLivePreviewView::setCurrentPreset(KisPaintOpPresetSP preset) | 68 | void KisPresetLivePreviewView::setCurrentPreset(KisPaintOpPresetSP preset) | ||
69 | { | 69 | { | ||
70 | setup(); | ||||
70 | m_currentPreset = preset; | 71 | m_currentPreset = preset; | ||
71 | } | 72 | } | ||
72 | 73 | | |||
Context not available. | |||||
101 | 102 | | |||
102 | } | 103 | } | ||
103 | 104 | | |||
104 | | ||||
105 | | ||||
106 | void KisPresetLivePreviewView::paintBackground() | 105 | void KisPresetLivePreviewView::paintBackground() | ||
107 | { | 106 | { | ||
108 | // clean up "no preview" text object if it exists. we will add it later if we need it | 107 | // clean up "no preview" text object if it exists. we will add it later if we need it | ||
Context not available. | |||||
181 | // we are making a proxy preset and setting it to the painter...otherwise setting the brush size of the original preset | 180 | // we are making a proxy preset and setting it to the painter...otherwise setting the brush size of the original preset | ||
182 | // will fire off signals that make this run in an infinite loop | 181 | // will fire off signals that make this run in an infinite loop | ||
183 | qreal originalPresetSize = m_currentPreset->settings()->paintOpSize(); | 182 | qreal originalPresetSize = m_currentPreset->settings()->paintOpSize(); | ||
184 | qreal previewSize = qBound(3.0, m_currentPreset->settings()->paintOpSize(), 25.0 ); // constrain live preview brush size | 183 | qreal previewSize = qBound(3.0, m_currentPreset->settings()->paintOpSize(), 70.0 ); // constrain live preview brush size | ||
185 | //Except for the sketchbrush where it determine sthe history. | 184 | //Except for the sketchbrush where it determine sthe history. | ||
186 | if (m_currentPreset->paintOp().id() == "sketchbrush" || | 185 | if (m_currentPreset->paintOp().id() == "sketchbrush" || | ||
187 | m_currentPreset->paintOp().id() == "spraybrush") { | 186 | m_currentPreset->paintOp().id() == "spraybrush") { | ||
Context not available. |