Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/widgets/KisScreenColorPicker.cpp
- This file was moved from libs/ui/widgets/kis_screen_color_picker.cpp.
Context not available. | |||||
27 | #include <QWindow> | 27 | #include <QWindow> | ||
---|---|---|---|---|---|
28 | #include <QTimer> | 28 | #include <QTimer> | ||
29 | 29 | | |||
30 | #include "kis_icon.h" | | |||
31 | #include "kis_screen_color_picker.h" | | |||
32 | #include "KisMainWindow.h" | | |||
33 | #include <kis_canvas2.h> | 30 | #include <kis_canvas2.h> | ||
31 | | ||||
32 | #include "kis_shared_ptr.h" | ||||
33 | #include "kis_icon.h" | ||||
34 | #include "kis_image.h" | ||||
34 | #include "kis_wrapped_rect.h" | 35 | #include "kis_wrapped_rect.h" | ||
35 | #include "KisPart.h" | 36 | #include "KisPart.h" | ||
37 | #include "KisScreenColorPicker.h" | ||||
38 | #include "KisDlgInternalColorSelector.h" | ||||
36 | 39 | | |||
37 | struct KisScreenColorPicker::Private | 40 | struct KisScreenColorPicker::Private | ||
38 | { | 41 | { | ||
Context not available. | |||||
51 | #endif | 54 | #endif | ||
52 | }; | 55 | }; | ||
53 | 56 | | |||
54 | KisScreenColorPicker::KisScreenColorPicker(QWidget *parent) : QWidget(parent), m_d(new Private) | 57 | KisScreenColorPicker::KisScreenColorPicker(QWidget *parent) : KisScreenColorPickerBase(parent), m_d(new Private) | ||
55 | { | 58 | { | ||
56 | QVBoxLayout *layout = new QVBoxLayout(); | 59 | QVBoxLayout *layout = new QVBoxLayout(); | ||
57 | this->setLayout(layout); | 60 | this->setLayout(layout); | ||
Context not available. | |||||
79 | 82 | | |||
80 | void KisScreenColorPicker::updateIcons() | 83 | void KisScreenColorPicker::updateIcons() | ||
81 | { | 84 | { | ||
82 | m_d->screenColorPickerButton->setIcon(kisIcon("krita_tool_color_picker")); | 85 | m_d->screenColorPickerButton->setIcon(kisIcon("krita_tool_color_picker")); | ||
83 | } | 86 | } | ||
84 | 87 | | |||
85 | KoColor KisScreenColorPicker::currentColor() | 88 | KoColor KisScreenColorPicker::currentColor() | ||
Context not available. | |||||
269 | return false; | 272 | return false; | ||
270 | } | 273 | } | ||
271 | 274 | | |||
275 | std::function<KisScreenColorPickerBase *(QWidget *)> KisDlgInternalColorSelector::s_screenColorPickerFactory = KisScreenColorPicker::createScreenColorPicker; | ||||
272 | 276 | | |||
273 | 277 | #include "KisScreenColorPicker.moc" | |||
274 | #include "kis_screen_color_picker.moc" | | |||
Context not available. |