Changeset View
Changeset View
Standalone View
Standalone View
libs/widgets/KisPaletteComboBox.cpp
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 62 | if (!m_view.isNull()) { | |||
---|---|---|---|---|---|
63 | m_view->disconnect(this); | 63 | m_view->disconnect(this); | ||
64 | disconnect(m_view.data()); | 64 | disconnect(m_view.data()); | ||
65 | } | 65 | } | ||
66 | m_view = view; | 66 | m_view = view; | ||
67 | setPaletteModel(view->paletteModel()); | 67 | setPaletteModel(view->paletteModel()); | ||
68 | connect(view, SIGNAL(sigIndexSelected(QModelIndex)), | 68 | connect(view, SIGNAL(sigIndexSelected(QModelIndex)), | ||
69 | SLOT(slotSwatchSelected(QModelIndex))); | 69 | SLOT(slotSwatchSelected(QModelIndex))); | ||
70 | connect(this, SIGNAL(sigColorSelected(KoColor)), | 70 | connect(this, SIGNAL(sigColorSelected(KoColor)), | ||
71 | view, SLOT(slotFGColorChanged(KoColor))); | 71 | view, SLOT(slotSelectColor(KoColor))); | ||
72 | } | 72 | } | ||
73 | 73 | | |||
74 | void KisPaletteComboBox::slotPaletteChanged() | 74 | void KisPaletteComboBox::slotPaletteChanged() | ||
75 | { | 75 | { | ||
76 | clear(); | 76 | clear(); | ||
77 | m_groupMapMap.clear(); | 77 | m_groupMapMap.clear(); | ||
78 | m_idxSwatchMap.clear(); | 78 | m_idxSwatchMap.clear(); | ||
79 | 79 | | |||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |