Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_tool_smart_patch_options_widget.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Eugene Ingerman
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
8
9#include "ui_kis_tool_smart_patch_options_widget.h"
10
12#include "KisPaletteModel.h"
13
14#include "kis_config.h"
17
18
21 {
22 }
23
24 Ui_KisToolSmartPatchOptionsWidget *ui {nullptr};
25
27 {
28 return ui->patchRadius->value();
29 }
30 int getAccuracy(void)
31 {
32 return ui->accuracySlider->value();
33 }
34};
35
37 : QWidget(parent),
38 m_d(new Private)
39{
40 m_d->ui = new Ui_KisToolSmartPatchOptionsWidget();
41 m_d->ui->setupUi(this);
42}
43
49
51{
52 return m_d->getPatchRadius();
53}
54
56{
57 return m_d->getAccuracy();
58}
59
KisToolSmartPatchOptionsWidget(KisCanvasResourceProvider *provider, QWidget *parent)