Changeset View
Changeset View
Standalone View
Standalone View
widgets/kpColorPalette.cpp
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
53 | 53 | | |||
54 | kpColorPalette::kpColorPalette (QWidget *parent, Qt::Orientation o) | 54 | kpColorPalette::kpColorPalette (QWidget *parent, Qt::Orientation o) | ||
55 | : QWidget (parent), | 55 | : QWidget (parent), | ||
56 | d (new kpColorPalettePrivate ()) | 56 | d (new kpColorPalettePrivate ()) | ||
57 | { | 57 | { | ||
58 | d->boxLayout = nullptr; | 58 | d->boxLayout = nullptr; | ||
59 | 59 | | |||
60 | d->transparentColorCell = new kpTransparentColorCell (this); | 60 | d->transparentColorCell = new kpTransparentColorCell (this); | ||
61 | connect (d->transparentColorCell, SIGNAL (foregroundColorChanged(kpColor)), | 61 | connect (d->transparentColorCell, &kpTransparentColorCell::foregroundColorChanged, | ||
62 | this, SIGNAL (foregroundColorChanged(kpColor))); | 62 | this, &kpColorPalette::foregroundColorChanged); | ||
63 | connect (d->transparentColorCell, SIGNAL (backgroundColorChanged(kpColor)), | 63 | | ||
64 | this, SIGNAL (backgroundColorChanged(kpColor))); | 64 | connect (d->transparentColorCell, &kpTransparentColorCell::backgroundColorChanged, | ||
65 | this, &kpColorPalette::backgroundColorChanged); | ||||
65 | 66 | | |||
66 | d->colorCells = new kpColorCells (this); | 67 | d->colorCells = new kpColorCells (this); | ||
67 | connect (d->colorCells, SIGNAL (foregroundColorChanged(kpColor)), | 68 | connect (d->colorCells, &kpColorCells::foregroundColorChanged, | ||
68 | this, SIGNAL (foregroundColorChanged(kpColor))); | 69 | this, &kpColorPalette::foregroundColorChanged); | ||
69 | connect (d->colorCells, SIGNAL (backgroundColorChanged(kpColor)), | 70 | | ||
70 | this, SIGNAL (backgroundColorChanged(kpColor))); | 71 | connect (d->colorCells, &kpColorCells::backgroundColorChanged, | ||
72 | this, &kpColorPalette::backgroundColorChanged); | ||||
71 | 73 | | |||
72 | setOrientation (o); | 74 | setOrientation (o); | ||
73 | } | 75 | } | ||
74 | 76 | | |||
75 | //--------------------------------------------------------------------- | 77 | //--------------------------------------------------------------------- | ||
76 | 78 | | |||
77 | kpColorPalette::~kpColorPalette () | 79 | kpColorPalette::~kpColorPalette () | ||
78 | { | 80 | { | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |