@@ -292,12 +292,11 @@ QtColorPicker::QtColorPicker(QWidget *parent,
|
||||
|
||||
// Create color grid popup and connect to it.
|
||||
popup = new ColorPickerPopup(cols, withColorDialog, this);
|
||||
connect(popup, SIGNAL(selected(const QColor &)),
|
||||
SLOT(setCurrentColor(const QColor &)));
|
||||
connect(popup, SIGNAL(hid()), SLOT(popupClosed()));
|
||||
connect(popup, &ColorPickerPopup::selected, this, &QtColorPicker::setCurrentColor);
|
||||
connect(popup, &ColorPickerPopup::hid, this, &QtColorPicker::popupClosed);
|
||||
|
||||
// Connect this push button's pressed() signal.
|
||||
connect(this, SIGNAL(toggled(bool)), SLOT(buttonPressed(bool)));
|
||||
connect(this, &QtColorPicker::toggled, this, &QtColorPicker::buttonPressed);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user