Changeset View
Changeset View
Standalone View
Standalone View
widgets/toolbars/options/kpToolWidgetEraserSize.cpp
Show All 33 Lines | |||||
34 | #include "imagelib/kpColor.h" | 34 | #include "imagelib/kpColor.h" | ||
35 | #include "imagelib/kpPainter.h" | 35 | #include "imagelib/kpPainter.h" | ||
36 | #include "pixmapfx/kpPixmapFX.h" | 36 | #include "pixmapfx/kpPixmapFX.h" | ||
37 | #include "tools/kpTool.h" | 37 | #include "tools/kpTool.h" | ||
38 | 38 | | |||
39 | #include "kpLogCategories.h" | 39 | #include "kpLogCategories.h" | ||
40 | #include <KLocalizedString> | 40 | #include <KLocalizedString> | ||
41 | 41 | | |||
42 | #include <qbitmap.h> | 42 | #include <QBitmap> | ||
43 | #include <qpainter.h> | 43 | #include <QPainter> | ||
44 | #include <qpixmap.h> | 44 | #include <QPixmap> | ||
45 | 45 | | |||
46 | 46 | | |||
47 | static int EraserSizes [] = {2, 3, 5, 9, 17, 29}; | 47 | static int EraserSizes [] = {2, 3, 5, 9, 17, 29}; | ||
48 | static const int NumEraserSizes = | 48 | static const int NumEraserSizes = | ||
49 | int (sizeof (::EraserSizes) / sizeof (::EraserSizes [0])); | 49 | int (sizeof (::EraserSizes) / sizeof (::EraserSizes [0])); | ||
50 | 50 | | |||
51 | 51 | | |||
52 | static void DrawImage (kpImage *destImage, const QPoint &topLeft, void *userData) | 52 | static void DrawImage (kpImage *destImage, const QPoint &topLeft, void *userData) | ||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |